getting a formula to find named worksheets in another?

G

Guest

Hi,

I have a worksheet which needs to does a calcualtion on data in another
workbook containing several worksheets.

Workbook 1 has something like

Col A Col B
Apr-05 =formula
May-05 =formula


Workbook 2 has several worksheets called
Apr-5
May-5


So I need my formulas in Workbook 1 to find the appropriate worksheet in
Workbook 2 (identified in the adjacent) before doing their calcualation.

It looks like I need to use maybe the INDIRECT function, or named ranges but
I can't quite get it...

Any suggestions?

Cheers,

Matt
 
B

Bob Phillips

=INDIRECT("[myBook.xls]"&A1&"!A1")

but the other workbook must be open.

--

HTH

RP
(remove nothere from the email address if mailing direct)
 
G

Guest

Hi,

Thanks for the reply but I can't get this to work. I replaced mybook.xls
with the appropriate file name, but I get #REF???



Bob Phillips said:
=INDIRECT("[myBook.xls]"&A1&"!A1")

but the other workbook must be open.

--

HTH

RP
(remove nothere from the email address if mailing direct)


Matt D Francis said:
Hi,

I have a worksheet which needs to does a calcualtion on data in another
workbook containing several worksheets.

Workbook 1 has something like

Col A Col B
Apr-05 =formula
May-05 =formula


Workbook 2 has several worksheets called
Apr-5
May-5


So I need my formulas in Workbook 1 to find the appropriate worksheet in
Workbook 2 (identified in the adjacent) before doing their calcualation.

It looks like I need to use maybe the INDIRECT function, or named ranges but
I can't quite get it...

Any suggestions?

Cheers,

Matt
 
B

Bob Phillips

Matt,

IT works fine for me, just tested it again.

You other workbook is open isn't it?

--

HTH

RP
(remove nothere from the email address if mailing direct)


Matt D Francis said:
Hi,

Thanks for the reply but I can't get this to work. I replaced mybook.xls
with the appropriate file name, but I get #REF???



Bob Phillips said:
=INDIRECT("[myBook.xls]"&A1&"!A1")

but the other workbook must be open.

--

HTH

RP
(remove nothere from the email address if mailing direct)


Hi,

I have a worksheet which needs to does a calcualtion on data in another
workbook containing several worksheets.

Workbook 1 has something like

Col A Col B
Apr-05 =formula
May-05 =formula


Workbook 2 has several worksheets called
Apr-5
May-5


So I need my formulas in Workbook 1 to find the appropriate worksheet in
Workbook 2 (identified in the adjacent) before doing their calcualation.

It looks like I need to use maybe the INDIRECT function, or named
ranges
but
I can't quite get it...

Any suggestions?

Cheers,

Matt
 
G

Guest

Yes, I figured the problem, needed single quotes round the workbook/worksheet
for it to work on mine.

Thanks a lot though - still got it sorted!

Matt

Bob Phillips said:
Matt,

IT works fine for me, just tested it again.

You other workbook is open isn't it?

--

HTH

RP
(remove nothere from the email address if mailing direct)


Matt D Francis said:
Hi,

Thanks for the reply but I can't get this to work. I replaced mybook.xls
with the appropriate file name, but I get #REF???



Bob Phillips said:
=INDIRECT("[myBook.xls]"&A1&"!A1")

but the other workbook must be open.

--

HTH

RP
(remove nothere from the email address if mailing direct)


Hi,

I have a worksheet which needs to does a calcualtion on data in another
workbook containing several worksheets.

Workbook 1 has something like

Col A Col B
Apr-05 =formula
May-05 =formula


Workbook 2 has several worksheets called
Apr-5
May-5


So I need my formulas in Workbook 1 to find the appropriate worksheet in
Workbook 2 (identified in the adjacent) before doing their calcualation.

It looks like I need to use maybe the INDIRECT function, or named ranges
but
I can't quite get it...

Any suggestions?

Cheers,

Matt
 
B

Bob Phillips

Sorry, I always forget that as I don't tend to embed spaces in the names.

--

HTH

RP
(remove nothere from the email address if mailing direct)


Matt D Francis said:
Yes, I figured the problem, needed single quotes round the workbook/worksheet
for it to work on mine.

Thanks a lot though - still got it sorted!

Matt

Bob Phillips said:
Matt,

IT works fine for me, just tested it again.

You other workbook is open isn't it?

--

HTH

RP
(remove nothere from the email address if mailing direct)


Hi,

Thanks for the reply but I can't get this to work. I replaced mybook.xls
with the appropriate file name, but I get #REF???



:

=INDIRECT("[myBook.xls]"&A1&"!A1")

but the other workbook must be open.

--

HTH

RP
(remove nothere from the email address if mailing direct)


Hi,

I have a worksheet which needs to does a calcualtion on data in another
workbook containing several worksheets.

Workbook 1 has something like

Col A Col B
Apr-05 =formula
May-05 =formula


Workbook 2 has several worksheets called
Apr-5
May-5


So I need my formulas in Workbook 1 to find the appropriate
worksheet
in
Workbook 2 (identified in the adjacent) before doing their calcualation.

It looks like I need to use maybe the INDIRECT function, or named ranges
but
I can't quite get it...

Any suggestions?

Cheers,

Matt
 

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