Add up every 7 lines, then the next 7

jonathan92591

Board Regular
Joined
Oct 27, 2011
Messages
65
Hello everyone,

Add up every 7 lines, then the next 7

--

Excel or Access version: Excel 2010

Computer operating system: Windows XP

Sample data: "
Excel Workbook
ABCDEFGH
1MCDayDateRevenueDayMC-CYSP-SummerCYSP7 Days of Revenue
2MC-CYSP-SummerDay 18/15/2011$30Day 1$30$30*
3MC-CYSP-SummerDay 28/16/2011$90Day 2$90$120*
4MC-CYSP-SummerDay 38/17/2011$30Day 3$30$150*
5MC-CYSP-SummerDay 48/18/2011$990Day 4$990$1,140*
6MC-CYSP-SummerDay 58/19/2011$390Day 5$390$1,530*
7MC-CYSP-SummerDay 68/20/2011$510Day 6$510$2,040*
8MC-CYSP-SummerDay 78/21/2011$910Day 7$910$2,950*
9MC-CYSP-SummerDay 88/22/2011$470Day 8$470$3,419*
10MC-CYSP-SummerDay 98/23/2011$800Day 9$800$4,219*
11MC-CYSP-SummerDay 108/24/2011$450Day 10$450$4,669*
12MC-CYSP-SummerDay 118/25/2011$390Day 11$390$5,059*
13MC-CYSP-SummerDay 128/26/2011$180Day 12$180$5,239*
14MC-CYSP-SummerDay 138/27/2011$490Day 13$490$5,729*
15MC-CYSP-SummerDay 148/28/2011$990Day 14$990$6,719*
Backend


"

Formula(s) right now: Don't have one yet.

Current result(s): N/A

My goal: To sum up Day1 through Day7, Day 8 through Day14, etc.

Error message: No error message

How error occurred: No error message

Generated in: Excel

Thank you.

JT :)
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
It's not as hard as it seems.


Excel 2007
ABCDEFGHI
11MCDayDateRevenueDayMC-CYSP-SummerCYSP7 Days of Revenue
22MC-CYSP-SummerDay 18/15/2011$30Day 1$30$30*
33MC-CYSP-SummerDay 28/16/2011$90Day 2$90$120*
44MC-CYSP-SummerDay 38/17/2011$30Day 3$30$150*
55MC-CYSP-SummerDay 48/18/2011$990Day 4$990$1,140*
66MC-CYSP-SummerDay 58/19/2011$390Day 5$390$1,530*
77MC-CYSP-SummerDay 68/20/2011$510Day 6$510$2,040*
88MC-CYSP-SummerDay 78/21/2011$910Day 7$910$2,950$2,950
99MC-CYSP-SummerDay 88/22/2011$470Day 8$470$3,419*
1010MC-CYSP-SummerDay 98/23/2011$800Day 9$800$4,219*
1111MC-CYSP-SummerDay 108/24/2011$450Day 10$450$4,669*
1212MC-CYSP-SummerDay 118/25/2011$390Day 11$390$5,059*
1313MC-CYSP-SummerDay 128/26/2011$180Day 12$180$5,239*
1414MC-CYSP-SummerDay 138/27/2011$490Day 13$490$5,729*
1515MC-CYSP-SummerDay 148/28/2011$990Day 14$990$6,719$3,769
16.................
Sheet1
Cell Formulas
RangeFormula
I8=H8
I15=H15-I8


Enter the two formulas as shown, then select the highlighted cells, then drag down as far as you like.
 
Upvote 0
Or if you meant a rolling total for the most recent 7 days, try this:

