I have this formula in WORKBOOK A that performs a VLookup in WORKBOOK B;
=IFERROR(IF(ISBLANK(CONSOLIDATION[@[Host Name]]),"",VLOOKUP(TRIM(CONSOLIDATION[@[Host Name]]),INDIRECT("'[WORKBOOK_B_Rev 1.1.0.xlsx]"&CONSOLIDATION[@[SITE-FE]]&"'!$B$9:$J$8361"),7,FALSE)),"Not Found")
This works well. But the file name of the reference workbook changes every time I run this formula, and the formula appears as many as 800 times in the workbook. I've been trying to enter the WORKBOOK B name in a cell in WORKBOOK A and have this formula reference it, but I can't seem to nail down the exact syntax. Can someone give me an example of what it would look like if, for example, the name of WORKBOOK B appears in cell A1 of WORKBOOK A?
=IFERROR(IF(ISBLANK(CONSOLIDATION[@[Host Name]]),"",VLOOKUP(TRIM(CONSOLIDATION[@[Host Name]]),INDIRECT("'[WORKBOOK_B_Rev 1.1.0.xlsx]"&CONSOLIDATION[@[SITE-FE]]&"'!$B$9:$J$8361"),7,FALSE)),"Not Found")
This works well. But the file name of the reference workbook changes every time I run this formula, and the formula appears as many as 800 times in the workbook. I've been trying to enter the WORKBOOK B name in a cell in WORKBOOK A and have this formula reference it, but I can't seem to nail down the exact syntax. Can someone give me an example of what it would look like if, for example, the name of WORKBOOK B appears in cell A1 of WORKBOOK A?