Sum total of daily values for month

Marklarbear

Board Regular
Joined
Nov 6, 2003
Messages
112
Office Version
  1. 365
Platform
  1. Windows
Hi brains trust

Below is a sample set of the spreadsheet I'm working on - the original data set is by 15 minute interval for every day within a rolling 365 day date range - which is a rather large set of data (263146 cells of data).

What I would like to do is have a formula that totals the daily value for the cells in yellow (I have highlighted these cells purely for this example) - ie total for heading "L" added together to give me a monthly total.

In cell C25 & C26 is a very basic way of adding the values, however I need a more 'dynamic' way of calculating the data - as the first date of the data set (cell B3) will change every time we run this process. - ie this month we may start on Monday 22nd Aug, Next month we may start on Monday 12th Sep or Monday 26th Sep etc etc... the start date will always be a Monday but it could be any Monday in the month.

Hopefully this makes sense on what i'm trying to achieve....


Book1.xlsx
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAGAHAIAJAKALAMANAOAPAQARASATAUAVAWAXAYAZBABBBCBDBEBFBGBHBIBJBKBLBMBNBOBPBQBRBSBTBUBVBWBXBYBZCACBCCCDCECFCGCHCICJCKCLCMCNCOCPCQCRCSCTCUCVCWCXCYCZDA
322/08/2022Mon23/08/2022Tue24/08/2022Wed25/08/2022Thu26/08/2022Fri27/08/2022Sat28/08/2022Sun
4ABCDEFGHIJKLMNABCDEFGHIJKLMNABCDEFGHIJKLMNABCDEFGHIJKLMNABCDEFGHIJKLMNABCDEFGHIJKLMNABCDEFGHIJKLMN
5Daily Total000.000.000.000.000.000.000.000.000.000.000.000.0001180.004.450.005.110.0033.800.008.610.008.780.0066.750860.003.530.004.060.0026.800.006.850.006.990.0053.140780.003.370.003.870.0025.600.006.590.006.730.0051.120860.003.530.004.060.0026.800.006.770.006.910.0052.480360.001.920.002.210.0014.600.003.680.003.760.0028.57000.000.000.000.000.000.000.000.000.000.000.000.00
6
7
8
9
1029/08/2022Mon30/08/2022Tue31/08/2022Wed1/09/2022Thu2/09/2022Fri3/09/2022Sat4/09/2022Sun
11ABCDEFGHIJKLMNABCDEFGHIJKLMNABCDEFGHIJKLMNABCDEFGHIJKLMNABCDEFGHIJKLMNABCDEFGHIJKLMNABCDEFGHIJKLMN
12Daily Total0920.003.680.004.240.0028.000.007.030.007.180.0054.550870.003.630.004.180.0027.600.007.020.007.170.0054.460800.003.370.003.870.0025.600.006.570.006.700.0050.960780.003.370.003.870.0025.600.006.590.006.730.0051.120860.003.530.004.060.0026.800.006.770.006.910.0052.480360.001.920.002.210.0014.600.003.680.003.760.0028.57000.000.000.000.000.000.000.000.000.000.000.000.00
13
14
15
16
175/09/2022Mon6/09/2022Tue7/09/2022Wed8/09/2022Thu9/09/2022Fri10/09/2022Sat11/09/2022Sun
18ABCDEFGHIJKLMNABCDEFGHIJKLMNABCDEFGHIJKLMNABCDEFGHIJKLMNABCDEFGHIJKLMNABCDEFGHIJKLMNABCDEFGHIJKLMN
19Daily Total0920.003.680.004.240.0028.000.007.030.007.180.0054.550870.003.630.004.180.0027.600.007.020.007.170.0054.460800.003.370.003.870.0025.600.006.570.006.700.0050.960780.003.370.003.870.0025.600.006.590.006.730.0051.120860.003.530.004.060.0026.800.006.770.006.910.0052.480360.001.920.002.210.0014.600.003.680.003.760.0028.57000.000.000.000.000.000.000.000.000.000.000.000.00
20
21
22
23
24MonthL Total
25Aug54.21
26Sep55.83
27Oct?
28Nov?
29Dec?
Sheet1
Cell Formulas
RangeFormula
C3,CO17,BZ17,BK17,AV17,AG17,R17,C17,CO10,BZ10,BK10,AV10,AG10,R10,C10,CO3,BZ3,BK3,AV3,AG3,R3C3=TEXT(B3,"ddd")
Q3,CN17,BY17,BJ17,AU17,AF17,Q17,CN10,BY10,BJ10,AU10,AF10,Q10,CN3,BY3,BJ3,AU3,AF3Q3=B3+1
B10,B17B10=B3+7
C25C25=M5+AB5+AQ5+BF5+BU5+CJ5+CY5+M12+AB12+AQ12
C26C26=BF12+BU12+CJ12+CY12+M19+AB19+AQ19+BF19++BU19+CJ19+CY19
B25B25=B3
B26:B29B26=DATE(YEAR(B25),MONTH(B25)+1,1)
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
I have understood your requirement to some extent. But just to help you better, I need to understand few things.

Why you have kept so many blank rows and columns between all dates and repeating A-N for every date. I have seen formulae populated just with one date change every other date shall change. But for my understanding can't all these be stacked together?

That gives you far more control over data and ability to play with data knowing you are using Excel 365.
 
Upvote 0
I have understood your requirement to some extent. But just to help you better, I need to understand few things.

Why you have kept so many blank rows and columns between all dates and repeating A-N for every date. I have seen formulae populated just with one date change every other date shall change. But for my understanding can't all these be stacked together?

That gives you far more control over data and ability to play with data knowing you are using Excel 365.
This is a spreadsheet that i've inherited.... The columns A-N are various metrics that get reported on - all I have done is replaced the metric heading with a generic value to keep my boss happy when posting this question. For the days that have a 0 value for all metrics - this indicates the line was not open on that particular day.

Each day has 96 rows of data (each row represents a 15 minute interval starting from the 12:00am interval to the 11:45pm interval). This repeats down the page for 53 weeks. In the example above, i'm only showing the summary row for each days total data.

In my original doc, the first summary row is row 5 & the last summary row is row 5205.... which is way too large to upload here. I was hoping a guru would be able to work on the sample data I uploaded and then I would edit the formula to cover my original data range (in my original doc it is A5:DA5300)

Hope this helps
 
Upvote 0
Each day has 96 rows of data (each row represents a 15 minute interval starting from the 12:00am interval to the 11:45pm interval). This repeats down the page for 53 weeks. In the example above, i'm only showing the summary row for each days total data.
So it seems that we are not testing on a representative sample. Therefore, although this produces the results that you are expecting for that sample data, I'm guessing that it is not going to work with your real data.

However, for the sample data posted, try this in cell C25 and copy down.

Excel Formula:
=LET(f,FILTER(B$3:DA$19,(B$4:DA$4="A")+(B$4:DA$4="L")),rws,SEQUENCE(ROWS(f)-2),cols,SEQUENCE(,COLUMNS(f)/2,,2),SUMPRODUCT(--(TEXT(INDEX(f,rws,cols),"mmyy")=TEXT(B25,"mmyy")),INDEX(f,rws+2,cols+1)))
 
Upvote 0

Forum statistics

Threads
1,215,096
Messages
6,123,074
Members
449,093
Latest member
ripvw

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