A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

sum of every 4th cell in a row.



 
 
Thread Tools Display Modes
  #1  
Old May 11th, 2009, 10:08 PM posted to microsoft.public.excel.worksheet.functions
monique
external usenet poster
 
Posts: 74
Default sum of every 4th cell in a row.

I am trying to set up a spread sheet where each element in a row has four
different columns of data. At the end of the row I need to do various
calculations based on the sum of each column for each element.

BX5 = C5+G5+K5+O5+etc.
BY5 = D5+I5+L5+P5,+etc

I've seen several similar calculations using data in column, but not in rows
and I have not been able to translate that info into rows.

Monie


  #2  
Old May 11th, 2009, 10:27 PM posted to microsoft.public.excel.worksheet.functions
T. Valko
external usenet poster
 
Posts: 15,759
Default sum of every 4th cell in a row.

Try this:

=SUMPRODUCT(--(MOD(COLUMN(C5:AA5)-COLUMN(C5),4)=0),C5:AA5)

Adjust for the correct end of the range.

--
Biff
Microsoft Excel MVP


"Monique" wrote in message
...
I am trying to set up a spread sheet where each element in a row has four
different columns of data. At the end of the row I need to do various
calculations based on the sum of each column for each element.

BX5 = C5+G5+K5+O5+etc.
BY5 = D5+I5+L5+P5,+etc

I've seen several similar calculations using data in column, but not in
rows
and I have not been able to translate that info into rows.

Monie




  #3  
Old May 12th, 2009, 06:36 PM posted to microsoft.public.excel.worksheet.functions
monique
external usenet poster
 
Posts: 74
Default sum of every 4th cell in a row.

Thanks. I see what I was doing wrong in my translation from rows to columns.
I was not being specific enough about the cells to calculate.

"T. Valko" wrote:

Try this:

=SUMPRODUCT(--(MOD(COLUMN(C5:AA5)-COLUMN(C5),4)=0),C5:AA5)

Adjust for the correct end of the range.

--
Biff
Microsoft Excel MVP


"Monique" wrote in message
...
I am trying to set up a spread sheet where each element in a row has four
different columns of data. At the end of the row I need to do various
calculations based on the sum of each column for each element.

BX5 = C5+G5+K5+O5+etc.
BY5 = D5+I5+L5+P5,+etc

I've seen several similar calculations using data in column, but not in
rows
and I have not been able to translate that info into rows.

Monie





  #4  
Old May 12th, 2009, 07:21 PM posted to microsoft.public.excel.worksheet.functions
T. Valko
external usenet poster
 
Posts: 15,759
Default sum of every 4th cell in a row.

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"Monique" wrote in message
...
Thanks. I see what I was doing wrong in my translation from rows to
columns.
I was not being specific enough about the cells to calculate.

"T. Valko" wrote:

Try this:

=SUMPRODUCT(--(MOD(COLUMN(C5:AA5)-COLUMN(C5),4)=0),C5:AA5)

Adjust for the correct end of the range.

--
Biff
Microsoft Excel MVP


"Monique" wrote in message
...
I am trying to set up a spread sheet where each element in a row has
four
different columns of data. At the end of the row I need to do various
calculations based on the sum of each column for each element.

BX5 = C5+G5+K5+O5+etc.
BY5 = D5+I5+L5+P5,+etc

I've seen several similar calculations using data in column, but not in
rows
and I have not been able to translate that info into rows.

Monie







 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 05:49 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.