ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Use the content of a cell in the sum (or other) functions (https://www.excelbanter.com/excel-discussion-misc-queries/185346-use-content-cell-sum-other-functions.html)

Michele Foley

Use the content of a cell in the sum (or other) functions
 
Example of what I want to achieve:

Column A has many rows with numbers.

D1= a text cell that reads textually A1:A20

I am looking for a formula that will give me the sum of the VALUE that D1,
gives me i.e. SUM(A1:A20). I do not want to define names for the range A1:A20
because the range changes frequently in in my particular spreadsheet I would
have to redefine approx 200 names each time.

Can anyone help me?

Pete_UK

Use the content of a cell in the sum (or other) functions
 
Try this:

=SUM(INDIRECT(D1))

Hope this helps.

Pete

On Apr 28, 3:01*pm, Michele Foley <Michele
wrote:
Example of what I want to achieve:

Column A has many rows with numbers.

D1= a text cell that reads textually A1:A20

I am looking for a formula that will give me the sum of the VALUE that D1, *
gives me i.e. SUM(A1:A20). I do not want to define names for the range A1:A20
because the range changes frequently in in my particular spreadsheet I would
have to redefine approx 200 names each time.

Can anyone help me?



Gary''s Student

Use the content of a cell in the sum (or other) functions
 
=SUM(INDIRECT(D1))

--
Gary''s Student - gsnu200781



All times are GMT +1. The time now is 03:36 PM.

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