PC Review


Reply
Thread Tools Rate Thread

Calculating Early Login & Last Logout

 
 
noname
Guest
Posts: n/a
 
      7th May 2007
Hi all,

I have a timesheet dump which has a Column for EmpCode viz
0,1,2,3,4,5, etc..
Next column is for StatusID where status means 1 = Login & 2 = Logout.
Next Column is for Date & Time Stamp (Long format).

Since the Login & Logout Date& TimeStamp lie in a single column, i
want to calculate, for each EmpID, the earliest time he logged in &
last time he logged out for the SAME day....

Also, if someone can find a way to find if the respective date falls
on a weekend or holiday...

if anyone has an idea using Worksheet function or VBA code to
accomplish this, please let me know....

EmployeeCode StatusID Time
-------------------------------------------------------------------
0 1 4/13/07 7:01 PM
0 1 4/16/07 1:03 PM
0 1 4/16/07 1:05 PM
1 1 4/2/07 4:03 PM
1 2 4/2/07 6:20 PM
1 1 4/5/07 10:14 AM
1 2 4/5/07 1:27 PM
1 1 4/5/07 5:52 PM
1 1 4/17/07 6:03 PM
1 2 4/17/07 6:39 PM
1 1 4/19/07 9:38 AM
1 2 4/19/07 6:02 PM
1 1 4/24/07 11:17 AM

Sheet2:
EmpCode Early Login Early Logout
---------------------------------------------------------------

Cheers!

 
Reply With Quote
 
 
 
 
noname
Guest
Posts: n/a
 
      8th May 2007
can anybody help me with this please?



On May 8, 2:22 am, noname <sifar...@gmail.com> wrote:
> Hi all,
>
> I have a timesheet dump which has a Column for EmpCode viz
> 0,1,2,3,4,5, etc..
> Next column is for StatusID where status means 1 = Login & 2 = Logout.
> Next Column is for Date & Time Stamp (Long format).
>
> Since the Login & Logout Date& TimeStamp lie in a single column, i
> want to calculate, for each EmpID, the earliest time he logged in &
> last time he logged out for the SAME day....
>
> Also, if someone can find a way to find if the respective date falls
> on a weekend or holiday...
>
> if anyone has an idea using Worksheet function or VBA code to
> accomplish this, please let me know....
>
> EmployeeCode StatusID Time
> -------------------------------------------------------------------
> 0 1 4/13/07 7:01 PM
> 0 1 4/16/07 1:03 PM
> 0 1 4/16/07 1:05 PM
> 1 1 4/2/07 4:03 PM
> 1 2 4/2/07 6:20 PM
> 1 1 4/5/07 10:14 AM
> 1 2 4/5/07 1:27 PM
> 1 1 4/5/07 5:52 PM
> 1 1 4/17/07 6:03 PM
> 1 2 4/17/07 6:39 PM
> 1 1 4/19/07 9:38 AM
> 1 2 4/19/07 6:02 PM
> 1 1 4/24/07 11:17 AM
>
> Sheet2:
> EmpCode Early Login Early Logout
> ---------------------------------------------------------------
>
> Cheers!



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows XP OEM Login->Activation->Automatic Logout->Login->Activat Pedro Tiago Lopes Windows XP General 0 7th Jun 2008 03:27 PM
Early Login, Last Logout junoon Microsoft Excel Worksheet Functions 3 9th May 2007 04:04 PM
Can't login. Login = instant logout. Rob Windows XP General 4 18th Sep 2006 05:16 AM
Can't login. Login = instant logout. Rob Windows XP General 3 17th Sep 2006 01:22 PM
login/logout mrcOwner Windows XP Performance 2 13th Sep 2004 06:36 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:49 AM.