beepbeep
New Member
Hello all,
This is my first post to the forum, but it's a problem that has been bugging me for months (!)
I would like to know how I go about writing a formula that will give me the number of seconds between two dates/times - but that meet certain criteria (i.e. summing only a subset of the total time between the two dates/times).
In my sample workbook that I have attached, I have a number of dates when a fire appliance was unavailable. I know the total unavailability of the fire appliance on each occasion, but would like to identify the total number of seconds between the two dates/times that fell within 9am-6pm (or 17:59:59 to be precise).
I've deliberately chosen some dates and times in the attached sample, that fall both inside and outside (and half-in, half-out) the 9am-6pm range.
Any help would be gratefully received!!
This is my first post to the forum, but it's a problem that has been bugging me for months (!)
I would like to know how I go about writing a formula that will give me the number of seconds between two dates/times - but that meet certain criteria (i.e. summing only a subset of the total time between the two dates/times).
In my sample workbook that I have attached, I have a number of dates when a fire appliance was unavailable. I know the total unavailability of the fire appliance on each occasion, but would like to identify the total number of seconds between the two dates/times that fell within 9am-6pm (or 17:59:59 to be precise).
I've deliberately chosen some dates and times in the attached sample, that fall both inside and outside (and half-in, half-out) the 9am-6pm range.
Any help would be gratefully received!!