Excel 2007<TABLE style="BORDER-RIGHT: #a6aab6 1px solid; BORDER-TOP: #a6aab6 1px solid; BORDER-LEFT: #a6aab6 1px solid; BORDER-BOTTOM: #a6aab6 1px solid; BORDER-COLLAPSE: collapse; BACKGROUND-COLOR: #ffffff" cellPadding=2 rules=all><COLGROUP><COL style="BACKGROUND-COLOR: #e0e0f0" width=25><COL><COL><COL><COL><COL><COL><COL><COL><COL><COL></COLGROUP><THEAD><TR style="COLOR: #161120; BACKGROUND-COLOR: #e0e0f0; TEXT-ALIGN: center"><TH></TH><TH>A</TH><TH>B</TH><TH>C</TH><TH>D</TH><TH>E</TH><TH>F</TH><TH>G</TH><TH>H</TH><TH>I</TH><TH>J</TH></TR></THEAD><TBODY><TR><TD style="COLOR: #161120; TEXT-ALIGN: center">1</TD><TD style="TEXT-ALIGN: right">1</TD><TD>MC</TD><TD>Day</TD><TD>Date</TD><TD>Revenue</TD><TD>Day</TD><TD>MC-CYSP-Summer</TD><TD>CYSP</TD><TD>7 Days of Revenue</TD><TD>rolling last 7 day total</TD></TR><TR><TD style="COLOR: #161120; TEXT-ALIGN: center">2</TD><TD style="TEXT-ALIGN: right">2</TD><TD>MC-CYSP-Summer</TD><TD>Day 1</TD><TD style="TEXT-ALIGN: right">8/15/2011</TD><TD style="TEXT-ALIGN: right">$30 </TD><TD>Day 1</TD><TD style="TEXT-ALIGN: right">$30 </TD><TD style="TEXT-ALIGN: right">$30 </TD><TD style="TEXT-ALIGN: right"></TD><TD style="TEXT-ALIGN: right">2950</TD></TR><TR><TD style="COLOR: #161120; TEXT-ALIGN: center">3</TD><TD style="TEXT-ALIGN: right">3</TD><TD>MC-CYSP-Summer</TD><TD>Day 2</TD><TD style="TEXT-ALIGN: right">8/16/2011</TD><TD style="TEXT-ALIGN: right">$90 </TD><TD>Day 2</TD><TD style="TEXT-ALIGN: right">$90 </TD><TD style="TEXT-ALIGN: right">$120 </TD><TD>*</TD><TD style="TEXT-ALIGN: right">3390</TD></TR><TR><TD style="COLOR: #161120; TEXT-ALIGN: center">4</TD><TD style="TEXT-ALIGN: right">4</TD><TD>MC-CYSP-Summer</TD><TD>Day 3</TD><TD style="TEXT-ALIGN: right">8/17/2011</TD><TD style="TEXT-ALIGN: right">$30 </TD><TD>Day 3</TD><TD style="TEXT-ALIGN: right">$30 </TD><TD style="TEXT-ALIGN: right">$150 </TD><TD>*</TD><TD style="TEXT-ALIGN: right">4100</TD></TR><TR><TD style="COLOR: #161120; TEXT-ALIGN: center">5</TD><TD style="TEXT-ALIGN: right">5</TD><TD>MC-CYSP-Summer</TD><TD>Day 4</TD><TD style="TEXT-ALIGN: right">8/18/2011</TD><TD style="TEXT-ALIGN: right">$990 </TD><TD>Day 4</TD><TD style="TEXT-ALIGN: right">$990 </TD><TD style="TEXT-ALIGN: right">$1,140 </TD><TD>*</TD><TD style="TEXT-ALIGN: right">4520</TD></TR><TR><TD style="COLOR: #161120; TEXT-ALIGN: center">6</TD><TD style="TEXT-ALIGN: right">6</TD><TD>MC-CYSP-Summer</TD><TD>Day 5</TD><TD style="TEXT-ALIGN: right">8/19/2011</TD><TD style="TEXT-ALIGN: right">$390 </TD><TD>Day 5</TD><TD style="TEXT-ALIGN: right">$390 </TD><TD style="TEXT-ALIGN: right">$1,530 </TD><TD>*</TD><TD style="TEXT-ALIGN: right">3920</TD></TR><TR><TD style="COLOR: #161120; TEXT-ALIGN: center">7</TD><TD style="TEXT-ALIGN: right">7</TD><TD>MC-CYSP-Summer</TD><TD>Day 6</TD><TD style="TEXT-ALIGN: right">8/20/2011</TD><TD style="TEXT-ALIGN: right">$510 </TD><TD>Day 6</TD><TD style="TEXT-ALIGN: right">$510 </TD><TD style="TEXT-ALIGN: right">$2,040 </TD><TD>*</TD><TD style="TEXT-ALIGN: right">3710</TD></TR><TR><TD style="COLOR: #161120; TEXT-ALIGN: center">8</TD><TD style="TEXT-ALIGN: right">8</TD><TD>MC-CYSP-Summer</TD><TD>Day 7</TD><TD style="TEXT-ALIGN: right">8/21/2011</TD><TD style="TEXT-ALIGN: right">$910 </TD><TD>Day 7</TD><TD style="TEXT-ALIGN: right">$910 </TD><TD style="TEXT-ALIGN: right">$2,950 </TD><TD style="TEXT-ALIGN: right">$2,950 </TD><TD style="TEXT-ALIGN: right">3690</TD></TR><TR><TD style="COLOR: #161120; TEXT-ALIGN: center">9</TD><TD style="TEXT-ALIGN: right">9</TD><TD>MC-CYSP-Summer</TD><TD>Day 8</TD><TD style="TEXT-ALIGN: right">8/22/2011</TD><TD style="TEXT-ALIGN: right">$470 </TD><TD>Day 8</TD><TD style="TEXT-ALIGN: right">$470 </TD><TD style="TEXT-ALIGN: right">$3,419 </TD><TD>*</TD><TD style="TEXT-ALIGN: right">3770</TD></TR><TR><TD style="COLOR: #161120; TEXT-ALIGN: center">10</TD><TD style="TEXT-ALIGN: right">10</TD><TD>MC-CYSP-Summer</TD><TD>Day 9</TD><TD style="TEXT-ALIGN: right">8/23/2011</TD><TD style="TEXT-ALIGN: right">$800 </TD><TD>Day 9</TD><TD style="TEXT-ALIGN: right">$800 </TD><TD style="TEXT-ALIGN: right">$4,219 </TD><TD>*</TD><TD style="TEXT-ALIGN: right">3300</TD></TR><TR><TD style="COLOR: #161120; TEXT-ALIGN: center">11</TD><TD style="TEXT-ALIGN: right">11</TD><TD>MC-CYSP-Summer</TD><TD>Day 10</TD><TD style="TEXT-ALIGN: right">8/24/2011</TD><TD style="TEXT-ALIGN: right">$450 </TD><TD>Day 10</TD><TD style="TEXT-ALIGN: right">$450 </TD><TD style="TEXT-ALIGN: right">$4,669 </TD><TD>*</TD><TD style="TEXT-ALIGN: right">2500</TD></TR><TR><TD style="COLOR: #161120; TEXT-ALIGN: center">12</TD><TD style="TEXT-ALIGN: right">12</TD><TD>MC-CYSP-Summer</TD><TD>Day 11</TD><TD style="TEXT-ALIGN: right">8/25/2011</TD><TD style="TEXT-ALIGN: right">$390 </TD><TD>Day 11</TD><TD style="TEXT-ALIGN: right">$390 </TD><TD style="TEXT-ALIGN: right">$5,059 </TD><TD>*</TD><TD style="TEXT-ALIGN: right">2050</TD></TR><TR><TD style="COLOR: #161120; TEXT-ALIGN: center">13</TD><TD style="TEXT-ALIGN: right">13</TD><TD>MC-CYSP-Summer</TD><TD>Day 12</TD><TD style="TEXT-ALIGN: right">8/26/2011</TD><TD style="TEXT-ALIGN: right">$180 </TD><TD>Day 12</TD><TD style="TEXT-ALIGN: right">$180 </TD><TD style="TEXT-ALIGN: right">$5,239 </TD><TD>*</TD><TD style="TEXT-ALIGN: right">1660</TD></TR><TR><TD style="COLOR: #161120; TEXT-ALIGN: center">14</TD><TD style="TEXT-ALIGN: right">14</TD><TD>MC-CYSP-Summer</TD><TD>Day 13</TD><TD style="TEXT-ALIGN: right">8/27/2011</TD><TD style="TEXT-ALIGN: right">$490 </TD><TD>Day 13</TD><TD style="TEXT-ALIGN: right">$490 </TD><TD style="TEXT-ALIGN: right">$5,729 </TD><TD>*</TD><TD style="TEXT-ALIGN: right">1480</TD></TR><TR><TD style="COLOR: #161120; TEXT-ALIGN: center">15</TD><TD style="TEXT-ALIGN: right">15</TD><TD>MC-CYSP-Summer</TD><TD>Day 14</TD><TD style="TEXT-ALIGN: right">8/28/2011</TD><TD style="TEXT-ALIGN: right">$990 </TD><TD>Day 14</TD><TD style="TEXT-ALIGN: right">$990 </TD><TD style="TEXT-ALIGN: right">$6,719 </TD><TD style="TEXT-ALIGN: right">$3,769 </TD><TD style="TEXT-ALIGN: right">990</TD></TR><TR><TD style="COLOR: #161120; TEXT-ALIGN: center">16</TD><TD style="COLOR: #ffffff">……………..</TD><TD style="COLOR: #ffffff">……………..</TD><TD style="COLOR: #ffffff">……………..</TD><TD style="COLOR: #ffffff">……………..</TD><TD style="COLOR: #ffffff">……………..</TD><TD style="COLOR: #ffffff">……………..</TD><TD style="COLOR: #ffffff">……………..</TD><TD style="COLOR: #ffffff">……………..</TD><TD style="COLOR: #ffffff">…………………………….</TD><TD style="COLOR: #ffffff">……………………………………..</TD></TR></TBODY></TABLE>
Sheet1


