Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 1
Default SUM FORMULA- skipping every seventh row

hi, i am trying to create a formula that adds up six cells in a column and gives a total in a different table, then i need it to skip the seventh cell and then add the next six and give another total, and so on..
I need a formula that i can drag down and have it autofill pretty much forever.

Im on a steep excel learning curve, can someone please explain how i write a formula to skip the seventh cell?

cheers
  #2   Report Post  
Junior Member
 
Posts: 5
Default

Quote:
Originally Posted by bite_tony View Post
hi, i am trying to create a formula that adds up six cells in a column and gives a total in a different table, then i need it to skip the seventh cell and then add the next six and give another total, and so on..
I need a formula that i can drag down and have it autofill pretty much forever.

cheers
Assuming you need only one total sum of every six cells down a column, then one was way to do this is to have a conditional sum or the SUMIF function. What you'll need is a corresponding column with say a 'Y' for six cells that are in the same row as the data you wish to add, blank (or anything else by 'Y') in the seventh and so on.

So say the data you want to sum every six cells from is in A1:A256, and column E is blank in the worksheet, then enter a 'Y' (without the apostrophe) in E1:E6, E8:E13, E15:E20 and so on. Then use the formula sumif(E1:E256,"Y",A1:A256) wherever it is you wish to show the sum.

The column with the Y's could be anywhere in the sheet, so long as they correspond to the same row of the data column, so you can keep it far away from view if you like. Also, instead of using the range only to 256, you can extend it to say 25000 to save on updating the formula every time your data set grows.

There are other ways of doing this, but this is simple and works.
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 74
Default SUM FORMULA- skipping every seventh row

bite_tony was thinking very hard :
hi, i am trying to create a formula that adds up six cells in a column
and gives a total in a different table, then i need it to skip the
seventh cell and then add the next six and give another total, and so
on..
I need a formula that i can drag down and have it autofill pretty much
forever.

Im on a steep excel learning curve, can someone please explain how i
write a formula to skip the seventh cell?


=NOT(MOD(ROW(A7),6))+SUM(A$1:A7)
OR
=NOT(MOD(ROW(A7),6))+SUM(A1:A7)
Formulas to be copied in every 7th cells.

OR
=--NOT(MOD(ROW(A1),7))*(NOT(MOD(ROW(A1),6))+SUM(A1:A7 ))
Formula to be copied in every cells

Uncheck "Show a zero in cells that have zero value"

Bruno


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
reference row on another sheet skipping zeros but not skipping li. Brennan Downes Excel Discussion (Misc queries) 2 April 2nd 23 01:28 PM
How do I get a sum of every seventh cell in a column? Jubilado Excel Worksheet Functions 2 February 25th 10 05:49 PM
how to remove every seventh column from excel Smoki Excel Discussion (Misc queries) 2 November 10th 09 10:08 AM
Skipping cells in a formula NewGuy Excel Programming 12 February 1st 07 03:26 AM
How do I delete every seventh row? Caroline Excel Worksheet Functions 3 October 6th 05 04:13 PM


All times are GMT +1. The time now is 03:18 AM.

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"