Index Match on a random string, multiple possible criteria, results

Yimmie

New Member
Joined
May 19, 2022
Messages
2
Office Version
  1. 365
Platform
  1. Windows
I have a huge list of accounting entry descriptions (all are unique and hand typed) that need to be examined to determine treatment (1 of 3 possibilities). I built a keyword finder using IFERROR(INDEX(MATCH(ISNUMBER)))) that works great. It leverages a 2 column table with keywords and their treatment (1, 2, 3). I added an IFERROR to flag those with no keyword.

The problem is some entries include multiple keywords, and sometimes their treatments in the table conflict. Due to the randomness in what keywords may show up and in what order, I can't build that into the keyword table. The equation defaults the result to the first keyword it sees.

Is there a way to either auto-flag these accounting entries for further manual inspection or even merge multiple random keyword results in the output (such as it coming back with treatment "12", "31", "21", etc.?

Thanks in advance!
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Welcome to the MrExcel board!

Something like this?

22 05 22.xlsm
ABCDEF
1KeywordAction
2The mat is redA2catA1
3The dog barked matA2
4The cat sat on the mat and ate the ratA1, A2, A3ratA3
Keywords
Cell Formulas
RangeFormula
B2:B4B2=TEXTJOIN(", ",1,FILTER(F$2:F$4,ISNUMBER(SEARCH(" "&E$2:E$4&" "," "&A2&" ")),""))
 
Upvote 0
Welcome to the MrExcel board!

Something like this?

22 05 22.xlsm
ABCDEF
1KeywordAction
2The mat is redA2catA1
3The dog barked matA2
4The cat sat on the mat and ate the ratA1, A2, A3ratA3
Keywords
Cell Formulas
RangeFormula
B2:B4B2=TEXTJOIN(", ",1,FILTER(F$2:F$4,ISNUMBER(SEARCH(" "&E$2:E$4&" "," "&A2&" ")),""))
This worked perfectly. Thank you so much!
 
Upvote 0

Forum statistics

Threads
1,223,882
Messages
6,175,165
Members
452,615
Latest member
bogeys2birdies

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top