How do I sum the guillemot counts for each hour?

silvaleroy

New Member
Joined
May 24, 2022
Messages
2
Office Version
  1. 365
Platform
  1. Windows
I'm trying to get the sum of the guillemot data for each hour rather than each half hour, but the formula I got (from this site) doesn't allow me to discriminate between days. As you can see from my datasheet, some times there isn't a full hour and it moves on to the next day. So I'm wondering if there's an efficient way to sum data into hourly counts while discriminating between days. There's almost 3000 rows in this datasheet so I would prefer not to sum row by row manually if possible. Any help would be much appreciated. Thanks in advance!

SOS_MMS_2021_Camera1-D1_FromTW.csv
ABCDEFGHIJ
1DateTimeYearMonthDayTimeGuillemotGuChickDateTime1HrMerged
21202103000000202132210:2900
32202103000000202132210:3200
43202103000000202132211:0200
54202103000000202132211:3200
65202103000000202132212:0200
76202103000000202132212:3200
87202103000000202132213:0200
98202103000000202132213:3200
109202103000000202132214:0200
1110202103000000202132214:3200
1211202103000000202132215:0200
1312202103000000202132215:3200
1413202103000000202132216:0200
1514202103000000202132216:3200
1615202103000000202132217:0200
1716202103000000202132217:3200
1817202103000000202132218:0200
1918202103000000202132305:4500
2019202103000000202132306:1500
2120202103000000202132306:4500
2221202103000000202132307:1500
2322202103000000202132307:4500
2423202103000000202132308:1500
2524202103000000202132308:4500
2625202103000000202132309:1500
2726202103000000202132309:4500
2827202103000000202132310:1500
2928202103000000202132310:4500
3029202103000000202132311:1500
3130202103000000202132311:4500
3231202103000000202132312:1500
3332202103000000202132312:4500
3433202103000000202132313:1500
3534202103000000202132313:4500
3635202103000000202132314:1500
3736202103000000202132314:4500
3837202103000000202132315:1500
3938202103000000202132315:4500
4039202103000000202132316:1500
4140202103000000202132316:4500
4241202103000000202132317:1500
4342202103000000202132317:4500
SOS_MMS_2021_Camera1-D1_FromTW
Cell Formulas
RangeFormula
J2J2=SUM(INDIRECT("G"&ROW(F1)*3-1&":G"&ROW(F1)*3+1))
J3:J43J3=SUM(INDIRECT("G"&ROW(F3)*3-1&":G"&ROW(F3)*3+1))
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Here is one approach...this counts the number of line entries. I'm not sure if any given line entry might have multiple sightings that need to be summed? If so, then some refinements are necessary.
Book2
LMNOPQRSTUVWXYZAAABACADAEAFAGAHAIAJAKAL
1DateTimeTotal/Day
20:001:002:003:004:005:006:007:008:009:0010:0011:0012:0013:0014:0015:0016:0017:0018:0019:0020:0021:0022:0023:000:00
30.0000.0420.0830.1250.1670.2080.2500.2920.3330.3750.4170.4580.5000.5420.5830.6250.6670.7080.7500.7920.8330.8750.9170.9581
43/22/202100000000002222222210000017
53/23/202100000122222222222200000025
Sheet1
Cell Formulas
RangeFormula
M2:AK2N2=N3
M3:AK3M3=SEQUENCE(1,25,0,1/24)
L4:L5L4=UNIQUE(DATE(C2:C43,D2:D43,E2:E43))
M4:AJ5M4=SUM((DATE($C$2:$C$43,$D$2:$D$43,$E$2:$E$43)=$L4)*($F$2:$F$43>=M2)*($F$2:$F$43<N2))
AL4:AL5AL4=SUM(M4:AJ4)
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,214,631
Messages
6,120,640
Members
448,974
Latest member
DumbFinanceBro

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