EXCEL Reconcile function

The EXCEL Reconcile function in RPA.

Help CentreBuilding Processes

This article describes the RPA Excel Reconcile function.

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


Description

The Reconcile function compares a source list of items (e.g. statement line items, invoice data) against a column in an Excel sheet to find rows that match. Matched rows are stored in a variable that you can loop through or inspect.

This is useful for accounts payable reconciliation, bank statement matching, invoice verification, and any scenario where you need to cross-reference two data sets.


How it works

  1. Reads all rows from the specified Excel sheet
  2. Applies any optional filter conditions (e.g. Vendor = Axiz) to narrow the rows
  3. Extracts the match key from each source item using the Source key field
  4. Compares each filtered Excel row's Match column value against the source keys
  5. Rows that match are collected and stored in the specified variable

Setting it up

To use the EXCEL Reconcile function, follow these instructions:

{{popups:rpas/add:action=excel-reconcile}}

Once on a process map:

  1. Navigate to the process where you would like to add the EXCEL Reconcile function
  2. Click on the green button's drop-down (right side of the green button labelled "Process")
  3. On the menu that appears, click on the "+ Activity" item
  4. From here you can select the EXCEL Reconcile option
  5. Click "Add" once you are done

Input parameters

ParameterRequiredTypeDefaultDescription
SheetYesText-The name of the Excel sheet to reconcile against
Match columnYesText-The column in the Excel sheet that holds the reference/match key (e.g. Reference, Invoice No)
SourceYesText-The variable containing the list of items to reconcile against (e.g. {statement.line_items})
Source keyYesText-The field name in each source item to match on (e.g. reference)
VariableYesTextreconciledName of the variable where the matched rows will be stored as a list
FiltersNoKey/Operator/Value-Optional filters to narrow down which Excel rows to reconcile (e.g. Vendor = Axiz)
Remove whitespaceNoSwitchOffStrip leading and trailing whitespace from values before comparing
Case-insensitiveNoSwitchOffIgnore case when comparing match values

Output variables

VariableTypeDescription
{variable}ListA list of matched Excel rows (as dictionaries). Each entry contains all columns from the matched row. Loop through with loop: "json" to process each match.

Example

Reconcile an AP Ledger sheet against bank statement line items, filtering for a specific vendor:

excel.reconcile(
    sheet: "AP Ledger"
    column: "Reference"
    source: "{statement.line_items}"
    key: "reference"
    filters: Vendor = Axiz
    variable: "matched_items"
    trim: true
    case: true
)

After execution, {matched_items} contains a list of AP Ledger rows whose Reference matched a statement line item reference. You can then loop through {matched_items} to process each match.


Errors

ErrorDescription
Sheet not foundThe specified sheet does not exist in the workbook
Column not foundThe match column does not exist in the sheet
Source is emptyThe source variable is empty or not a list
Key not foundThe source key field does not exist in the source items

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.