referencing cell within formula

biagio85

New Member
Joined
Sep 19, 2010
Messages
14
=INDEX('\\Pl2nas106\Sharedirs$\Sharedirs2\Business Planning\[Exec_HC_FEBFCST1213.xlsx]Sheet 1'!B:B,MATCH($Q6,'\\Pl2nas106\Sharedirs$\Sharedirs2\Business Planning\[Exec_HC_FEBFCST1213.xlsx]Sheet 1'!$AB:$AB,0))

I want to reference this part [Exec_HC_FEBFCST1213.xlsx] with different options but i cannot extract that part out without the forumla blowing up.

=INDEX('\\Pl2nas106\Sharedirs$\Sharedirs2\Business Planning\&B2&Sheet 1'!B:B,MATCH($Q6,'\\Pl2nas106\Sharedirs$\Sharedirs2\Business Planning\&B2&Sheet 1'!$AB:$AB,0))

That didnt work.. any ideas?
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Give this a try (changes / additions noted in red):

=INDEX(INDIRECT("'\\Pl2nas106\Sharedirs$\Sharedirs2\Business Planning\&B2&Sheet 1'!B:B"),MATCH($Q6,INDIRECT("'\\Pl2nas106\Sharedirs$\Sharedirs2\Business Planning\&B2&Sheet 1'!$AB:$AB"),0))

Cell B2 = [Exec_HC_FEBFCST1213.xlsx]
Be sure to include the square brackets

Note that with the INDIRECT function you must have the source / reference file open for it to work (there is an Excel Add-in to get around this limitation).
 
Upvote 0

Forum statistics

Threads
1,203,634
Messages
6,056,457
Members
444,866
Latest member
cr130

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