ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Referring to a named range (https://www.excelbanter.com/excel-programming/384269-referring-named-range.html)

Darin Kramer

Referring to a named range
 

Hi there,

is it possible within a formulae to refer to a named range, not by
stating the named range, but by refering to a cell, where the contents
of a cell is a named range?

For eg, if cells a1 to a5 contain numbers and I name that reference
Col_A, then if I want the total I can just type = sum(Col_A).

Now I want to do exactly the same thing, but instead of the name Col_A
in the formulae, I want to use a reference. Thus in cell B1 I have the
words Col_A. The formulae =sum(b1) obviously doesnt work. Something like
= sum(name(b1)) ?

Regards

Darin




*** Sent via Developersdex http://www.developersdex.com ***

Haldun Alay

Referring to a named range
 
Hi,

Use following formula

=SUM(INDIRECT(B1))

--
Haldun Alay

"Darin Kramer" , haber iletisinde sunlari
...

Hi there,

is it possible within a formulae to refer to a named range, not by
stating the named range, but by refering to a cell, where the contents
of a cell is a named range?

For eg, if cells a1 to a5 contain numbers and I name that reference
Col_A, then if I want the total I can just type = sum(Col_A).

Now I want to do exactly the same thing, but instead of the name Col_A
in the formulae, I want to use a reference. Thus in cell B1 I have the
words Col_A. The formulae =sum(b1) obviously doesnt work. Something like
= sum(name(b1)) ?

Regards

Darin




*** Sent via Developersdex http://www.developersdex.com ***




Darin Kramer

Referring to a named range
 

Thanks!!! works perfectly!


*** Sent via Developersdex http://www.developersdex.com ***


All times are GMT +1. The time now is 08:14 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com