Google
 
Webnews.only-4-geeks.com
Interesting places
news.only-4-geeks.com Forum Index » Excel

Shift information

 
Jump to:  
 
engteng
PostPosted: Thu Jun 05, 2008 7:45 am    Post subject: Shift information
       
How can I write a formula to display shift(1,2,3) in shift column by given
time?

Time Shift
08:12:10 ?
15:30:15 ?
23:55:02 ?

Condition
Shift 1 is time >= '07:00' AND time < '15:00'
Shift 2 is time >= '15:00' AND time < '23:00'
Shift 3 is time >= '23:00' AND time < '07:00'


Regards,
Tee
 

 
Bob Phillips
PostPosted: Thu Jun 05, 2008 8:06 am    Post subject: Re: Shift information
       
="Shift "&IF(A2>TIME(7,0,0),IF(A2<TIME(15,0,0),1,IF(A2<TIME(23,0,0),2,3)),3)

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"engteng" <passrcv@gmail.com> wrote in message
news:ufAxbDvxIHA.2208@TK2MSFTNGP04.phx.gbl...
Quote:
How can I write a formula to display shift(1,2,3) in shift column by given
time?

Time Shift
08:12:10 ?
15:30:15 ?
23:55:02 ?

Condition
Shift 1 is time >= '07:00' AND time < '15:00'
Shift 2 is time >= '15:00' AND time < '23:00'
Shift 3 is time >= '23:00' AND time < '07:00'


Regards,
Tee



 

 
T. Valko
PostPosted: Thu Jun 05, 2008 8:16 pm    Post subject: Re: Shift information
       
Another one:

=LOOKUP(HOUR(A2),{0,7,15,23},{3,1,2,3})

Copy down as needed.

--
Biff
Microsoft Excel MVP


"engteng" <passrcv@gmail.com> wrote in message
news:ufAxbDvxIHA.2208@TK2MSFTNGP04.phx.gbl...
Quote:
How can I write a formula to display shift(1,2,3) in shift column by given
time?

Time Shift
08:12:10 ?
15:30:15 ?
23:55:02 ?

Condition
Shift 1 is time >= '07:00' AND time < '15:00'
Shift 2 is time >= '15:00' AND time < '23:00'
Shift 3 is time >= '23:00' AND time < '07:00'


Regards,
Tee



 

Page 1 of 1 .:.

Google
 
Webnews.only-4-geeks.com

Windows Update | C++ | C | PHP | JavaScript | Photoshop | Programming | Windows 2000 | Python | Windows XP | Object | Flash | Flash - ActionScript | Paint Shop Pro | Excel | PowerPoint | Access | Word | Windows 98 | Internet Explorer 6.0 | CorelDraw12 | Java | XML | asm x86 | Linux Mandrake | Linux RedHat | Outlook |  | news from newsgroups |_ | s

Web Templates

Awesome Website Templates ©

Agencja reklamowa upominki Może się wydawać - Ewelina Flinta Drogo prowadź - Edyta Gepperd kostiumy kąpielowe