Forum Discussion
jojomartin845
May 01, 2026Copper Contributor
Put a specific word in a cell based on the word in another cell
Hey everyone, I need help automating the categorisation of my bank statement in excel. I do not have microsoft 365. I want excel to look for specific words from my transactions eg Woolworths or McD...
IlirU
May 05, 2026Iron Contributor
Hi jojomartin845,
Since you don't have Microsoft 365 then I think you can use Excel for the web. I have given my solution below in Excel for the web (see the screenshot).
In cell A5 I have applied this formula:
=LET(
desc, D5:D10,
merch, M4:M6,
cat, N4:N6,
rwn, SEQUENCE(ROWS(desc)) / SIGN(SEARCH(merch, TRANSPOSE(desc))),
num, TOCOL(TRANSPOSE(rwn), 3),
XLOOKUP(num, SEQUENCE(ROWS(cat)), cat)
)Change the ranges in the formula according to your needs.
HTH
IlirU