Forum Discussion

MatthewO2147's avatar
MatthewO2147
Copper Contributor
Mar 24, 2022
Solved

Two Criteria Search

I'm trying to knock some cobwebs off my excel. I'm attempting to filter an array with 2 input criteria to then search for a designator.    Say I have Locations  A,B,C,D And Jobs 1,2,3,4 With P...
  • HansVogelaar's avatar
    Mar 24, 2022

    MatthewO2147 

    See screenshot. With the person's name in B6 and the job in B7, the location is returned by

    =IFERROR(INDEX(A1:D1,MATCH(1,((A3:D3=B6)+(A4:D4=B6))*(A2:D2=B7),0)),"-")

    If you don't have Microsoft 365 or Office 2021, confirm the formula with Ctrl+Shift+Enter.