![]() |
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 |
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! |
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! |
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. |
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. |
All times are GMT +1. The time now is 04:32 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com