Hi,
I am trying to lookup one of two values from Sheet2 cells M2 or N2 in column C of sheet1 and then return what is in column A. My issue is that column A will have duplicates and I only one to bring through unique values. I have the following formula that seems to work but you will see on Sheet2 of the attached example it brings through duplicates in columns B to G of Sheet2.
=IFERROR(INDEX(Sheet1!$A$2:$A$14,SMALL(IF(($M2=Sheet1!$C$2:$C$14)+($N2=Sheet1!$C$2:$C$14),ROW(Sheet1!$F$2:$F$14)-ROW(Sheet1!$F$2)+1),COLUMN(A1))),"")
I have put the expected result on Sheet2 which just shows one entry per lookup.
Thanks
Paul
Bookmarks