EXCEL Find closest match function

The EXCEL Find closest match function in RPA.

Help CentreBuilding Processes

This article describes the RPA Excel functionality to find the closest matching value in a column.

For a full list of available functions, please read EXCEL functions.


Description

The Find closest match function searches a column for the value that most closely matches a given search term, using fuzzy case-insensitive matching. This is useful when data contains slight variations in spelling, abbreviations, or typos – for example matching "Jhon Smith" to "John Smith".


Setting it up

To use the Find closest match function, follow these instructions:

{{popups:rpas/add:action=excel-closest-match}}

Once on a process map:

  1. Navigate to the process where you would like to add the function
  2. Click on the green button's drop-down
  3. Click on "+ Activity"
  4. Select the EXCEL Find closest match option
  5. Click "Add" once you are done

Input parameters

ParameterRequiredTypeDefaultDescription
SheetYesText-The name of the sheet to search in
ColumnYesText-The column letter or name to search in
Search valueYesText-The text to match against
Minimum confidenceNoText0.8Minimum match score between 0 and 1 (e.g. 0.8 = 80% match)
VariableNoTextresultName of the variable to store the closest match in

Output variables

VariableTypeDescription
VariableStringThe closest matching value, or empty if no match meets the confidence threshold

Errors

ErrorDescription
File not openThe Excel file must be open
Sheet not foundThe specified sheet does not exist
Column not foundThe specified column does not exist

Tips

  • Lower the confidence threshold (e.g. 0.6) if matches are too strict, or raise it (e.g. 0.95) if you need near-exact matches
  • This function is ideal for reconciliation tasks where names or references may have slight variations
  • The comparison is case-insensitive – "ACME Corp" will match "acme corp"

Related functions

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or go live in 7 days.