ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   SUM(OFFSET)? (https://www.excelbanter.com/excel-worksheet-functions/8426-sum-offset.html)

Mike Fogleman

SUM(OFFSET)?
 
I want to sum C4 and each cell every 51st row down. C4+C55+C106+C157+....
etc.

Any ideas?
TIA Mike F



Bob Umlas

=SUMPRODUCT((OFFSET(C4,0,0,10000,1)*(MOD(ROW(4:100 03),51)=4)))

"Mike Fogleman" wrote in message
news:XgDAd.39842$k25.6833@attbi_s53...
I want to sum C4 and each cell every 51st row down. C4+C55+C106+C157+....
etc.

Any ideas?
TIA Mike F





Frank Kabel

Hi
try
=SUMPRODUCT(--(MOD(ROW(C4:C1000)-4,51)=0),C4:C1000)

--
Regards
Frank Kabel
Frankfurt, Germany
"Mike Fogleman" schrieb im Newsbeitrag
news:XgDAd.39842$k25.6833@attbi_s53...
I want to sum C4 and each cell every 51st row down. C4+C55+C106+C157+....
etc.

Any ideas?
TIA Mike F





Arvi Laanemets

Hi

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


Arvi Laanemets


"Mike Fogleman" wrote in message
news:XgDAd.39842$k25.6833@attbi_s53...
I want to sum C4 and each cell every 51st row down. C4+C55+C106+C157+....
etc.

Any ideas?
TIA Mike F





Peo Sjoblom

One way

=SUMPRODUCT(--(MOD(ROW(C4:C500),51)=4),C4:C500)

Regards,

Peo Sjoblom

"Mike Fogleman" wrote:

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

Any ideas?
TIA Mike F




Mike Fogleman

That results in #VALUE!
"Bob Umlas" wrote in message
...
=SUMPRODUCT((OFFSET(C4,0,0,10000,1)*(MOD(ROW(4:100 03),51)=4)))

"Mike Fogleman" wrote in message
news:XgDAd.39842$k25.6833@attbi_s53...
I want to sum C4 and each cell every 51st row down.

C4+C55+C106+C157+....
etc.

Any ideas?
TIA Mike F







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

-----Original Message-----
I want to sum C4 and each cell every 51st row down.

C4+C55+C106+C157+....
etc.

Any ideas?
TIA Mike F


.


Peo Sjoblom

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

Regards,

Peo Sjoblom

"Mike Fogleman" wrote:

That results in #VALUE!
"Bob Umlas" wrote in message
...
=SUMPRODUCT((OFFSET(C4,0,0,10000,1)*(MOD(ROW(4:100 03),51)=4)))

"Mike Fogleman" wrote in message
news:XgDAd.39842$k25.6833@attbi_s53...
I want to sum C4 and each cell every 51st row down.

C4+C55+C106+C157+....
etc.

Any ideas?
TIA Mike F








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

"Peo Sjoblom" wrote:

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

Regards,

Peo Sjoblom

"Mike Fogleman" wrote:

That results in #VALUE!
"Bob Umlas" wrote in message
...
=SUMPRODUCT((OFFSET(C4,0,0,10000,1)*(MOD(ROW(4:100 03),51)=4)))

"Mike Fogleman" wrote in message
news:XgDAd.39842$k25.6833@attbi_s53...
I want to sum C4 and each cell every 51st row down.

C4+C55+C106+C157+....
etc.

Any ideas?
TIA Mike F








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)

"Frank Kabel" wrote in message
...
Hi
try
=SUMPRODUCT(--(MOD(ROW(C4:C1000)-4,51)=0),C4:C1000)

--
Regards
Frank Kabel
Frankfurt, Germany
"Mike Fogleman" schrieb im Newsbeitrag
news:XgDAd.39842$k25.6833@attbi_s53...
I want to sum C4 and each cell every 51st row down. C4+C55+C106+C157+....
etc.

Any ideas?
TIA Mike F







[email protected]

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)))



All times are GMT +1. The time now is 04:07 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com