+ Reply to Thread
Results 1 to 3 of 3

multiple if statement not working but not working (make sense!)

  1. #1
    Registered User
    Join Date
    09-16-2018
    Location
    Portsmouth, UK
    MS-Off Ver
    2016
    Posts
    1

    Lightbulb multiple if statement not working but not working (make sense!)

    I have a multiple condition if statement that uses two drop downs to derive the resulting value, the issue is that the first time you switch between the drop down values it works, but when you want to switch back it wont. how do i clear it?
    the two drop downs are employee type = resourcer, consultant
    override = yes, no

    when i change employee type (c8) =resourcer and override(03) =yes it works, but when i swap back to employee type (c8) = consultant and then override (o3) = no, it doesn't change back to the correct value. However iwhen i open the file and the first option i choose is employee type =consultant and override = no, it works just fine

    this is the rule

    =IF(O3="No",
    IF(AND(C8="Consultant",C11>=2,C13>=10,C15>=3,OR(C12>=5,C10>=1)),"Target Achieved",
    IF(AND(C8="Resourcer",C14>=15,C12>=5),"Target Achieved","Target Not Achieved")),
    IF(
    IF(AND(C8="Consultant",C11>=2,C13>=10,C15>=3,OR(C12>=5,C10>=1)),"Target Achieved",
    IF(AND(C8="Resourcer",C14>=15,C12>=5),"Target Achieved","Target Not Achieved")="Target Achieved")="Target Achieved","Target Achieved","Target Not Achieved"))


    basically what i am trying to do is say whether a resourcer or consultant has made their targets, but if a manager wants to override the target result based on the calculation, they can use the override drop down to change the value

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    27,052

    Re: multiple if statement not working but not working (make sense!)

    I don't see anything wrong with the formula, so there may be something else in your file that is complicating things. Do you have Calculation set to Automatic? Are there macros in the file? Your formula uses a lot more cells besides just those two. Can you please attach your file? If it has private data, remove the raw data but leave everything else in place.

    The paper clip icon does not work for attachments. Instead, under the text box where you type your reply click the Go Advanced button. On the next screen scroll down and click on Manage Attachments, which will show a pop-up window to Select and Upload a file. Then close the window.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,050

    Re: multiple if statement not working but not working (make sense!)

    1. you probably dont need to repeat that 2nd part of the formula. You have 2 choices YES/NO, and within each, both choices seem to return the same answers?

    2. those extra = signs in the last part look wrong...
    IF(AND(C8="Resourcer",C14>=15,C12>=5),"Target Achieved","Target Not Achieved")="Target Achieved")="Target Achieved","Target Achieved","Target Not Achieved"))

    3. You seem to have conflicting arguments in there...
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    What is C11>=2 AND C14>=15 (etc)?

    When all else fails, upload a small (clean) sample workbook (not a pic) of what you are working with, and what your expected outcome would look like.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 1
    Last Post: 02-27-2016, 06:28 PM
  2. Max/If statement across multiple worksheets not working
    By Rockaddict in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 08-22-2014, 02:34 AM
  3. Max If statement not working across multiple sheets
    By Robmeister89 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 10-26-2013, 08:49 AM
  4. trying to make a button on summary page to make new working sheet
    By dbzisme in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 04-07-2013, 05:41 PM
  5. [SOLVED] Multiple IF Statement not working.
    By Stahlfeder in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-17-2012, 05:00 PM
  6. Working While Statement Stops Working
    By Verbaruab in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-10-2011, 05:58 PM
  7. Multiple Conditional @IF Statement Not Working?
    By crwiseman in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-25-2006, 02:31 PM

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