How to compare two columns with other two columns for duplicates in Excel

11,892

In E1 you can put

=IF(AND(C1=A1,D1=B1),"exist","")

and drag it down.

Share:
11,892

Related videos on Youtube

PaulB.
Author by

PaulB.

Updated on September 18, 2022

Comments

  • PaulB.
    PaulB. over 1 year

    I need to compare columns C and D with A and B and only if exist same combination of two cells in one row. Hope the image below will explain the situation better.

    Image of example data

    • Raystafarian
      Raystafarian over 9 years
      Do the matches have to be on the same row or can they be on any row in the two columns?
    • PaulB.
      PaulB. over 9 years
      In the same row
  • Tokci
    Tokci about 3 years
    what if order is not same and some values missing ,so this wont apply