+ Reply to Thread
Results 1 to 8 of 8

IF formula not doing what it's supposed to

  1. #1
    Forum Contributor
    Join Date
    07-06-2021
    Location
    USA
    MS-Off Ver
    365
    Posts
    261

    IF formula not doing what it's supposed to

    The IF formula I have is as follows:
    =IF(F9>=2,"Low",IF(F9=1,"Medium",IF(F9="Nothing","High",IF(ISBLANK(F9)," ",))))
    The function is still auto-filling the cell as "Low" even though I have "Nothing" written in the cell.


    At first, instead of "Nothing" I had 0 in the formula, however, it ignored the IF(ISBLANK... function and still auto-filled everything as "High". If there's a way to fix this, please let me know.
    Last edited by kyber; 08-12-2021 at 03:13 PM.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: IF formula not doing what it's supposed to

    Please upload a workbook or a representative cut down copy, anonymised if necessary. It is always easier to advise if we can see your request in its context.

    Show a before and after situation with manually calculated results, explaining which information is data and which is results, and if it's not blindingly obvious how you have arrived at your results some explanatory notes as well.

    To upload a file click the Go Advanced button at the foot of your post, look underneath the post area for the Manage Attachments section and take it from there.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,289

    Re: IF formula not doing what it's supposed to

    Well, first, " " doesn't give you an null value … you need "". Try:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Registered User
    Join Date
    08-07-2021
    Location
    Manama, Bahrain
    MS-Off Ver
    2016
    Posts
    61

    Re: IF formula not doing what it's supposed to

    Try This

    =+IF(F9="Nothing","High",IF(F9>=2,"Low",IF(F9=1,"Medium","")))

    when you are entering "Nothing", the value of that cell automatically go above 2, which would then satisfy the first condition in your formula and returns the result "low". since the condition is met, excel will not look further into "value if false" condition and hence it will not consider the last part of the formula. the IF formula is doing exactly what its supposed to, its the conditions you give in that require correction.
    Last edited by Abith; 08-12-2021 at 04:13 AM. Reason: Cell Reference Correction

  5. #5
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2019
    Posts
    4,542

    Re: IF formula not doing what it's supposed to

    Delete delete..

  6. #6
    Forum Contributor
    Join Date
    07-06-2021
    Location
    USA
    MS-Off Ver
    365
    Posts
    261

    Re: IF formula not doing what it's supposed to

    @Richard Buttrey Understood. I'll do that in the future.

    @TMS This actually worked! Thank you so much! And I did try "" instead " " and didn't make a different before.

    @Abith It didn't work out. When the cell is empty it auto-filled all the cells to "High" for the priority.

  7. #7
    Registered User
    Join Date
    08-07-2021
    Location
    Manama, Bahrain
    MS-Off Ver
    2016
    Posts
    61

    Re: IF formula not doing what it's supposed to

    Kyber, according to the formula i had mentioned, if the cell is empty, the formula will also return and empty cell as the result. if the cell has the word NOTHING in it, then it would return the result as High. i just want to know where it went wrong

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,289

    Re: IF formula not doing what it's supposed to

    @Abith: to be fair, I tested your formula and it produced the same results as mine. And I think mine has some redundancy.

+ 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. Troubleshoot A FOrmula that is supposed to be sorting through data
    By jimmya1 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-29-2018, 04:42 PM
  2. Replies: 4
    Last Post: 02-04-2016, 11:19 AM
  3. [SOLVED] Timecard Formula to determine if they've taken the break they are supposed to
    By pananarama in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 03-10-2015, 06:07 PM
  4. Data flies everywhere else but where it's supposed to go...
    By mikey6568 in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 08-22-2012, 10:56 AM
  5. How is a long formula supposed to display?
    By NBVC in forum Suggestions for Improvement
    Replies: 14
    Last Post: 04-10-2012, 06:31 PM
  6. Replies: 4
    Last Post: 05-27-2009, 12:29 AM
  7. Look up not working as the way it is supposed to
    By gaby58 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-05-2008, 10:51 AM

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