SUM(OFFSET)?

M

Mike Fogleman

I want to sum C4 and each cell every 51st row down. C4+C55+C106+C157+....
etc.

Any ideas?
TIA Mike F
 
A

Arvi Laanemets

Hi

On fly
=SUMPRODUCT(--(MOD((ROW(C4:C1000)+47);51)=0);C4:C1000)


Arvi Laanemets
 
J

Jason Morin

Just 2 other ways:

=C4+SUMPRODUCT(SUM(OFFSET(C4,ROW(1:1000)*51,)))
=C4+SUMPRODUCT(SUM(INDIRECT("C"&ROW(1:100)*51+4)))

HTH
Jason
Atlanta, GA
 
P

Peo Sjoblom

If it does you must have text in some of the cells in question

Regards,

Peo Sjoblom
 
P

Peo Sjoblom

Of course if you have text values in there you can use any of the other 3
formulas you were given


Regards,

Peo Sjoblom
 
M

Mike Fogleman

Thanks, that works great. And I see how to adapt it to other cells, eg...
=SUMPRODUCT(--(MOD(ROW(C5:C1000)-5,51)=0),C5:C1000)
 
H

hrlngrv

Jason Morin wrote...
Just 2 other ways:

=C4+SUMPRODUCT(SUM(OFFSET(C4,ROW(1:1000)*51,)))
=C4+SUMPRODUCT(SUM(INDIRECT("C"&ROW(1:100)*51+4)))
....

Or

=SUMPRODUCT(N(OFFSET(C4,(ROW(INDIRECT("1:1000"))-1)*51,0)))
 

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