+ Reply to Thread
Results 1 to 7 of 7

Excel 2007 : If Then Statement meeting multiple criteria

  1. #1
    Registered User
    Join Date
    04-27-2010
    Location
    Cincinnati, OH
    MS-Off Ver
    Excel 2007
    Posts
    7

    If Then Statement meeting multiple criteria

    Hello,

    I need an "If then" statement that will calculate if a row meets the SLA.

    I have attached a demo spreadsheet.

    Column A-Start Date and Time
    Column B-End Date and Time
    Column C-Hours to Process
    Column D-Days to Process
    Column E-Queue
    Column F-SLA Standard (should be 1 if it meets the standard and 0 if it does not)
    Column H and I-used to calculate column C

    Queues with an SLA less then 3 days: C02, C30
    Queues with an SLA less then 2 days:C12, C29, C33, C34
    Queues with an SLA less then 1 day:C08, C09, C10, C16, C17, C50
    Queues with an SLA less then 4 hours: C32

    This formula works if you want to do it line by line: =if(D5>3,0,1)

    However, I need one that reads like this:
    if Column E equals C02 or C30 and Column D is greater than 3 hours than Column F equals 0 esle 1 or if Column E equals C12, C29, C33, C34 and Column D is greater than 2hours than Column F equals 0 esle 1... and so on

    Thanks for the help
    Attached Files Attached Files
    Last edited by tonedog54; 05-24-2010 at 12:39 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: If Then Statement meeting multiple criteria

    Perhaps?
    Please Login or Register  to view this content.
    copied down.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    04-27-2010
    Location
    Cincinnati, OH
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: If Then Statement meeting multiple criteria

    =--NOT(OR(AND(OR(E5={"C02","C30"}),D5<3),AND(OR(E5={"C12","C29","C33","C34"}),D5<2) ),AND(OR(E5={"C08","C09","C10","C16","C17","C50"}),D5<1),AND(E5="C32",C5<4)))

    This didn't work. Did I copy it wrong? I then tried removing the dashes at the beginning, I get an error message stating "too many arguments for this function."

    any other suggestions

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: If Then Statement meeting multiple criteria

    See attached.

    If you wanted the reverse.. then take the NOT() out...
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    04-27-2010
    Location
    Cincinnati, OH
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: If Then Statement meeting multiple criteria

    Thanks...I will able it to the whole report tomorrow and verify it. thanks for the help

  6. #6
    Registered User
    Join Date
    04-27-2010
    Location
    Cincinnati, OH
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: If Then Statement meeting multiple criteria

    Quick question...For my own knowledge, how does the formulat know to use 1 and 0?

    Thanks again.

  7. #7
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: If Then Statement meeting multiple criteria

    The -- converts the actual TRUE/FALSE boolean result of the base formula.. NOT(......) to 1 and 0 respectively.

+ 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