Checking values for multiple columns

Figmint

New Member
Joined
Dec 19, 2016
Messages
6
Hello,

Ive done a quick search here and been unable to find an exact answer for my question.
I may just be searching for the wrong keywords, I dont know.

What I am looking to do is check 2 columns of variables against 2 columns of correct data and then flag the incorrect data. This would be case sensitive as well.

Example:
Data (sheet 2)
Col 1 Col 2
Bolt Nut
Screw Driver
Nail Hammer
Variables (sheet 1)
Col 1 Col 2 Col 3
Bolt Hammer Non-Match
Bolt Driver Match
Nail Driver Non-Match
SCREW DriveR Non-Match​

I have tried with nested If/AND statements and I keep getting errors.
For my document I am checking about 25 constant data sets against a document of over 5000 rows, so doing it manualy is slow and anoying.

Any assistance would be appreciated.
 
Thanks BarryL

It works so far, but last issue is when trying to sort the whole document the second set of variables point to diffrent lines:

Before sort
=IF(SUMPRODUCT((EXACT(F18,Data!$A$1:$A$68))*(EXACT(Variable!H18,Data!$B$1:$B$68)))>0,"match","Non-Match")

After sort
=IF(SUMPRODUCT((EXACT(F18,Rank!$A$1:$A$68))*(EXACT(Variable!H432,Data!$B$1:$B$68)))>0,"match","Non-Match")

Some reason sort isnt sorting by the value generated properly and then the formula gets messed up.

remove the Variable! before H18. so...

=IF(SUMPRODUCT((EXACT(F18,Data!$A$1:$A$68))*(EXACT(H18,Data!$B$1:$B$68)))>0,"match","Non-Match")
 
Upvote 0

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Glad you got it working. thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,215,534
Messages
6,125,372
Members
449,221
Latest member
chriscavsib

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