<TABLE style="BORDER-RIGHT: black 2px solid; PADDING-RIGHT: 0.4em; BORDER-TOP: black 2px solid; PADDING-LEFT: 0.4em; PADDING-BOTTOM: 0.4em; BORDER-LEFT: black 2px solid; PADDING-TOP: 0.4em; BORDER-BOTTOM: black 2px solid; BORDER-COLLAPSE: collapse; BACKGROUND-COLOR: #ffffff" cellPadding=2 rules=all width="85%"><TBODY><TR><TD style="PADDING-RIGHT: 6px; PADDING-LEFT: 6px; PADDING-BOTTOM: 6px; PADDING-TOP: 6px">Worksheet Formulas<TABLE style="BORDER-RIGHT: #a6aab6 1px solid; BORDER-TOP: #a6aab6 1px solid; BORDER-LEFT: #a6aab6 1px solid; BORDER-BOTTOM: #a6aab6 1px solid; BORDER-COLLAPSE: collapse; BACKGROUND-COLOR: #ffffff; TEXT-ALIGN: center" cellPadding=2 rules=all width="100%"><THEAD><TR style="COLOR: #161120; BACKGROUND-COLOR: #e0e0f0"><TH width=10>Cell</TH><TH style="PADDING-LEFT: 5px; TEXT-ALIGN: left">Formula</TH></TR></THEAD><TBODY><TR><TH style="COLOR: #161120; BACKGROUND-COLOR: #e0e0f0" width=10>I8</TH><TD style="TEXT-ALIGN: left">=H8</TD></TR><TR><TH style="COLOR: #161120; BACKGROUND-COLOR: #e0e0f0" width=10>J2</TH><TD style="TEXT-ALIGN: left">=SUM(OFFSET(E2,0,0,7))</TD></TR><TR><TH style="COLOR: #161120; BACKGROUND-COLOR: #e0e0f0" width=10>I15</TH><TD style="TEXT-ALIGN: left">=H15-I8</TD></TR><TR><TH style="COLOR: #161120; BACKGROUND-COLOR: #e0e0f0" width=10>J15</TH><TD style="TEXT-ALIGN: left">=SUM(OFFSET(E15,0,0,7))</TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>

Oops, don't worry about the formulas in I8 and I15, if that's what you want.
 
Upvote 0
Hello,

I use the "offset" formula and it works beautifully! I will have to learn how "offset" works. Thank you kindly!

JT
 
Upvote 0
It's really pretty handy if you know how to use it. The last 2 arguments are height and width, so it's not just moving down or over, it's extending the range down or over.

Anyhow, very handy :) I would recommend looking it up and getting familiar with it.

Glad it worked for you.
 
Upvote 0

Forum statistics

Threads
1,223,240
Messages
6,170,951
Members
452,368
Latest member
jayp2104

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top