+ Reply to Thread
Results 1 to 4 of 4

IF/AND/OR.... Help!

  1. #1
    Registered User
    Join Date
    11-28-2022
    Location
    Sydney
    MS-Off Ver
    365
    Posts
    2

    IF/AND/OR.... Help!

    I need a little help with multiple if conditions that would apply to the one cell....


    I want the cell E1 to change depending on the status of the event I am inputting. E5 will start as an empty cell and any data will be inputted by the user.

    If E5 is blank then I want E1 to also be blank

    If E5 has a value inputted that is >0 then I want E1 to say "In Progress"

    If E5 has the value '0' inputted, then I want E1 to say "Cancelled"

    E9 will typically be blank, however if I input a number from E11 and below it will calculate and put the total number of hours the employees worked in E9. Therefore, if the value in E9 is >0 I want E1 to say "Completed"


    Thanks for your help!
    Attached Files Attached Files

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.95 for Mac MS 365
    Posts
    8,684

    Re: IF/AND/OR.... Help!

    how about this... =IF(E5="","",IF(E5>0,"In Progress",IF(E9>0,"Completed","Cancelled")))
    you have to remember that when writing/using a multiple IF statement it reads and works from left to right, so the first condition it finds that satisfies that part of the formula the formula quits. I can't tell from your post if E5 needs to be an AND portion with E9 or a stand alone, I made it stand alone for now.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Registered User
    Join Date
    11-28-2022
    Location
    Sydney
    MS-Off Ver
    365
    Posts
    2

    Re: IF/AND/OR.... Help!

    Thanks Sam. Once I input the hours worked for each employee into E11, E12, E13, etc it will add them up and provide a total figure in E9.

    It is at this point that I want to change E1 to say "Completed" as that signifies the completion of that particular event.

  4. #4
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.95 for Mac MS 365
    Posts
    8,684

    Re: IF/AND/OR.... Help!

    well the formula I gave you says completed based on your uploaded workbook.
    I would say that what shows up in E1 will be based on your priorities.
    so this gives a blank for if first E5 is blank, then returns completed if E9 is greater than 0
    =IF(E5="","",IF(E9>0,"Completed",IF(E5>0,"In Progress","Cancelled")))
    it is simply a reordering of the one I gave you in post #2.

+ 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