Lookup multiple criteria and find match within mixed alpha numerical cells and return the value matched

Chrissy_M

New Member
Joined
May 16, 2024
Messages
20
Office Version
  1. 365
Platform
  1. Windows
Hello, I need help with the following please. We get reports with hundreds of lines and I need to verify the error descriptions to catalogue and process errors. Only problem is the criteria is very specific and appears at different parts of string within the cell. Please see image attached to better explain the following:

B:B - column requiring formula

B2 to look for any criteria in full from D2:D6, search cell A2, and return value from D2:D6 that was found and matched.

Any help greatly appreciated. Thank you
 

Attachments

  • Mr Excel - Error Descriptions - 240517.png
    Mr Excel - Error Descriptions - 240517.png
    19.5 KB · Views: 29

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Try:
Excel Formula:
=FILTER($D$2:$D$6,ISNUMBER((SEARCH($D$2:$D$6,A2))))
 
Upvote 0
Solution
Try:
Excel Formula:
=FILTER($D$2:$D$6,ISNUMBER((SEARCH($D$2:$D$6,A2))))
Oh my days, wasted trying to sort this out with lots of head banging on the wall! Thank you, Thank you - works perfect!
 
Upvote 0
You're welcome.
This is an extension question, and probably bit of a stretch but you seemed to handle my last question with such ease. What if I wanted to add two different error descriptions ("Duplicate" and "Parameter") and if these are found in the A:A reference, return "Ignore" or "Do Not Process" - something along those lines
 
Upvote 0
Add IF conditions.
Excel Formula:
=LET(f,FILTER($D$2:$D$6,ISNUMBER((SEARCH($D$2:$D$6,A2)))),IF(OR(f="Duplicate", f = "Parameter"),"Ignore", f))
 
Upvote 1
Add IF conditions.
Excel Formula:
=LET(f,FILTER($D$2:$D$6,ISNUMBER((SEARCH($D$2:$D$6,A2)))),IF(OR(f="Duplicate", f = "Parameter"),"Ignore", f))
wow - you really are amazing - works a treat! Thanks a million!
 
Upvote 0
hmmm, actually it's only coming up 'Ignore' for Parameter. Not calculating 'Ignore' for Duplicate.? This is beyond my expertise, is there any adjustments I can make to the fx to result with 'Ignore' when either of these criteria are met (Duplicate, or Parameter)? Thanks
 

Attachments

  • Mr Excel - Error Descriptions updated - 240517.png
    Mr Excel - Error Descriptions updated - 240517.png
    20.6 KB · Views: 12
Upvote 0

Forum statistics

Threads
1,224,812
Messages
6,181,098
Members
453,021
Latest member
Justyna P

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