PC Review


Reply
Thread Tools Rate Thread

differentiate the delay in to 3 types

 
 
vinu
Guest
Posts: n/a
 
      9th Jun 2010
Hi all,

I need a help and I'm sure will get it here...

I'm preparing an OnTime report and in that I want to differentiate the
delay in to 3 types

Below is the scenario..

Shift time is in Column A, Log in time in Column B, Status in Column C

If the Shift time -6.30pm

Login time -6.30 or less then 6.30 -in the status cell "0"

Login time -with in 15mins -in the status cell "1"

Login time -with in 16-20mins -in the status cell "2"

Login time -with in 21-30mins -in the status cell "3"

Login time -Beyond 30min -in the status cell "4"



Thanks in anticipations...

Vinu

 
Reply With Quote
 
 
 
 
Bob Phillips
Guest
Posts: n/a
 
      9th Jun 2010
Try

=LOOKUP(MAX(0,ROUND((B2-A2)*24*60,0)),{0,1,15,20,30,999},{0,1,2,3,4})

--

HTH

Bob

"vinu" <(E-Mail Removed)> wrote in message
news:d5b656b5-4a13-4c02-930b-(E-Mail Removed)...
> Hi all,
>
> I need a help and I'm sure will get it here...
>
> I'm preparing an OnTime report and in that I want to differentiate the
> delay in to 3 types
>
> Below is the scenario..
>
> Shift time is in Column A, Log in time in Column B, Status in Column C
>
> If the Shift time -6.30pm
>
> Login time -6.30 or less then 6.30 -in the status cell "0"
>
> Login time -with in 15mins -in the status cell "1"
>
> Login time -with in 16-20mins -in the status cell "2"
>
> Login time -with in 21-30mins -in the status cell "3"
>
> Login time -Beyond 30min -in the status cell "4"
>
>
>
> Thanks in anticipations...
>
> Vinu
>



 
Reply With Quote
 
vinu
Guest
Posts: n/a
 
      9th Jun 2010
Bob,

Thanks a ton for your quick help...

I'm getting the desired data with very little changes in the formula..

Thanks,
Vinu


 
Reply With Quote
 
Bob Phillips
Guest
Posts: n/a
 
      9th Jun 2010
Yeah,I thought the thresholds might need tweaking.

--

HTH

Bob

"vinu" <(E-Mail Removed)> wrote in message
news:4e58965a-8a18-4c9d-9972-(E-Mail Removed)...
> Bob,
>
> Thanks a ton for your quick help...
>
> I'm getting the desired data with very little changes in the formula..
>
> Thanks,
> Vinu
>
>



 
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
Long delay opening file types using DDE ajkessel Windows XP General 0 17th Jun 2008 04:40 PM
Differentiate VPN from PPP. Abhay Misra Microsoft Windows 2000 Networking 1 20th Jul 2004 11:47 AM
Differentiate types of appointments on my calendar =?Utf-8?B?QW5uZQ==?= Microsoft Outlook Calendar 3 18th Jul 2004 09:55 PM
How to differentiate between text, button, reset and submit input types in CSS GMG Windows XP Internet Explorer 0 29th Jun 2004 01:38 PM
differentiate between modes lynn atkinson Microsoft Access Forms 2 17th Mar 2004 10:32 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:08 PM.