Forum Discussion

DeanPace's avatar
DeanPace
Copper Contributor
Aug 21, 2024
Solved

Formula that searches multiple rows of data and returns value if multiple cells within rows match

I have a spreadsheet with 10,000+ rows of data within 5 columns (A, B, C, D, E). I need a formula that will check to see both of the following:   1. Does multiple cells in one row match exactly wha...
  • HansVogelaar's avatar
    Aug 21, 2024

    DeanPace 

    For example in G2:

    =IF(COUNTIFS($A$2:$A$20000, $A2, $B$2:$B$20000, $B2, $D$2:$D$20000, $D2)>1, "DUPLICATE", "")

    And in H2:

    =IF(COUNTIFS($A$2:$A$20000, $A2, $B$2:$B$20000, "<>"&$B2, $D$2:$D$20000, $D2), "FLAG!", "")

    Fill down.

     

Resources