#1   Report Post  
Pedro
 
Posts: n/a
Default range names

Hi everyone
Suppose this example:
a1;a2;A3 equals 5, 7, 9
b1;b2;b3 equals 2, 3,8
Name range for first range abc
Name range for second range def
There's a formula on cell c1 : Sum(abc)
What i would like is : on cell d1, i input abc or def or another range name
and on cell c1, without any macro but a formula, it sums what i input on cell
d1, abc or def.
Can you help me please?
Tks in advance
Pedro
  #2   Report Post  
Bricktop
 
Posts: n/a
Default

You probably figured it out but if not you could put a If statement formula
in C1 depending on how many range names you have.
=IF(D1="abc",SUM(abc),IF(D1="def",SUM(def),0))

"Pedro" wrote:

Hi everyone
Suppose this example:
a1;a2;A3 equals 5, 7, 9
b1;b2;b3 equals 2, 3,8
Name range for first range abc
Name range for second range def
There's a formula on cell c1 : Sum(abc)
What i would like is : on cell d1, i input abc or def or another range name
and on cell c1, without any macro but a formula, it sums what i input on cell
d1, abc or def.
Can you help me please?
Tks in advance
Pedro

  #3   Report Post  
R.VENKATARAMAN
 
Posts: n/a
Default

try

=sum(indirect(d1))

no doublequotes in d1

whatever name range you type in d1 that sum will be there;.

Bricktop wrote in message
...
You probably figured it out but if not you could put a If statement

formula
in C1 depending on how many range names you have.
=IF(D1="abc",SUM(abc),IF(D1="def",SUM(def),0))

"Pedro" wrote:

Hi everyone
Suppose this example:
a1;a2;A3 equals 5, 7, 9
b1;b2;b3 equals 2, 3,8
Name range for first range abc
Name range for second range def
There's a formula on cell c1 : Sum(abc)
What i would like is : on cell d1, i input abc or def or another range

name
and on cell c1, without any macro but a formula, it sums what i input on

cell
d1, abc or def.
Can you help me please?
Tks in advance
Pedro



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
Passing a range name as an argument to the Index Function Michael Sharpe Excel Discussion (Misc queries) 3 September 5th 12 01:33 PM
named range refers to: in a chart Spencer Hutton Excel Discussion (Misc queries) 1 December 14th 04 10:15 PM
HTML_Control Range name Steven Cheng Excel Discussion (Misc queries) 4 December 10th 04 10:12 PM
How can I find the common names in two columns of names? hako Excel Discussion (Misc queries) 2 December 8th 04 01:59 AM
range names Pedro Excel Worksheet Functions 1 November 9th 04 06:27 PM


All times are GMT +1. The time now is 06:53 PM.

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

About Us

"It's about Microsoft Excel"