Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default total column amounts from non-contiguous rows

I'm trying to total amounts in a column from rows that are not contiguous (4
rows apart). Since there are over 100 entries, I'd rather not have to "add"
each row using the simple =C1+C4+C8+C12.....etc Is there a way to do this?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,718
Default total column amounts from non-contiguous rows

=SUM(IF(MOD(ROW(C1:C100),4)=0,C1:C100))+C1

ctrl+shift+enter, not just enter
Adjust your range to suit

"Irving" wrote:

I'm trying to total amounts in a column from rows that are not contiguous (4
rows apart). Since there are over 100 entries, I'd rather not have to "add"
each row using the simple =C1+C4+C8+C12.....etc Is there a way to do this?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default total column amounts from non-contiguous rows

Try:

=SUM(IF(MOD(ROW(C1:C100)-1,4)=0,C1:C100))

Entered with Ctrl+Shift+Enter (you will get {} round the formula).


C1+C5+C9 etc NOT C1+C4 +C8

HTH

"Irving" wrote:

I'm trying to total amounts in a column from rows that are not contiguous (4
rows apart). Since there are over 100 entries, I'd rather not have to "add"
each row using the simple =C1+C4+C8+C12.....etc Is there a way to do this?

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,572
Default total column amounts from non-contiguous rows

Your choice of which rows to total is unclear, since your example is:
1, 4, 8, 12, ...etc.
BUT
you mention <<< 4 rows apart .

Here are some *regular* entry suggestions, *no* CSE required:

1, 5, 9, 13 ... etc.
=SUMPRODUCT((MOD(ROW(C1:C100),4)=1)*(C1:C100))

4, 8, 12, 16 ...etc.
=SUMPRODUCT((MOD(ROW(C1:C100),4)=0)*(C1:C100))

AND - your *uneven* example,
1, 4, 8, 12 ... etc.
=C1+SUMPRODUCT((MOD(ROW(C1:C100),4)=0)*(C1:C100))
--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------


"Irving" wrote in message
...
I'm trying to total amounts in a column from rows that are not contiguous
(4
rows apart). Since there are over 100 entries, I'd rather not have to
"add"
each row using the simple =C1+C4+C8+C12.....etc Is there a way to do
this?



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
Want to total the amounts between certain dates KPyle Excel Discussion (Misc queries) 2 February 13th 07 09:18 PM
only total cells with $ amounts jeffery Excel Discussion (Misc queries) 4 November 22nd 06 08:18 PM
how to total amounts in one colum Quif210786 Excel Worksheet Functions 1 July 24th 06 11:40 AM
Is it possible to get a sub-total of amounts when... marsha Excel Discussion (Misc queries) 4 November 1st 05 04:39 AM
Linking total amounts Lenora B via OfficeKB.com Excel Worksheet Functions 0 September 7th 05 06:49 AM


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