bulldo.gs / Spreadsheet workshops

Two merchant rules matched. Which category wins?

PAPER & RAIL MARKET matches both paper and rail. If those rules mean Supplies and Travel, either label would hide a disagreement. This practice statement leaves the category blank and shows both matches.

Download the merchant expense workbook

Open the workbook in Excel or LibreOffice Calc. It contains six fictional entries and eight editable rule slots. The formulas run locally. Blue cells are for edits.

Try one change

  1. On Statement, find E02, E03 and E04. E02 matches two Supplies rules and gets one category. E03 is a conflict. E04 has no rule.
  2. Open Rules. In B7, change the category for rail from Travel to Supplies. On Statement, E03 now resolves to Supplies. E01 changes too. The Matching rules column shows why.
  3. In the next empty rule row enter mooring and Equipment. E04 now matches. Open Match details to trace each entry to its rules.

Keywords are case-insensitive, literal portions of the merchant description. The rule R&D* matches a printed asterisk in E05. E06 has the same letters without the asterisk and stays unclassified.

Choose how to assign a category

An editable merchant table works when your team can write the rule and wants the same description to receive the same answer each time. Unknown merchants stay visible. A store that sells several types of goods may still need a receipt or a human decision.

For classification by meaning, GPT Workspace documents an in-cell GPT_CLASSIFY formula that accepts category descriptions and can return a label with a confidence score. This workbook demonstrates the fixed-rule approach. GPT Workspace formula reference.