Check to see if 2 rows match in excel

NewUser2

Board Regular
Joined
Jan 27, 2015
Messages
54
Hi, my problem is I have a large database and need to see if 2 rows match Anywhere in the database. HOWEVER, say there are 15 columns, I only want to see if 4 specific columns match.

I tried: =IF(AND(C:C=C2,E:E=E2,F:F=F2,G:G=G2),"True","False")
and it seemed to be working, but after testing further it doesnt seem to work.. (I also tried this as an array)

The goal with the above is to see if cell C2 = any other cell in column C AND E2 = any other cell in column E, etc.. all 4 variables have to match for it to get marked as "True"

Thanks for your help!
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
There must be some other easy way to do it but here's mine:

=IFNA(AND(MATCH(C2,C:C,0),MATCH(E2,E:E,0),MATCH(F2,F:F,0),MATCH(G2,G:G,0)),"FALSE")
 
Last edited:
Upvote 0

Forum statistics

Threads
1,216,098
Messages
6,128,812
Members
449,468
Latest member
AGreen17

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