help with adding... SUMIF formula?

  • Thread starter Thread starter ppaauull
  • Start date Start date
P

ppaauull

I'm looking for a formula that will do the following:

A1-A12 contains numbers. and I want a formula that will add up whatever
number of cell I enter in B1

example: B1, I enter 6
the formula will add from A1 to A6
9 will add up A1-A9, etc...


sumif formula maybe? if anyone can help I'd appreciate it.

thanks!
 
Hi!

Try this:

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

Note: if B1 is empty the entire range will be summed.

Biff
 
=SUM(A1:INDEX(A1:A12,B1))

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)
 
brilliant!!

thanks you guys!

ended up using ths one..

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

thanks again!
 
Good choice, non-volatile <G>

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)
 

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

Back
Top