How to split time by a setted date?

Romney

New Member
Joined
Apr 9, 2022
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hi,
I have a lot of remote camera data, and I would like to calculate the working hours of each camera in each season.

I divide a year into two seasons: the breeding season (Apr - Aug), and the non-breeding season (Sep - Mar).

Column J (Working hours) shows the total working hours, which are calculated by (F2-D2)*24+(G2-E2).

1649594663922.png


Here is the problem. Some cameras work across two seasons, such as from June to December, while some don't. In order to separate the total working hours for breeding and non-breeding season, I have to manually pick out the cameras with problems and then cut the working hour by the date "2016/9/1 00:00:00".

It will be very time-consuming because I have 700+ data. Is there any smarter method than what I did below?
1649595889833.png



Thanks a lot,
A helpless graduate student
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
in row1 the start of every season, so 1 april and 1 septembre at 00:00:00.
There is a small difference in hours, your or my mistake ?
Map1
ABCDEFGHIJK
1start --->2016/04/012016/09/012017/04/012017/09/012018/04/01totaltotal
2startendbreedno breedbreedno breed
32016/06/034:37:482016/12/3111:59:002155:222915:5900:0000:005071:215071,35
42016/07/246:21:402016/11/155:01:02929:381805:0100:0000:002734:392734,66
52016/07/259:35:542016/09/155:01:03902:24341:0100:0000:001243:251243,42
62016/04/012018/04/013672:005088:003672:005088:0017520:0017520,00
Blad1
Cell Formulas
RangeFormula
E3:H6E3=MAX(0,MIN(F$1,$D3+$C3)-MAX($A3+$B3,E$1))
J3:J6J3=SUM(E3:H3)
K3:K6K3=+J3*24
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,643
Messages
6,120,702
Members
448,980
Latest member
CarlosWin

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