Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 14
Default Summing +30 Non-adjacent cells

Good afternoon,

I need to sum over 30 cells which are nonadjacent. However, they are evenly
spaced (the first cell is D4, and then H4, and soforth, through FH4).

Currently, I am simply using the SUM function and various "embedded" SUMs,
but this is very long and tedious to input (not to mention, looks horribly
sloppy in the Fx field). Is there a simpler way to tally this information?

Thank you again for your kind support.


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Summing +30 Non-adjacent cells

Try this:

=SUMPRODUCT(--(MOD(COLUMN(D4:FH4)-COLUMN(D4),4)=0),D4:FH4)

--
Biff
Microsoft Excel MVP


"Stacy C" wrote in message
...
Good afternoon,

I need to sum over 30 cells which are nonadjacent. However, they are
evenly
spaced (the first cell is D4, and then H4, and soforth, through FH4).

Currently, I am simply using the SUM function and various "embedded" SUMs,
but this is very long and tedious to input (not to mention, looks horribly
sloppy in the Fx field). Is there a simpler way to tally this information?

Thank you again for your kind support.




  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,346
Default Summing +30 Non-adjacent cells

Hi,

Try this

=SUMPRODUCT(D4:FH4*(MOD(COLUMN(D:FH),4)=0))

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"Stacy C" wrote:

Good afternoon,

I need to sum over 30 cells which are nonadjacent. However, they are evenly
spaced (the first cell is D4, and then H4, and soforth, through FH4).

Currently, I am simply using the SUM function and various "embedded" SUMs,
but this is very long and tedious to input (not to mention, looks horribly
sloppy in the Fx field). Is there a simpler way to tally this information?

Thank you again for your kind support.


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Summing +30 Non-adjacent cells

=SUMPRODUCT(D4:FH4*(MOD(COLUMN(D:FH),4)=0))

That'll return an error if any of the in-between cells contain text.


--
Biff
Microsoft Excel MVP


"Shane Devenshire" wrote in
message ...
Hi,

Try this

=SUMPRODUCT(D4:FH4*(MOD(COLUMN(D:FH),4)=0))

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"Stacy C" wrote:

Good afternoon,

I need to sum over 30 cells which are nonadjacent. However, they are
evenly
spaced (the first cell is D4, and then H4, and soforth, through FH4).

Currently, I am simply using the SUM function and various "embedded"
SUMs,
but this is very long and tedious to input (not to mention, looks
horribly
sloppy in the Fx field). Is there a simpler way to tally this
information?

Thank you again for your kind support.




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,231
Default Summing +30 Non-adjacent cells

"T. Valko" wrote...
Try this:

=SUMPRODUCT(--(MOD(COLUMN(D4:FH4)-COLUMN(D4),4)=0),D4:FH4)

....

This is the best approach when there's a pattern, but the really
general approach would be to use multiple area ranges, e.g.,

=SUM((D2,D3,D5,D7,D11,D13,D17,D19,D23,D29,D31,D37,
D41,D43,D47,D53,D59,D61,D67,D71,D73,D79,D83,D89,D9 7,
D101,D103,D107,D109,D113,D127,D131,D137,D139,D149) )

Note the inner set of parentheses. That's one argument to SUM. That
one argument is a 35 area range.


  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 14
Default Summing +30 Non-adjacent cells

I had entered the individual columns, but this spreadsheet will always have
the fields evenly spaced. I just wanted something a bit cleaner than a bunch
of parentheses :)

Thank you kindly.

"Harlan Grove" wrote:

"T. Valko" wrote...
Try this:

=SUMPRODUCT(--(MOD(COLUMN(D4:FH4)-COLUMN(D4),4)=0),D4:FH4)

....

This is the best approach when there's a pattern, but the really
general approach would be to use multiple area ranges, e.g.,

=SUM((D2,D3,D5,D7,D11,D13,D17,D19,D23,D29,D31,D37,
D41,D43,D47,D53,D59,D61,D67,D71,D73,D79,D83,D89,D9 7,
D101,D103,D107,D109,D113,D127,D131,D137,D139,D149) )

Note the inner set of parentheses. That's one argument to SUM. That
one argument is a 35 area range.

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
Yes or No for adjacent cells JKWParrott Excel Worksheet Functions 3 October 3rd 07 01:57 AM
By selecting cells adjacent to cells tally sheet tom Excel Worksheet Functions 2 September 20th 06 07:09 PM
summing values from adjacent column with refrence from adjacent column Pivotrend Excel Discussion (Misc queries) 6 March 4th 06 11:24 AM
How do I fill (copy) nonadjacent cells to adjacent cells? BuckyGeorge Excel Discussion (Misc queries) 2 December 22nd 05 04:18 AM
Lookup value throughout an array_return adjacent value and summing SP Excel Worksheet Functions 3 August 26th 05 09:24 PM


All times are GMT +1. The time now is 01:04 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"