Using Indirect Concatenate to get values from other workbook

bc4240

Board Regular
Joined
Aug 4, 2009
Messages
134
Office Version
  1. 365
Platform
  1. Windows
I have an question about using a combo box value in a formula to look up information in one of six workbooks.

I have a combo box that contains a list of years:

2009
2010
2011
2012
etc

I have 6 and eventually more workbooks named like so:

PStop Break Down 2010 00.xls
PStop Break Down 2010 56.xls
etc

I would like to bring data from a particular column in one of these workbooks into a workbook and there I will use the values for calculations. Currently I am using this formula to load the data:

" 'C:\Calculator\[PStop Break Down 2010 00.xls]Total'!FR1 "

but this formula fixes the year and I need the year to be dynamic


I was thinking I could do something like this:


" indirect(concatenate("'C:\Calculator\[PStop Break Down"," ",$C$12," ", "00.xls]Total'!FR1")) "


$C$12 = the combo box year value

But it doesn't work I only get a "REF" return.

currently I'm using this in 2003

any suggestions would be appreciated

BC
 
Last edited:

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
INDIRECT only works with open workbooks....is the source workbook open? If you want to extract from a closed workbook then you might be able to install Morefunc add-in and use INDIRECT.EXT function (try googling Morefunc)
 
Upvote 0
Solution
workbook was closed and will have to be closed sometimes I'll look at MoreFunc thanks for advice
 
Upvote 0

Forum statistics

Threads
1,224,547
Messages
6,179,436
Members
452,915
Latest member
hannnahheileen

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