+ Reply to Thread
Results 1 to 11 of 11

Formula Returning False Instead Of Zero

  1. #1
    Registered User
    Join Date
    08-13-2019
    Location
    Louisiana
    MS-Off Ver
    excel
    Posts
    50

    Formula Returning False Instead Of Zero

    I have written lots of formulas in numerous spreadsheets that return a 0 instead of false. Although my current formula is written the same as the others, for some reason it returns false instead of 0. I have tried to fix it for hours with no success, have no idea what I'm doing wrong this time. What is wrong with the following formula?

    =IF($J$5="Architectural",ROUNDUP(($H$5/33.3),0))

  2. #2
    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
    44,422

    Re: Formula Returning False Instead Of Zero

    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


  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,873

    Re: Formula Returning False Instead Of Zero

    change to: =IF($J$5="Architectural",ROUNDUP($H$5/33.3,0),0)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

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

    Re: Formula Returning False Instead Of Zero

    any chance a space after architectural in J5 that returns a false, maybe there is an extra space.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  5. #5
    Registered User
    Join Date
    08-13-2019
    Location
    Louisiana
    MS-Off Ver
    excel
    Posts
    50

    Re: Formula Returning False Instead Of Zero

    TMS and alansidman,

    Thank you very much for your help. I copied and pasted the new formula and it got rid of the FALSE, but now it displays zero even if $J$5="Architectural".

  6. #6
    Registered User
    Join Date
    08-13-2019
    Location
    Louisiana
    MS-Off Ver
    excel
    Posts
    50

    Re: Formula Returning False Instead Of Zero

    I'll check that.

  7. #7
    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
    44,422

    Re: Formula Returning False Instead Of Zero

    As SK has said, it is possible that cell J5 has leading or trailing spaces.

  8. #8
    Registered User
    Join Date
    08-13-2019
    Location
    Louisiana
    MS-Off Ver
    excel
    Posts
    50

    Re: Formula Returning False Instead Of Zero

    Quote Originally Posted by Sambo kid View Post
    any chance a space after architectural in J5 that returns a false, maybe there is an extra space.
    I checked that, no space. J5 is a drop down list. The user can select either "3-Tab" or "Architectural", which are shingle types. The formula is in a building material purchase order form. If the user selects "3-Tab", the formula calculates the quantity of this type of shingle needed on the appropriate line and returns a zero on the "Architectural" line. If the user selects "Architectural", vice versa.

  9. #9
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,873

    Re: Formula Returning False Instead Of Zero

    Its time to upload a portion (sample) of your file for analyzation. Otherwise, we are just guessing. Make sure that none of your information is confidential. Dummy that up if necessary.

  10. #10
    Registered User
    Join Date
    08-13-2019
    Location
    Louisiana
    MS-Off Ver
    excel
    Posts
    50

    Re: Formula Returning False Instead Of Zero

    Quote Originally Posted by lasc View Post
    TMS and alansidman,

    Thank you very much for your help. I copied and pasted the new formula and it got rid of the FALSE, but now it displays zero even if $J$5="Architectural".
    TMS, alansidman and Sambo Kid,

    Correction, I screwed up. That new formula is working now. I forgot to put data into H5, so zero was the correct calculation because H5 equaled zero. Again, thank you very much for your help.

  11. #11
    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
    44,422

    Re: Formula Returning False Instead Of Zero

    You're welcome.



    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

+ 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. Formula returning False rather than NA#.
    By Gavalar in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-26-2014, 06:25 PM
  2. [SOLVED] IF Formula returning False
    By tbutler09 in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 11-27-2013, 02:41 PM
  3. [SOLVED] IF formula returning False
    By kenadams378 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-27-2013, 12:54 PM
  4. Formula returning false??
    By dirtydan86 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-18-2012, 12:32 PM
  5. Formula returning 'false'
    By r.ellis7688 in forum Excel General
    Replies: 10
    Last Post: 02-22-2012, 08:55 AM
  6. formula returning false
    By sdts in forum Excel General
    Replies: 5
    Last Post: 12-10-2010, 06:35 AM
  7. formula using if and sum is returning false value.
    By hpcoolt in forum Excel General
    Replies: 4
    Last Post: 10-02-2009, 06:19 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