+ Reply to Thread
Results 1 to 4 of 4

IF function to help with scheduling

  1. #1
    Rookie
    Guest

    IF function to help with scheduling

    I work in a call center and I am making a spreadsheet to see how many agents
    we have on the phone by there schedules. (in 15 min. increments) It looks
    like this:

    A B C D E F G
    H I J ......
    3 NAME START STOP LUNCH 800 815 830 845 900
    .......
    4 JOHN 815 1715 1200 1300 X X X X
    X ......

    I made an If function to mark an X if the employee is there by their start
    and stop time but I can't get it to not put an X when there are on lunch. The
    formula that I have now is: =IF(AND($F3>=$B4,$F3<$C4),"X","")

    The ones that I have tried but dont work are
    : =IF(AND(F$3>=$B4,F$3<$C4),IF(AND(F$3<$D4,F$3<$E4),"X",""))
    and: =IF(AND(F$3>=$B4,F$3<$C4),IF(F$3<$D4,"X",IF(F$3<$E4,"X")),"")

    Please Help!! Thanks in advance.
    ~ROOKIE~

  2. #2
    paul
    Guest

    RE: IF function to help with scheduling

    try this
    http://www.microsoft.com/office/comm...&lang=en&cr=US
    --
    paul
    remove nospam for email addy!



    "Rookie" wrote:

    > I work in a call center and I am making a spreadsheet to see how many agents
    > we have on the phone by there schedules. (in 15 min. increments) It looks
    > like this:
    >
    > A B C D E F G
    > H I J ......
    > 3 NAME START STOP LUNCH 800 815 830 845 900
    > ......
    > 4 JOHN 815 1715 1200 1300 X X X X
    > X ......
    >
    > I made an If function to mark an X if the employee is there by their start
    > and stop time but I can't get it to not put an X when there are on lunch. The
    > formula that I have now is: =IF(AND($F3>=$B4,$F3<$C4),"X","")
    >
    > The ones that I have tried but dont work are
    > : =IF(AND(F$3>=$B4,F$3<$C4),IF(AND(F$3<$D4,F$3<$E4),"X",""))
    > and: =IF(AND(F$3>=$B4,F$3<$C4),IF(F$3<$D4,"X",IF(F$3<$E4,"X")),"")
    >
    > Please Help!! Thanks in advance.
    > ~ROOKIE~


  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    Try using OR....

    =IF(OR(AND(F$3>=$B4,F$3<$D4),AND(F$3>$E4,F$3<$C4)),"X","")

  4. #4
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    =IF(OR($B4>F$3,$C4<=F$3),"h",IF(AND($D4<=F$3,$E4>F$3),"l","x"))

    remove the h and l when you have tested this (ie, make "")

    --

    Quote Originally Posted by Rookie
    I work in a call center and I am making a spreadsheet to see how many agents
    we have on the phone by there schedules. (in 15 min. increments) It looks
    like this:

    A B C D E F G
    H I J ......
    3 NAME START STOP LUNCH 800 815 830 845 900
    .......
    4 JOHN 815 1715 1200 1300 X X X X
    X ......

    I made an If function to mark an X if the employee is there by their start
    and stop time but I can't get it to not put an X when there are on lunch. The
    formula that I have now is: =IF(AND($F3>=$B4,$F3<$C4),"X","")

    The ones that I have tried but dont work are
    : =IF(AND(F$3>=$B4,F$3<$C4),IF(AND(F$3<$D4,F$3<$E4),"X",""))
    and: =IF(AND(F$3>=$B4,F$3<$C4),IF(F$3<$D4,"X",IF(F$3<$E4,"X")),"")

    Please Help!! Thanks in advance.
    ~ROOKIE~

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1