struggling with INDEX function and using a cell value as part of the reference - is it possible?

sparx

New Member
Joined
Jul 29, 2008
Messages
16
struggling with INDEX function, and need some help

I have a number of closed excel workbooks
I have a consolidation workbook that should look up values from the closed workbooks placed in different folders

I can manually enter a index function to make the lookup work - but I need the function to be automatic based on cell values in the consolidation workbook.

e.g.
=INDEX('C:\Desktop\PE\PE_1130\[PE1130.xlsx]PE'!C:C;3;1) this works manually entering

but the reference should be dynamic like this example using cell value c6 to create the path
="'C:\Desktop\PE\PE_" &C6& "\[PE"&C6&".xlsx]PE'!C:C;3;1"

But I cannot figure out how to get this into the INDEX function?

Is that possible???

TIA
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
You would need to use the INDIRECT to do that, but it does not work with closed workbooks.
 
Upvote 0

Forum statistics

Threads
1,214,979
Messages
6,122,559
Members
449,089
Latest member
Motoracer88

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