+ Reply to Thread
Results 1 to 13 of 13

Formula Returning FALSE When a Value is Expected

  1. #1
    Registered User
    Join Date
    04-18-2019
    Location
    United States
    MS-Off Ver
    MS Office 2016
    Posts
    4

    Formula Returning FALSE When a Value is Expected

    My formula keep returning false when it should be returning a value.

    What am I doing wrong?
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by AliGW; 04-18-2019 at 02:08 PM.

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Excel Formula Problem

    Post a sample spreadsheet with expected results, remove any sensitive data, create a mockup example if necessary.
    Use the Go Advanced option at the bottom of the page then scroll down to Manage Attachments as the "paperclip" method does not work on this forum.
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Formula Returning FALSE When a Value is Expected

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however the thread title does not really convey what your request is about.

    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    (Note: this change is not optional. As you are new here, I have done it for you this time.)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Formula Returning FALSE When a Value is Expected

    My guess (based on your formulas) is that the value in B30 is entered as text. (If you put quotes around it in a formula, then it is seen as text and not a number). Remove the quotes.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  5. #5
    Registered User
    Join Date
    04-18-2019
    Location
    United States
    MS-Off Ver
    MS Office 2016
    Posts
    4

    Re: Excel Formula Problem

    My formula keep returning false when it should be returning a value. What am I doing wrong? See attached spreadsheet:
    Attached Files Attached Files

  6. #6
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: False Value

    Because the answer to every one of your “Ifs” is FALSE
    If 84.4 >= 90 Nope
    If 84.4 < 89.999 and >85, Nope
    If 84.4 < 84 and > 80.999, Nope
    If 84.4 < 80, nope
    You did not give (in the formula, what to do if all were false so it simply returns FALSE
    Questions?

  7. #7
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,293

    Re: False Value

    What result do you expect?


    You dont need AND in the formula

    Try something like this:
    Please Login or Register  to view this content.
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  8. #8
    Valued Forum Contributor
    Join Date
    01-07-2013
    Location
    Michigan
    MS-Off Ver
    O365
    Posts
    601

    Re: False Value

    Cells B19 and E19 are also numbers stored as text, which will cause problems as well. Remove the ' in front of the numbers in those cells.
    If someone helped achieve your solution, consider clicking "* Add Reputation" on their post.

    If your question has been answered, mark the thread as [SOLVED] using the Thread Tools menu at the top of the thread.

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Formula Returning FALSE When a Value is Expected

    Sbailey - as explained in post #3, I amended your thread title to something clearly describing your issue. I notice Tharp you subsequently took it upon yourself to change it again to something far less descriptive. If a moderator changes a thread title for you, it is done for a reason: please don’t undo their edits. Thank you.

  10. #10
    Registered User
    Join Date
    04-18-2019
    Location
    United States
    MS-Off Ver
    MS Office 2016
    Posts
    4

    Re: False Value

    Quote Originally Posted by popipipo View Post
    What result do you expect?


    You dont need AND in the formula

    Try something like this:
    Please Login or Register  to view this content.
    I only need the returning values to be 6,4,2 or 0.

  11. #11
    Valued Forum Contributor
    Join Date
    01-07-2013
    Location
    Michigan
    MS-Off Ver
    O365
    Posts
    601

    Re: Formula Returning FALSE When a Value is Expected

    As ChemistB pointed out in post #6, you have nothing in your formula to account for a FALSE return. Alter your formula to this to have it return 0 if none of your statements are true:
    Please Login or Register  to view this content.
    I removed the quotes, as they were unnecessary.

  12. #12
    Registered User
    Join Date
    04-18-2019
    Location
    United States
    MS-Off Ver
    MS Office 2016
    Posts
    4

    Re: Formula Returning FALSE When a Value is Expected

    Quote Originally Posted by Melvosh View Post
    As ChemistB pointed out in post #6, you have nothing in your formula to account for a FALSE return. Alter your formula to this to have it return 0 if none of your statements are true:
    Please Login or Register  to view this content.
    I removed the quotes, as they were unnecessary.
    This was perfect! I was only missing a "0". Thanks!

  13. #13
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Formula Returning FALSE When a Value is Expected

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. excel formula problem
    By DQMark4334 in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 10-19-2018, 10:01 AM
  2. excel IF formula problem
    By ellyottpoulter in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-24-2015, 09:29 AM
  3. Formula is there in the Cell but its not executing
    By gopi_ganji in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-03-2012, 07:56 AM
  4. Problem in excel formula
    By vivekdevkar in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-15-2010, 06:12 AM
  5. excel formula problem
    By khushee in forum Excel General
    Replies: 2
    Last Post: 12-04-2005, 07:20 PM
  6. [SOLVED] Problem with formula in Excel
    By Bill R in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM
  7. Problem with formula in Excel
    By Bill R in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-14-2005, 10:05 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