
π This article includes 1 downloadable practice file β
In this article
Instead of tagging 70 rows by hand, keep a two-column Rules table: a keyword and its category. One formula looks up the first keyword that appears in each narration.
| Keyword | Category |
|---|---|
| SWIGGY | Food |
| BIGBASKET | Groceries |
| JIO | Bills |
| LOAN EMI | EMI |
| SALARY | Salary |
The formula
=IFERROR(INDEX(Rules!$B$2:$B$14,
MATCH(TRUE, ISNUMBER(SEARCH(Rules!$A$2:$A$14, B2)), 0)),
"Other")
SEARCH looks for every keyword in the narration at once and returns a position or an error. ISNUMBER turns that into TRUE/FALSE, MATCH(TRUE,β¦) finds the first hit, and INDEX returns its category. No match: “Other”.
AMAZON PAY) above general ones (AMAZON).Improve it every month
- Filter the Category column for “Other”.
- Add a keyword for each new payee to Rules.
- Within two or three months almost nothing is “Other”.
Turn Rules into an Excel Table (Ctrl+T) and use Rules[Keyword], so new rows are picked up automatically.
Common mistakes
- Short keywords like “LIC” also match “PUBLIC”. Use longer, specific text.
- Blank rows in the Rules range: SEARCH(“”) matches everything. Keep the range tight or use a Table.
Practice
Download the workbook below. The statement is made up but follows real Indian bank formats (NEFT, NACH, UPI narrations). The Check column turns green when your formula gives the right answer.
π Practice files for this article
- πLesson 3 practice workbookStatement + Rules table, 6 tasks.β¬ XLSX Β· 17 KB
Free to use for learning. Files with macros (.bas) are plain text β import them with Alt+F11 β File β Import File, and always test on a copy.
Stuck on a step? Ask a question and the AI answers using this article.