Concatenate to make a formula

amorts

Board Regular
Joined
Jan 4, 2006
Messages
181
Each of my workbooks is called wkb#### where #### is a 4 digit number. In one column I have a list of these 4 digit numbers. However, I cannot work out how to concatenate the number into the formula as below.

I can create it as a text string but not as a formula.

=wkb7051!$B$3
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Try:

=INDIRECT("'wkb"&A1&"'!B3") where A1 houses your 1st set of 4-digits.
 
Upvote 0
The text string sample you gave would seem to indicate worksheets not workbooks, if a worksheet, you can use the example Greg Truby gave, if a workbook, you would also need to indicate the sheet and something like this:

=INDIRECT("["&A1&".xls]Sheet1!$B$3")

The workbook would need to be open, otherwise you might want to look at INDIRECT.EXT from the MOREFUNC add-in.
 
Upvote 0
No, sorry I should have caught that. I am fairly new to this and I accidentally named my worksheets wkb instead of wks.

I like the solution though, I have never seen or read about the INDIRECT key word in my books!
 
Upvote 0

Forum statistics

Threads
1,223,970
Messages
6,175,693
Members
452,667
Latest member
vanessavalentino83

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