Forum Discussion

KirkExcel's avatar
KirkExcel
Copper Contributor
Jan 10, 2023
Solved

Comparing multiple columns

Have been trying to get this to work for some time, but cannot.   I need to compare two sets of columns and return a value ie "MATCH" if a match is found. The four columns in question are two lots...
  • OliverScheurich's avatar
    OliverScheurich
    Jan 11, 2023

    KirkExcel 

    =IFNA(IF(MATCH(1,(A2=sheet2!$F$2:$F$190)*(sheet1!B2=sheet2!$G$2:$G$190),0),"Match",""),"")

    I've tried the formula in the attached file and it returns a match if ID "XYZ" and Account Number "123" are in cells A2&B2 in sheet 1 and in cells F34&G34 in sheet2.

     

    The formula still returns "Match" if ID "XYZ" and Account Number "123" are in cells F111&G111 in sheet 2 for example.

     

    The formula has to be entered with ctrl+shift+enter if one doesn't work with Office365 or Excel 2021.

     

     

     

Resources