Question about Sum

K

Keith

Hello,
In the formula =sum(B6:B50) is there any to make the value represented
here by the “6†a variable? Is there any I could point it to, say, the value
in cell “A1�

Thank you,

Keith
 
T

T. Valko

Try this:

A1 = 6

=SUM(INDEX(B1:B50,A1):B50)

If A1 is an empty cell the formula will calculate the entire range. If A1 is
a number >50 then you'll get a #REF! error.
 

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

Similar Threads


Top