LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 86
Default Named ranges are causing a #REF error

Jim,

If you have time...why do you need the single quotes around the first range
and not the second? When I was using $C$4:$C$14200, I used quotes in front
of that.

If you have time.

Thanks again.

Arlen

"Jim Thomlinson" wrote:

Looks like quotes, and exclamations marks is the problem...

INDIRECT("'" & SideBySide!$B$2 & "'!" & SideBySide!$D$2),
--
HTH...

Jim Thomlinson


"Arlen" wrote:

Hey, Everyone!

I have a table for chart data that changes two aspects depending on user
input: the sheet it pulls data from and the range on that sheet it pulls
data from.

In the main sheet SideBySide, the user chooses a city in $B$2 (sheet name)
and a product in $D$2 (range name). This formula works for the sheet
switching only...

=IF(A40,SUMPRODUCT(--(INDIRECT("'"&SideBySide!$B$2&"'!$B$4:$B$14200")=A 4),INDIRECT("'"&SideBySide!$B$2&"'!$C$4:$C$14200") ,INDIRECT("'"&SideBySide!$B$2&"'!$G$4:$G$14200")), "")

The range that needs to change is in the second INDIRECT ($C$4:$C$14200
corresponds to choosing the product Hypo.)
However, I also have products HCL (found in $D$4:$D$14200)
and Caustic ($E$4:$E$14200)

I replaced the second INDIRECT's static range with SideBySide!$D$2, hoping
to get Tacoma!Caustic for instance, but I get a #REF error.

,INDIRECT("'"&SideBySide!$B$2&"'!SideBySide!$D$2") ,

Is this a matter of keeping the quotes and apostrophes straight, or is
having the same named ranges on 5 different pages a problem? I'm sure this
is very doable.

Any help would be greatly appreciated.

Thank you for your time. Have a great day!

Arlen

 
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
Query causing #ref error in spreadsheet endro Excel Discussion (Misc queries) 0 May 14th 08 12:03 AM
cells without values causing error message karen Excel Discussion (Misc queries) 6 January 11th 08 06:39 PM
Named range causing really weird problems - HELP Abbas Excel Discussion (Misc queries) 0 July 26th 06 05:55 PM
VLOOKUP Formula causing an error japc90 Excel Discussion (Misc queries) 2 July 25th 06 11:36 PM
Like 123, allow named ranges, and print named ranges WP Excel Discussion (Misc queries) 1 April 8th 05 06:07 PM


All times are GMT +1. The time now is 10:07 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"