excel - Find all data points within an hour -


i have excel table has data times people active. have start time , end time. want know how many people active during each hour across days in table. not each day each hour, each hour, see hour used

my data has:

05/24/2015 18:00    05/24/2015 18:00 05/24/2015 18:00    05/24/2015 18:00 05/24/2015 18:01    05/24/2015 18:01 05/24/2015 18:01    05/24/2015 18:01 05/25/2015 18:02    05/25/2015 18:27 05/24/2015 19:00    05/24/2015 19:01 05/24/2015 20:19    05/24/2015 20:19 05/24/2015 21:00    05/24/2015 21:00 05/26/2015 21:00    05/26/2015 21:00 05/27/2015 21:00    05/27/2015 23:01 

some of data short while others long. above can say:

18:00 - 5 19:00 - 1 20:00 - 1 21:00 - 3 22:00 - 1 23:00 - 1 

as can see last entry, spans 3 hours , should counted accordingly.

is there way able through pivottable, or other function?

update: update data end date after first part. data in 2 columns not 4.

untested

one way, without array formula/e, create matrix , sum values. first split date/times separate columns date , time (eg text columns). add row (eg row1) start of each hour, including start of next day.

a formula such as:

=if(and($b2>=f$1,$b2<g$1),1,0)+if(and($d2>e$1,g$1>$b2+1/24,hour($b2)<>hour($d2)),1,0)   

in f1 in example, copied across , down suit.

sum like:

=if(sum(f2:f11)=0,"",sum(f2:f11))   

in f12 in example, , copied across suit.

so30562881 example

i hope there is pt solution.


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -