Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Other Databases (https://www.askmehelpdesk.com/forumdisplay.php?f=444)
-   -   Excel help (https://www.askmehelpdesk.com/showthread.php?t=827868)

  • Sep 28, 2016, 12:45 PM
    Rikest
    Excel help
    What's wrong with this formula
    =IF(C19=10.1,"Job 1",IF(C19>10.1<11.5,"Job 2",IF(C19>=11.5,"Job 3")))
  • Sep 28, 2016, 01:07 PM
    Curlyben
    Is it all within the "job" sheet
  • Sep 28, 2016, 01:18 PM
    Rikest
    I have a pay rate column... I need to know if each employee is a rate 1, 2, or 3 based on the hourly rate.
  • Sep 28, 2016, 01:49 PM
    joypulv
    I see nothing wrong with it. Tell us what you are seeing that's wrong.
  • Sep 28, 2016, 02:56 PM
    ScottGem
    =IF(C19=10.1,"Job 1",IF(C19>10.1 AND C19<11.5,"Job 2",IF(C19>=11.5,"Job 3","")))


    2 things wrong, you need the AND on the second condition and you need a false result for the third condition.

    I would also look and see if Excel has the Switch function.
  • Sep 29, 2016, 06:20 AM
    Rikest
    I can get all parts to work except the AND part.
  • Sep 29, 2016, 06:42 AM
    Rikest
    Here is the formula that I am using

    =IF(C10=10.1,"Job 1","",IF(C10>10.1<11.5,"Job 2","",IF(C10>=11.5,"Job 3")))

    The error that I am getting says that I have used too many arguments for this function.
  • Sep 29, 2016, 08:24 AM
    ScottGem
    this worked for me:

    =IF(C10=10.1,"Job 1",IF((C10>10.1)*AND(C10<11.5),"Job 2",IF(C10>=11.5,"Job 3","")))

    The syntax for an IF is If(condition,True result, false result). So by using IF(C10=10.1,")))

    The syntax for an IF is If(condition,True result, false result). So by using IF(C10=10.1,","",IF(... You had 4 arguments. Then in the last IF you only had 2 arguments.
  • Sep 29, 2016, 11:48 AM
    Rikest
    That worked! Thank you so much... you're an angel!

  • All times are GMT -7. The time now is 03:21 AM.