VLOOKUP on a closed Workbook...

How_Do_I

Well-known Member
Joined
Oct 23, 2009
Messages
1,831
Office Version
  1. 2010
Platform
  1. Windows
What am I doing wrong with the attached please?

F4 and G4 are working... I change F4 and I get the expected result in G4 from my closed workbook...

My problem is building my VLOOKUP in F5 using CONCATENATE AND INDIRECT...

Any advice please?

Excel Workbook
ABCDEFG
1124
2Folder:File Name:Sheet Name:Named Range2
3C:\Users\Gus\Desktop\A\V Examples\x VLOOKUP TEST WorkbookTablesFullTablePTeam
414Graafschap
514#REF!
Sheet1
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
=VLOOKUP($F5,INDIRECT("'"&A3&B3&".xls'!&D3"),2,FALSE)
becomes:
=VLOOKUP($F5,INDIRECT("'"&A3&B3&".xls'!"&D3),2,FALSE)
? Untested.
 
Upvote 0
You seem to have misplaced some quotes in G5, try:
G5 =VLOOKUP($F5,INDIRECT("'"&A3&B3&".xls'!"&D3),2,FALSE)
 
Upvote 0
No, P45cal that didn't get it... Rob yours didn't work either...
 
Last edited:
Upvote 0
INDIRECT will not work with a closed workbook.
 
Upvote 0
For alternatives see this blog post.

Although generally I don't think referencing external workbooks is a good idea and should only be used when absolutely necessary. Consider pulling in the data from the external workbook (using VBA, or a query table).
 
Upvote 0
I've put some of the above solutions in a test workbook as I've tried them... I've just open the closed workbook and funny old thing, my sheet is now infested with the expected value...! :LOL:

Got to go now but I'll read the alternative to INDIRECT on a closed workbook ASAP... :eek:

Thanks to all that have helped with this...:)
 
Upvote 0
Right. I should have remembered that indirects don't work on closed workbooks. I always add a macro that runs when the workbook opens that warns the user that formulas won't calculate properly with the source workbook closed and then prompts them to ask if the macro should open the workbook.
 
Upvote 0
Everything is fine now Rob... The link that Jon gave me said that INDIRECT.EXT won't work either but I tried it and it does for me...
 
Upvote 0

Forum statistics

Threads
1,214,611
Messages
6,120,509
Members
448,967
Latest member
screechyboy79

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