Consulting

Results 1 to 3 of 3

Thread: Solved: lookup time and get type

  1. #1
    VBAX Tutor CCkfm2000's Avatar
    Joined
    May 2005
    Posts
    209
    Location

    Solved: lookup time and get type

    hi all...

    need help with a formula to look at a time and lookup relevent shift type.

    e.g

    if time is between 06:31 and 14:30 then shift type is E

    if time is between 14:31 and 22:30 then shift type is L

    if time is between 22:31 and 06:30 then shift type is N

    i've attached an example file.

    thanks

  2. #2
    VBAX Master
    Joined
    Jul 2006
    Location
    Belgium
    Posts
    1,286
    Location

    Lettercodes for time intervals

    Try something like this :
    IF(AND(C9 > TIME(6;30;0);C9 < TIME(14;31;0));"E";IF(AND(C9 > TIME(14;30;0);C9 < TIME(22;31;0));"L";"N"))
    Charlize

    ps.: Maybe you need to use , instead of ;
    Last edited by Charlize; 11-14-2006 at 05:12 AM. Reason: Change into english formula instead of dutch

  3. #3
    VBAX Tutor CCkfm2000's Avatar
    Joined
    May 2005
    Posts
    209
    Location
    thanks that works great.

    had to change ; to ,

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •