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!
JE McGimpsey - 13 Nov 2006 18:47 GMT
One way:
=IF(B1>0,SUM(OFFSET(A1,0,0,B1,1)),"")
> I'm looking for a formula that will do the following:
>
[quoted text clipped - 8 lines]
>
> thanks!
CLR - 13 Nov 2006 18:54 GMT
=IF(B1=0,"",SUM(A1:INDIRECT("A"&B1)))
Vaya con Dios,
Chuck, CABGx3
> One way:
>
[quoted text clipped - 12 lines]
> >
> > thanks!
ppaauull@gmail.com - 13 Nov 2006 19:00 GMT
brilliant!!
thanks you guys!
ended up using ths one..
=SUM(A1:INDEX(A1:A12,B1))
thanks again!
Bob Phillips - 13 Nov 2006 20:48 GMT
Good choice, non-volatile <G>

Signature
HTH
Bob Phillips
(replace somewhere in email address with gmail if mailing direct)
> brilliant!!
>
[quoted text clipped - 5 lines]
>
> thanks again!
Biff - 13 Nov 2006 18:50 GMT
Hi!
Try this:
=SUM(A1:INDEX(A1:A12,B1))
Note: if B1 is empty the entire range will be summed.
Biff
> I'm looking for a formula that will do the following:
>
[quoted text clipped - 8 lines]
>
> thanks!
Bob Phillips - 13 Nov 2006 18:51 GMT
=SUM(A1:INDEX(A1:A12,B1))

Signature
HTH
Bob Phillips
(replace somewhere in email address with gmail if mailing direct)
> I'm looking for a formula that will do the following:
>
[quoted text clipped - 8 lines]
>
> thanks!