ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   workbook in formula (https://www.excelbanter.com/excel-worksheet-functions/139827-workbook-formula.html)

ellen

workbook in formula
 
Is there a way to have the name of a workbook in a formula from a column in
another column? For example, the workbook's name is in A1 like test.xls, the
formula will be in column b referencing test.xls as follows:

='[" & A1 & "]tabname'!$B$8

Thanks!

Niek Otten

workbook in formula
 
Use the INDIRECT() function. Look in Help for details.

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"ellen" wrote in message ...
| Is there a way to have the name of a workbook in a formula from a column in
| another column? For example, the workbook's name is in A1 like test.xls, the
| formula will be in column b referencing test.xls as follows:
|
| ='[" & A1 & "]tabname'!$B$8
|
| Thanks!



Duke Carey

workbook in formula
 
if text.xls is open, use

=indirect('[" & A1 & "]tabname'!$B$8)


"ellen" wrote:

Is there a way to have the name of a workbook in a formula from a column in
another column? For example, the workbook's name is in A1 like test.xls, the
formula will be in column b referencing test.xls as follows:

='[" & A1 & "]tabname'!$B$8

Thanks!


ellen

workbook in formula
 
I copied your formula exactly but it comes back with a #REF error. Any
further help would be appreciated.

Thanks!

"Duke Carey" wrote:

if text.xls is open, use

=indirect('[" & A1 & "]tabname'!$B$8)


"ellen" wrote:

Is there a way to have the name of a workbook in a formula from a column in
another column? For example, the workbook's name is in A1 like test.xls, the
formula will be in column b referencing test.xls as follows:

='[" & A1 & "]tabname'!$B$8

Thanks!


Peo Sjoblom

workbook in formula
 
tabname stands for the name of sheet, replace it with the name of the sheet
in question

--
Regards,

Peo Sjoblom



"ellen" wrote in message
...
I copied your formula exactly but it comes back with a #REF error. Any
further help would be appreciated.

Thanks!

"Duke Carey" wrote:

if text.xls is open, use

=indirect('[" & A1 & "]tabname'!$B$8)


"ellen" wrote:

Is there a way to have the name of a workbook in a formula from a
column in
another column? For example, the workbook's name is in A1 like
test.xls, the
formula will be in column b referencing test.xls as follows:

='[" & A1 & "]tabname'!$B$8

Thanks!





All times are GMT +1. The time now is 01:31 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com