Forum Discussion

mark ainscough's avatar
mark ainscough
Brass Contributor
Jul 12, 2018
Solved

Match data to a range if a match is found perform lookup, if no match found repeat.

I have the formula below works nicely but Ideally if a match is not found I then want to repeat the process checking for a match in a different worksheet within the same workbook if a match is found ...
  • SergeiBaklan's avatar
    SergeiBaklan
    Jul 14, 2018

    Mark, it could be like this

    =IF(ISERROR(MATCH(Estimate!C4,'204 Customers'!A:A,0)),
       IF(ISERROR(MATCH(Estimate!C4,'772 Customers'!A:A,0)),"No Match",
          IFERROR(
             INDEX('K:\ESL 772\Info Centre\[772 Ops Center.xlsm]Parts'!$F$5:$F$90000,
                MATCH(Estimate!B51,'K:\ESL 772\Info Centre\[772 Ops Center.xlsm]Parts'!$B$5:$B$90000,0)),
          "Not Found 772")
       ),
       IFERROR(INDEX('K:\204 Central Accounts\Bib\[Bib Ops Center.xlsm]FPS_Parts'!$D$3:$D$90000,
          MATCH(Estimate!B50,'K:\204 Central Accounts\Bib\[Bib Ops Center.xlsm]FPS_Parts'!$B$3:$B$90000,0)),
          "Not Found 204")
    )