Forum Discussion
soffi1363
Jan 11, 2023Copper Contributor
Variables
Trying to find a solution to Sum(x1:xa) where a is a variable number 1-12
SergeiBaklan
Jan 11, 2023Diamond Contributor
soffi1363
Jan 12, 2023Copper Contributor
Hi Sergei
Thank you for answer. Could not make this work. Maybe Ithis would clarify my problem better. I am trying to sum a column a1 to aX where my X could be a2, a3... i.e.X is 2,3,4.... i.e. a variable. Nested funtions would be to cumbersome to use. Searcing for a better solution.
Thank you for answer. Could not make this work. Maybe Ithis would clarify my problem better. I am trying to sum a column a1 to aX where my X could be a2, a3... i.e.X is 2,3,4.... i.e. a variable. Nested funtions would be to cumbersome to use. Searcing for a better solution.
- SergeiBaklanJan 12, 2023Diamond Contributor
- HansVogelaarJan 12, 2023MVP
An alternative:
Let's say you enter a value in cell D1
=SUM(INDIRECT("A1:A"&D1))
(I don't think it's possible to do what you want without nesting a function within SUM)
- soffi1363Jan 12, 2023Copper ContributorHi Hans
I am afraid you are right