INDIRECT, can I use it in these formulas?

itsrich

Board Regular
Joined
Apr 13, 2009
Messages
73
Office Version
  1. 365
Platform
  1. Windows
This formula is repeated 26 times the only thing changing is the TAB reference.

=IF(ISERROR(VLOOKUP(B3,'[2022 FishBOM - RIVETED v 02.xlsx]KOV185PROWT'!$A:$F,6,FALSE)),"",VLOOKUP(B3,'[2022 FishBOM - RIVETED v 02.xlsx]KOV185PROWT'!$A:$F,6,FALSE))

Am I up against, INDIRECT does not work When referencing another workbook?

If I can use INDIRECT, it means typing the formula once. If I cannot use it, then it is a bunch of copy/paste for me.

Is this formula written correctly? =VLOOKUP(B3,INDIRECT("'[2022 FishBOM - RIVETED v 02.xlsx]""&G1&""!$A:$F"),6,FALSE)

2022.05.22 Location Study - Riveted.xlsx
GHIJKLMNOPQRSTUVWXYZAAABACADAEAF
2KOV185PROWTKOV198PROWTKOV200PROWTFRV165SCFRV165WTFRV189WT-JUMPFRV189WTFRV179SC-20FRV179SCJ-20FRV179WT-20FRV179WTJ-20FRV179WT-25FRV179WTJ-25OLV2010WT (CATFISH)OLV2010CC 20 & 25OLV2010SC 20 & 25OLV2010WT 20 & 25OLV2010T 20 & 25OLV186CCOLV186SCOLV186TOLV165TOLV165SCOLV156TOLV156SCOLV146T
3                   M-FINAL      
4M-SUBM-SUBM-SUBM-SUBM-ASSYM-SUBM-SUBM-SUBRVTM-SUBM-SUBM-SUBM-SUBM-ASSYM-SUBRVTM-SUBM-SUBM-SUBM-SUBM-FINALM-SUB
Sheet2
Cell Formulas
RangeFormula
G3G3=IF(ISERROR(VLOOKUP(B3,'[2022 FishBOM - RIVETED v 02.xlsx]KOV185PROWT'!$A:$F,6,FALSE)),"",VLOOKUP(B3,'[2022 FishBOM - RIVETED v 02.xlsx]KOV185PROWT'!$A:$F,6,FALSE))
H3H3=IF(ISERROR(VLOOKUP(B3,'[2022 FishBOM - RIVETED v 02.xlsx]KOV198PROWT'!$A:$F,6,FALSE)),"",VLOOKUP(B3,'[2022 FishBOM - RIVETED v 02.xlsx]KOV200PROWT'!$A:$F,6,FALSE))
I3I3=IF(ISERROR(VLOOKUP(B3,'[2022 FishBOM - RIVETED v 02.xlsx]KOV200PROWT'!$A:$F,6,FALSE)),"",VLOOKUP(B3,'[2022 FishBOM - RIVETED v 02.xlsx]KOV200PROWT'!$A:$F,6,FALSE))
J3J3=IF(ISERROR(VLOOKUP(B3,'[2022 FishBOM - RIVETED v 02.xlsx]FRV165SC'!$A:$F,6,FALSE)),"",VLOOKUP(B3,'[2022 FishBOM - RIVETED v 02.xlsx]FRV165SC'!$A:$F,6,FALSE))
K3K3=IF(ISERROR(VLOOKUP(B3,'[2022 FishBOM - RIVETED v 02.xlsx]FRV165WT'!$A:$F,6,FALSE)),"",VLOOKUP(B3,'[2022 FishBOM - RIVETED v 02.xlsx]FRV165WT'!$A:$F,6,FALSE))
L3L3=IF(ISERROR(VLOOKUP(B3,'[2022 FishBOM - RIVETED v 02.xlsx]FRV189WT-JUMP'!$A:$F,6,FALSE)),"",VLOOKUP(B3,'[2022 FishBOM - RIVETED v 02.xlsx]FRV189WT-JUMP'!$A:$F,6,FALSE))
M3M3=IF(ISERROR(VLOOKUP(B3,'[2022 FishBOM - RIVETED v 02.xlsx]FRV189WT'!$A:$F,6,FALSE)),"",VLOOKUP(B3,'[2022 FishBOM - RIVETED v 02.xlsx]FRV189WT'!$A:$F,6,FALSE))
N3N3=IF(ISERROR(VLOOKUP(B3,'[2022 FishBOM - RIVETED v 02.xlsx]FRV179SC-20'!$A:$F,6,FALSE)),"",VLOOKUP(B3,'[2022 FishBOM - RIVETED v 02.xlsx]FRV179SC-20'!$A:$F,6,FALSE))
O3O3=IF(ISERROR(VLOOKUP(B3,'[2022 FishBOM - RIVETED v 02.xlsx]FRV179SCJ-20'!$A:$F,6,FALSE)),"",VLOOKUP(B3,'[2022 FishBOM - RIVETED v 02.xlsx]FRV179SCJ-20'!$A:$F,6,FALSE))
P3P3=IF(ISERROR(VLOOKUP(B3,'[2022 FishBOM - RIVETED v 02.xlsx]FRV179WT-20'!$A:$F,6,FALSE)),"",VLOOKUP(B3,'[2022 FishBOM - RIVETED v 02.xlsx]FRV179WT-20'!$A:$F,6,FALSE))
Q3Q3=IF(ISERROR(VLOOKUP(B3,'[2022 FishBOM - RIVETED v 02.xlsx]FRV179WTJ-20'!$A:$F,6,FALSE)),"",VLOOKUP(B3,'[2022 FishBOM - RIVETED v 02.xlsx]FRV179WTJ-20'!$A:$F,6,FALSE))
R3R3=IF(ISERROR(VLOOKUP(B3,'[2022 FishBOM - RIVETED v 02.xlsx]FRV179WT-25'!$A:$F,6,FALSE)),"",VLOOKUP(B3,'[2022 FishBOM - RIVETED v 02.xlsx]FRV179WT-25'!$A:$F,6,FALSE))
S3S3=IF(ISERROR(VLOOKUP(B3,'[2022 FishBOM - RIVETED v 02.xlsx]FRV179WTJ-25'!$A:$F,6,FALSE)),"",VLOOKUP(B3,'[2022 FishBOM - RIVETED v 02.xlsx]FRV179WTJ-25'!$A:$F,6,FALSE))
T3T3=IF(ISERROR(VLOOKUP(B3,'[2022 FishBOM - RIVETED v 02.xlsx]OLV2010WT (CATFISH)'!$A:$F,6,FALSE)),"",VLOOKUP(B3,'[2022 FishBOM - RIVETED v 02.xlsx]OLV2010WT (CATFISH)'!$A:$F,6,FALSE))
U3U3=IF(ISERROR(VLOOKUP(B3,'[2022 FishBOM - RIVETED v 02.xlsx]OLV2010CC 20 & 25'!$A:$F,6,FALSE)),"",VLOOKUP(B3,'[2022 FishBOM - RIVETED v 02.xlsx]OLV2010CC 20 & 25'!$A:$F,6,FALSE))
V3V3=IF(ISERROR(VLOOKUP(B3,'[2022 FishBOM - RIVETED v 02.xlsx]OLV2010SC 20 & 25'!$A:$F,6,FALSE)),"",VLOOKUP(B3,'[2022 FishBOM - RIVETED v 02.xlsx]OLV2010SC 20 & 25'!$A:$F,6,FALSE))
W3W3=IF(ISERROR(VLOOKUP(B3,'[2022 FishBOM - RIVETED v 02.xlsx]OLV2010WT 20 & 25'!$A:$F,6,FALSE)),"",VLOOKUP(B3,'[2022 FishBOM - RIVETED v 02.xlsx]OLV2010WT 20 & 25'!$A:$F,6,FALSE))
X3X3=IF(ISERROR(VLOOKUP(B3,'[2022 FishBOM - RIVETED v 02.xlsx]OLV2010T 20 & 25'!$A:$F,6,FALSE)),"",VLOOKUP(B3,'[2022 FishBOM - RIVETED v 02.xlsx]OLV2010T 20 & 25'!$A:$F,6,FALSE))
Y3Y3=IF(ISERROR(VLOOKUP(B3,'[2022 FishBOM - RIVETED v 02.xlsx]OLV186CC'!$A:$F,6,FALSE)),"",VLOOKUP(B3,'[2022 FishBOM - RIVETED v 02.xlsx]OLV186CC'!$A:$F,6,FALSE))
Z3Z3=IF(ISERROR(VLOOKUP(B3,'[2022 FishBOM - RIVETED v 02.xlsx]OLV186SC'!$A:$F,6,FALSE)),"",VLOOKUP(B3,'[2022 FishBOM - RIVETED v 02.xlsx]OLV186SC'!$A:$F,6,FALSE))
AA3AA3=IF(ISERROR(VLOOKUP(B3,'[2022 FishBOM - RIVETED v 02.xlsx]OLV186T'!$A:$F,6,FALSE)),"",VLOOKUP(B3,'[2022 FishBOM - RIVETED v 02.xlsx]OLV186T'!$A:$F,6,FALSE))
AB3AB3=IF(ISERROR(VLOOKUP(B3,'[2022 FishBOM - RIVETED v 02.xlsx]OLV165T'!$A:$F,6,FALSE)),"",VLOOKUP(B3,'[2022 FishBOM - RIVETED v 02.xlsx]OLV165T'!$A:$F,6,FALSE))
AC3AC3=IF(ISERROR(VLOOKUP(B3,'[2022 FishBOM - RIVETED v 02.xlsx]OLV165SC'!$A:$F,6,FALSE)),"",VLOOKUP(B3,'[2022 FishBOM - RIVETED v 02.xlsx]OLV165SC'!$A:$F,6,FALSE))
AD3AD3=IF(ISERROR(VLOOKUP(B3,'[2022 FishBOM - RIVETED v 02.xlsx]OLV156T'!$A:$F,6,FALSE)),"",VLOOKUP(B3,'[2022 FishBOM - RIVETED v 02.xlsx]OLV156T'!$A:$F,6,FALSE))
AE3AE3=IF(ISERROR(VLOOKUP(B3,'[2022 FishBOM - RIVETED v 02.xlsx]OLV156SC'!$A:$F,6,FALSE)),"",VLOOKUP(B3,'[2022 FishBOM - RIVETED v 02.xlsx]OLV156SC'!$A:$F,6,FALSE))
AF3AF3=IF(ISERROR(VLOOKUP(B3,'[2022 FishBOM - RIVETED v 02.xlsx]OLV146T'!$A:$F,6,FALSE)),"",VLOOKUP(B3,'[2022 FishBOM - RIVETED v 02.xlsx]OLV146T'!$A:$F,6,FALSE))
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
It should be
Excel Formula:
=VLOOKUP(B3,INDIRECT("'[2022 FishBOM - RIVETED v 02.xlsx]"&G1&"'!$A:$F"),6,FALSE)
Although it will only work if the other workbook is open.
 
Upvote 0
Solution
TY for confirming I did understand how INDIRECT works!
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0
Hello - First time posting here.
I can't remember the exact INDIRECT formula I need to complete my task.
I have many tabs in 1 workbook, all tabs are formatted the same.
In a previous job, I created a summary tab that used a set reference line for the formulas and when I typed in the project number in the A column, all the other columns would populate with the information from that specific tab.
Here is what the individual tab looks like:
1705346007459.png


And here is the summary page I am trying to create:
1705345978800.png

The light green REF LINE is the cell reference for that specific bit of information.
Please help.
 
Upvote 0
As this is a totally different question from the OP, you need to start a thread of your own.
Thanks
 
Upvote 0

Forum statistics

Threads
1,223,099
Messages
6,170,111
Members
452,302
Latest member
TaMere

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top