Number of Logins Present inTime Range

Tallonenx

New Member
Joined
Nov 30, 2017
Messages
13
Hello All,

I'm trying to map who is present based off of login data.
I'd like to be able to plug in a range & Have Excel spit out a number of how many people were logged in during a certain time period.

(Say each hour, or 0:00 in the morning to 6:00 in the morning etc.)


A dataset sample looks like this, it is in military time for ease of calculation:

User Name5/1/20175/2/20175/3/20175/4/20175/5/2017
Login A0:0013:002:009:0013:02
Logout A6:0014:003:0013:0015:55
Login B12:3012:3313:54
Logout B16:2213:0715:00
Login C17:03
Logout C18:09
Login D18:11
Logout D23:59

<tbody>
</tbody>

User Name 2

<tbody>
</tbody>
Login ATimeTimeTimeTimeTime etc.

<tbody>
</tbody>

... which repeats for many users and many dates etc..

/////////////////////////////////////////////////////////////////////////////////////////////

I have created some great Gannt Charts by having excel calculate duration between the times-

User IDIn AOut ADuration AIn BA-B Duration ChangeOut BDuration BIn CB-C Duration ChangeOut CDuration CIn DC-D Duration ChangeOut DDuration D
User 17:0012:305:3013:000:3014:001:000:0010:000:000:000:000:000:000:00

<tbody>
</tbody>
Etc.

These charts clearly show how many folks are logged in to the naked eye, but I can't get excel to spit out the actual number of people during a given timeframe:
Ex:


User 1-----------------
User 2
User 3------------
User 4
User 5-------
0:001:002:003:004:005:006:00

<tbody>
</tbody>


////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////


I've tried Countif formulas, from similar threads here on employee charting, and a variety of other codes to no avail.
It appears the Countif formula simply takes the dataset I have and counts multiple log.

For Example:
=COUNTIFS([Data],">="&[Time Period to Check for Start],[Data],"<"&[Time Period to Check For End)
=COUNTIFS($C$39:$J$79,">="&N39,$C$39:$J$79,"<"&O39)

But these always provide faulty countifs due to the breaks and multiple login/logouts per person.



Any Ideas???
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.

Forum statistics

Threads
1,214,924
Messages
6,122,294
Members
449,077
Latest member
Rkmenon

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