Forum Discussion

Edg38426's avatar
Edg38426
Brass Contributor
May 03, 2022
Solved

How to use MATCH in a VLOOKUP formula with INDIRECT

I have a workbook with multiple sheets for different communities, and I am trying to create a consolidated sheet with all items. I need to pull a date from a column within each sheet and insert it in...
  • mathetes's avatar
    May 03, 2022

    Edg38426 

     

    A very small error in your formula

    =VLOOKUP($B2,INDIRECT("'"&$A2&"'!$A$2:$k$20"),MATCH("Purchasing Final Phase PO Release",INDIRECT("'"&$A2&"'!$A$1:$K$1"),0),FALSE)

     

    You might also consider removing the text from the MATCH function so it just refers to the column heading:

    =VLOOKUP($B2,INDIRECT("'"&$A2&"'!$A$2:$k$20"),MATCH(E$1,INDIRECT("'"&$A2&"'!$A$1:$K$1"),0),FALSE)

Resources