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
Check if cell D3 has extra spaces.
Morning Cubist. Have another extension question for this task which appears to be ongoing.
I want to further categorise/validate which entries are new using column D and currently have the following fx: =IF(COUNTIF('Error Analysis'!A:A,'Input Sheet'!B2),"Ignore","New Error")

What I need to figure out is how I can extend this formula to also 'Ignore' any entries that = 'Ignore', or '#CALC!' in cell C# next to the D# cell reference.

In other words, they are only New Errors if they don't esit in the Analysis sheet and they're not already categorised to 'Ignore' or '#CALC!' - does that make sense?

1716497154492.png


Thanks
 
Upvote 0

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
I would then like to take any of the New Errors and add them to the Analysis sheet, however I don't think this can be done without some VBA and really don't want to go there if I can avoid it
Upside down face
 
Upvote 0
It's not entirely clear.
Which sheet are you showing in the screenshot? The Input or the Analysis sheet?
If column C is "Ignore" or #CALC, what do you want to show in D?
If the entry appears on both sheets but labeled "Ignore", do you want "Ignore" or "New Error"?
 
Upvote 0
It's not entirely clear.
Which sheet are you showing in the screenshot? The Input or the Analysis sheet?
If column C is "Ignore" or #CALC, what do you want to show in D?
If the entry appears on both sheets but labeled "Ignore", do you want "Ignore" or "New Error"?
apologies. Will clarify now I'm appropriately caffeinated!

The screenshot is reference to the main input sheet.
If column C is "Ignore" or #CALC, I would like column D result to = Ignore
If the entry (Measurement Point) appears on both lists, it means it's a prior known error so this result should be "Ignore"

Hope that makes a bit more sense - thanks
 
Upvote 0
This should work if there are no errors in column A of Error Analysis sheet. Try:
Excel Formula:
=IF(COUNTIF('Error Analysis'!A:A,'Input Sheet'!B2)=0,"New Error","Ignore")
 
Upvote 0
This should work if there are no errors in column A of Error Analysis sheet. Try:
Excel Formula:
=IF(COUNTIF('Error Analysis'!A:A,'Input Sheet'!B2)=0,"New Error","Ignore")
The results of this are exactly the same as what I have currently.
I'll try to write this a bit differently, if the results of current fx in column D = "New Error", I want to add another criteria to say go check cell alongside in column C and if it is 'Ignore' or '#CALC!', then true result needs to = Ignore

Apologies, I'm new to these forums and trying to work out how best to spell this out. Appreciate your patience and help with this.
 
Upvote 0
Is there a reason why C has an error? Is it because there are no matches found in the list? If so, is it fine to return "Ignore" in the column C?
Secondly, is the new output you're asking for replacing your current D or is it going to be in column E?
 
Upvote 0
Is there a reason why C has an error? Is it because there are no matches found in the list? If so, is it fine to return "Ignore" in the column C?
Secondly, is the new output you're asking for replacing your current D or is it going to be in column E?
In response to your questions, yes, C has an error because there are no matches found in that list. This is on an input sheet which has different entries day by day so we prefill a maximum number of lines with the formula ready to calculate, so technically we don't have to consider #CALC! as part of formula for column D I don't think.

Secondly, the new input will replace the current formula in column D - thanks
 
Upvote 0
Change the formula in C to this so it returns "Ignore" for the pre-rows instead of a #Calc error.
Rich (BB code):
=LET(f,FILTER($D$2:$D$6,ISNUMBER((SEARCH($D$2:$D$6,A2))),"Ignore"),IF(OR(f="Duplicate", f = "Parameter"),"Ignore", f))

The formula in D:
Excel Formula:
=IF((COUNTIF('Error Analysis'!A:A, B2)=0)*(C2="Ignore"),"Ignore","New Error")
 
Upvote 0
Change the formula in C to this so it returns "Ignore" for the pre-rows instead of a #Calc error.
Rich (BB code):
=LET(f,FILTER($D$2:$D$6,ISNUMBER((SEARCH($D$2:$D$6,A2))),"Ignore"),IF(OR(f="Duplicate", f = "Parameter"),"Ignore", f))

The formula in D:
Excel Formula:
=IF((COUNTIF('Error Analysis'!A:A, B2)=0)*(C2="Ignore"),"Ignore","New Error")
Update to formula in column C works a treat - thanks

Think we're getting close on the last formula, just need to tweak a bit more I think. for the purpose of demonstrating the issue I have copied my original formula to column E - these results are correct in what I need them to show which is Meas Point in column B appears in a different Analysis sheet.

What I want to highlight is the two in E7 and E8, appear in the Analysis sheet, so we don't need these and they need to be ignored. Your extension formula pasted into column D is now reading anything in column C that has Ignore to Ignore, and all other entries to be classified as new entries which is not quite what I'm after.

Maybe I need to turn the formula around and say if column C = anything other than Ignore, go and see if it exists in the Analysis sheet and if not, it's a New Error.

Perhaps that might be better way to look at this calculation?

1716505304147.png
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,189
Members
452,616
Latest member
intern444

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