Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Pester
 
Posts: n/a
Default INDIRECT sheet Names

I understand how to use the INDIRECT Formula but I am getting a #REF error if
the sheet I refer to has a space in between. If My reference is to look for
information from Sheet1 it works, but if it is from Sheet 1 it does not. Any
tips on this? This is critical because all the sheets refer to products and
have spaces in between the name.

thank you.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Arvi Laanemets
 
Posts: n/a
Default INDIRECT sheet Names

Hi

=SUM(INDIRECT("'" & A1 & "'!A1:A10"))
where A1 contains sheet name


Arvi Laanemets


"Pester" wrote in message
...
I understand how to use the INDIRECT Formula but I am getting a #REF error

if
the sheet I refer to has a space in between. If My reference is to look

for
information from Sheet1 it works, but if it is from Sheet 1 it does not.

Any
tips on this? This is critical because all the sheets refer to products

and
have spaces in between the name.

thank you.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ron Coderre
 
Posts: n/a
Default INDIRECT sheet Names

If a sheet name has a space in it, the reference becomes something like this:

='Sheet 2'!A1 <-note the apostrophes

Consequently, your formula should allow for spaces in a sheet name.
Try this:

For a sheet name in A1

A1: Sheet 2
B1: =INDIRECT("'"&A1&"'!G5")

That formula returns the value in cell G5 on the sheet named: "Sheet 2"

Is that something you can work with?
***********
Regards,
Ron

XL2002, WinXP


"Pester" wrote:

I understand how to use the INDIRECT Formula but I am getting a #REF error if
the sheet I refer to has a space in between. If My reference is to look for
information from Sheet1 it works, but if it is from Sheet 1 it does not. Any
tips on this? This is critical because all the sheets refer to products and
have spaces in between the name.

thank you.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Pester
 
Posts: n/a
Default INDIRECT sheet Names

Thank you Ron for answering. But I can;t get it to work. I tried the example
you gave me exactly on Sheet 1 and Sheet 2 to reference G5. But it gives me
an error.

Please advice,

thank you

Pester

"Ron Coderre" wrote:

If a sheet name has a space in it, the reference becomes something like this:

='Sheet 2'!A1 <-note the apostrophes

Consequently, your formula should allow for spaces in a sheet name.
Try this:

For a sheet name in A1

A1: Sheet 2
B1: =INDIRECT("'"&A1&"'!G5")

That formula returns the value in cell G5 on the sheet named: "Sheet 2"

Is that something you can work with?
***********
Regards,
Ron

XL2002, WinXP


"Pester" wrote:

I understand how to use the INDIRECT Formula but I am getting a #REF error if
the sheet I refer to has a space in between. If My reference is to look for
information from Sheet1 it works, but if it is from Sheet 1 it does not. Any
tips on this? This is critical because all the sheets refer to products and
have spaces in between the name.

thank you.

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Pester
 
Posts: n/a
Default INDIRECT sheet Names

I got it to work. thank you Ron, very helpful

Pedro

"Ron Coderre" wrote:

If a sheet name has a space in it, the reference becomes something like this:

='Sheet 2'!A1 <-note the apostrophes

Consequently, your formula should allow for spaces in a sheet name.
Try this:

For a sheet name in A1

A1: Sheet 2
B1: =INDIRECT("'"&A1&"'!G5")

That formula returns the value in cell G5 on the sheet named: "Sheet 2"

Is that something you can work with?
***********
Regards,
Ron

XL2002, WinXP


"Pester" wrote:

I understand how to use the INDIRECT Formula but I am getting a #REF error if
the sheet I refer to has a space in between. If My reference is to look for
information from Sheet1 it works, but if it is from Sheet 1 it does not. Any
tips on this? This is critical because all the sheets refer to products and
have spaces in between the name.

thank you.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Totals sheet - deal with employee names babs Excel Worksheet Functions 0 February 3rd 06 06:30 PM
how do i set up a list of names on a sheet frm various sheets in e mcvities_69 Excel Discussion (Misc queries) 1 January 27th 06 02:51 AM
Using the Indirect function with a sheet number instead of a sheet name JDB Excel Worksheet Functions 5 December 31st 05 03:03 PM
Copying multiple sheets from one book 2 another and undertake spec Pank Mehta Excel Discussion (Misc queries) 14 March 16th 05 04:41 PM
Sheet names used in formulas frustratedwthis Excel Discussion (Misc queries) 5 February 25th 05 01:13 PM


All times are GMT +1. The time now is 10:46 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"