Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 13
Default Using Indirect with Named Ranges

I've got one sheet with named rows & columns. For example row4 is a named
range "Area4" and column C is a named range "Beans". On a seperate worksheet
if I type in;
=Area4 Beans
then I get the intersecting number of beans but if i have two cell with
Cell 1 - Area4
Cell 2 - Beans
and type in another cell;
=Indirect(Cell 1 & " " & Cell 2)
all I get is the corresponding value from Area4 that matches the column I
typed the Indirect function into instead of column C ("Beans") on the other
worksheet.

Any Help would be great!

Thanks,
Ryan

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 434
Default Using Indirect with Named Ranges

hi, !

try with: =sum(indirect(cell 1) indirect(cell 2))

hth,
hector.

__ original post __
I've got one sheet with named rows & columns. For example row4 is a named range "Area4"
and column C is a named range "Beans".
On a seperate worksheet if I type in; =Area4 Beans
then I get the intersecting number of beans but if i have two cell with
Cell 1 - Area4
Cell 2 - Beans
and type in another cell; =Indirect(Cell 1 & " " & Cell 2)
all I get is the corresponding value from Area4 that matches the column I typed the Indirect function into
instead of column C ("Beans") on the other worksheet.

Any Help would be great!



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 13
Default Using Indirect with Named Ranges

Thanks Hector! I'm not clear why that works but it does.

"Héctor Miguel" wrote:

hi, !

try with: =sum(indirect(cell 1) indirect(cell 2))

hth,
hector.

__ original post __
I've got one sheet with named rows & columns. For example row4 is a named range "Area4"
and column C is a named range "Beans".
On a seperate worksheet if I type in; =Area4 Beans
then I get the intersecting number of beans but if i have two cell with
Cell 1 - Area4
Cell 2 - Beans
and type in another cell; =Indirect(Cell 1 & " " & Cell 2)
all I get is the corresponding value from Area4 that matches the column I typed the Indirect function into
instead of column C ("Beans") on the other worksheet.

Any Help would be great!




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 434
Default Using Indirect with Named Ranges

hi, !

... I'm not clear why that works but it does.

try with: =sum(indirect(cell 1) indirect(cell 2))


it's the sum of the intersection [if any] of both ranges

regards,
hector.


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 733
Default Using Indirect with Named Ranges

"Héctor Miguel" wrote...
... I'm not clear why that works but it does.


try with: =sum(indirect(cell 1) indirect(cell 2))


it's the sum of the intersection [if any] of both ranges


If the intersection would be a single cell, the SUM call isn't needed.

Two indirect calls are needed because the space intersection operator
is an *operator*, so, e.g., A:A 1:1 isn't a range reference but an
operation on two range references that returns a range reference.
INDIRECT can't/doesn't evaluate range expressions, and that's why the
OP's single INDIRECT call failed.



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
Indirect to Named range Saintsman Excel Worksheet Functions 2 February 28th 07 05:23 PM
How do I use indirect when referring to a named range in a closed Ed Green Excel Worksheet Functions 3 May 22nd 06 08:01 PM
INDIRECT and Named Ranges referencing closed workbook gpie Excel Worksheet Functions 9 October 6th 05 11:24 PM
referencing named formula using INDIRECT function [email protected] Excel Worksheet Functions 19 May 11th 05 09:48 AM
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 06:37 PM.

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"