Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 60
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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 60
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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
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







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


Similar Threads
Thread Thread Starter Forum Replies Last Post
'IF' Macro to insert cell contents to alternate cell if cell not e Gryndar Excel Worksheet Functions 6 December 20th 08 05:02 PM
Return cell address of a cell based on contents of cell. Danny Excel Worksheet Functions 4 November 15th 08 03:11 AM
Populate a cell if values in cell 1 and cell 2 match cell 3 and 4 [email protected] Excel Worksheet Functions 1 August 22nd 08 02:04 AM
How can I make a blank cell in a formula cell with a range of cell Vi Excel Discussion (Misc queries) 5 June 21st 07 02:46 PM
How to create/run "cell A equals Cell B put Cell C info in Cell D abmb161 Excel Discussion (Misc queries) 5 January 26th 06 06:36 PM


All times are GMT +1. The time now is 04:06 PM.

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

About Us

"It's about Microsoft Excel"