workbook in formula

G

Guest

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!
 
N

Niek Otten

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

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

| 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!
 
G

Guest

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

Thanks!

Duke Carey said:
if text.xls is open, use

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


ellen said:
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!
 
P

Peo Sjoblom

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

--
Regards,

Peo Sjoblom



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

Thanks!

Duke Carey said:
if text.xls is open, use

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


ellen said:
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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top