INDIRECT formula construction

frog

New Member
Joined
Mar 7, 2010
Messages
5
My formula is working fine, and sits in cell B2:
<table x:str="" style="border-collapse: collapse; width: 422px; height: 36px;" border="0" cellpadding="0" cellspacing="0"><col style="width: 206pt;" width="274"><tr style="height: 12.75pt;" height="17"> <td style="height: 12.75pt; width: 206pt;" width="274" height="17">INDIRECT("[workbookalpha.xls]Template!B"&A1)</td> </tr></table>It is combining the variable number it finds in cell A1 with information in column B in a different workbook.

I would like to add something to this formula, and have not found the correct way to express it:

Cell A2 contains the unvarying text "workbookalpha", so (to save typing the same workbook names twice -there are many- running down columns A and B), I'd like to alter the portion of the above formula that references the workbook address in square brackets, to source the "workbookalpha" portion of the address from cell A2.

Thank you in advance for your help with this question!
frog
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Thank you 'K99,

So since the ".xls" portion of the workbook address is not in cell A2, but needs to be added to the INDIRECT formula to make it work, would the construction then be:

INDIRECT("["&A2&.xls"]Template!B"&A1)

or

INDIRECT("["&A2&".xls]Template!B"&A1)

or ...?

Thanks again!
frog
 
Upvote 0
<frog dances around in joy>
Thank you so much 'K99! It works! This will save me so much time/typing and I was beating my head against the desk trying to make the equation work.
Thank you!!!
:)
frog
 
Upvote 0

Forum statistics

Threads
1,215,006
Messages
6,122,666
Members
449,091
Latest member
peppernaut

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