Summing a variable range

R

Ram B

I need to create a formula for summing cells say B2 through J2 with results
in A2 so I use the formula

=sum(B2:J2)

As you see I am summing 9 cells.

What I want to do is able to type a number in Cell A1 and sum the B2 to A1
number of cells to the right of B2.

Any help will be appreciated.
 
P

Peo Sjoblom

Here's a non volatile solution

=SUM(B2:INDEX(B2:IV2,A1))

--


Regards,


Peo Sjoblom
 
S

Stefi

Why do you call it a non volatile solution? As far as I know "volatile" means
that the expression is recalculated each time a Calculation occurs. It
applies to your formula as well, doesn't it?

Regards,
Stefi


„Peo Sjoblom†ezt írta:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top