Compare 3 columns not in a string if match

michelles4731

New Member
Joined
Feb 3, 2018
Messages
3
I need to compare compensation report. Columns I, M, and P all need to match in each row. What is the formula?

[TABLE="width: 800"]
<tbody>[TR]
[TD="align: center"]D[/TD]
[TD="align: center"]E[/TD]
[TD="align: center"]F[/TD]
[TD="align: center"]G[/TD]
[TD="align: center"]H[/TD]
[TD="align: center"]I[/TD]
[TD="align: center"]J[/TD]
[TD="align: center"]K[/TD]
[TD="align: center"]L[/TD]
[TD="align: center"]M[/TD]
[TD="align: center"]N[/TD]
[TD="align: center"]O[/TD]
[TD="align: center"]P[/TD]
[/TR]
[TR]
[TD="align: center"]Company Name[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"]Attainment[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"]Recurring Revenue[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"]Total Production Revenue[/TD]
[/TR]
[TR]
[TD]AAA Inc[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]102[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]102[/TD]
[TD][/TD]
[TD][/TD]
[TD]102[/TD]
[/TR]
[TR]
[TD]ABC Toys[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]185[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]370[/TD]
[TD][/TD]
[TD][/TD]
[TD]370[/TD]
[/TR]
[TR]
[TD]BC Cheese[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]1095[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]1095[/TD]
[TD][/TD]
[TD][/TD]
[TD]1095[/TD]
[/TR]
[TR]
[TD]Dog Days Inc.[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]600[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]1200[/TD]
[TD][/TD]
[TD][/TD]
[TD]1200[/TD]
[/TR]
[TR]
[TD]Produce to You[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]250[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]250[/TD]
[TD][/TD]
[TD][/TD]
[TD]250[/TD]
[/TR]
[TR]
[TD]Sunkin Ships[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]375[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]750[/TD]
[TD][/TD]
[TD][/TD]
[TD]750[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
You havent actually specified what you want listed, just that "they need to match".
If you want to list only those companies where columns I M and P all match then use this

in Q1
=IFERROR(INDEX($D$1:$D$6,SMALL(IF((I$1:I$6=M$1:M$6)*(I$1:I$6=P$1:P$6),ROW($A$1:$A$6)),ROW(A1))-(ROW(A$1)-1),1),"")
Array formula, use Ctrl-Shift-Enter
and copy down the column
 
Upvote 0
Excellent point. I would like the formula to return an empty cell if all cells match and "doesn't match" in the rows that don't match.
 
Upvote 0
in Q2
=IF(AND(I2=M2,I2=P2),"","Doesn't match")
and copy down the column
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,178
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