Search for existence of multiple cell string values in a range

ruggc1

New Member
Joined
Feb 26, 2020
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hi - thanks in advance for any help here. Heres what i'm trying to do. I have a spreadsheet of order information containing several columns. Example below:

Order # Region Salesperson Country Product Color
1234 North Mike USA Widget Blue
4362 South Bob Mexico Wonka Brown
8792 East Mike Canada Widget Black

I'm trying to set up an audit of sorts that will check the data above against an approved master matrix of Region, Salesperson, Country to highlight errors where an order was booked to the incorrect Region or Salesperson for example. My audit matrix would be:

Region Salesperson Country
North Mike USA
North Mike Canada
North Mike Greenland
South Bob Mexico
South Bob Brazil
South Bob Chile

I'm envisioning a column to the right of Color in the spreadsheet above called "Audit" with a formula that would check Region, Salesperson, Country for each order # against the audit matrix of all possible approved combinations for error. In the above example, i would expect an error to show for order #8792 where it was booked to the incorrect Region.

Any help on how to conduct this audit search is appreciated. Thanks!
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Hi and welcome to MrExcel

Try this

Dante Amor
ABCDEFGHIJK
1OrderRegionSalespersonCountryProductColorAuditRegionSalespersonCountry
21234NorthMikeUSAWidgetBlue NorthMikeUSA
34362SouthBobMexicoWonkaBrown NorthMikeCanada
48792EastMikeCanadaWidgetBlackCombination does not existNorthMikeGreenland
5SouthBobMexico
6SouthBobBrazil
7SouthBobChile
sh1
Cell Formulas
RangeFormula
G2:G4G2=IF(COUNTIFS($I$2:$I$7,B2,$J$2:$J$7,C2,$K$2:$K$7,D2)=0,"Combination does not exist","")
 
Upvote 0
Awesome - thanks! I figured it wasn't that difficult .... just couldn't remember the best way to do it. Works great.
 
Upvote 0
I'm glad to help you. Thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,653
Messages
6,120,750
Members
448,989
Latest member
mariah3

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