#1   Report Post  
Mike Fogleman
 
Posts: n/a
Default SUM(OFFSET)?

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

Any ideas?
TIA Mike F


  #2   Report Post  
Bob Umlas
 
Posts: n/a
Default

=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




  #3   Report Post  
Mike Fogleman
 
Posts: n/a
Default

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






  #4   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

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







  #5   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

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









  #6   Report Post  
Frank Kabel
 
Posts: n/a
Default

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




  #7   Report Post  
Mike Fogleman
 
Posts: n/a
Default

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






  #8   Report Post  
Arvi Laanemets
 
Posts: n/a
Default

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




  #9   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

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



  #10   Report Post  
Jason Morin
 
Posts: n/a
Default

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


.



  #11   Report Post  
 
Posts: n/a
Default

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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:56 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"