+ Reply to Thread
Results 1 to 8 of 8

Why is it showing the false result?

  1. #1
    Registered User
    Join Date
    11-19-2013
    Location
    Alabama, USA
    MS-Off Ver
    Excel 2007
    Posts
    4

    Why is it showing the false result?

    =IF(A23=2,I4*A21+(I4*D29),0) A23 is 2, I4 is 7700 A21 is 0.0565 and D29 is 0.007. Why do I get a result of 0?

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,835

    Re: Why is it showing the false result?

    Is A23 exactly equal to 2.00000000000, or is it rounded?
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Forum Contributor
    Join Date
    03-12-2013
    Location
    Chicago, USA
    MS-Off Ver
    Excel 2007
    Posts
    230

    Re: Why is it showing the false result?

    Is the "2" value in cell A23 a number format? Maybe try rewriting the formula with quotation marks (" ") around the 2 in the condition of the IF statement.

  4. #4
    Registered User
    Join Date
    11-19-2013
    Location
    Alabama, USA
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Why is it showing the false result?

    Quote Originally Posted by MrShorty View Post
    Is A23 exactly equal to 2.00000000000, or is it rounded?
    It is exact

  5. #5
    Registered User
    Join Date
    11-19-2013
    Location
    Alabama, USA
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Why is it showing the false result?

    Quote Originally Posted by majosum View Post
    Is the "2" value in cell A23 a number format? Maybe try rewriting the formula with quotation marks (" ") around the 2 in the condition of the IF statement.
    That worked....why did that work??!

  6. #6
    Forum Contributor
    Join Date
    03-12-2013
    Location
    Chicago, USA
    MS-Off Ver
    Excel 2007
    Posts
    230

    Re: Why is it showing the false result?

    Someone may be able to elaborate this better than I can, but you need to have things in the same format when you are comparing them. The "2" was probably in Text format. Even when I convert the format to Number, I still have this problem sometimes. I find that adding quotation marks usually fixes the problem.

  7. #7
    Registered User
    Join Date
    11-19-2013
    Location
    Alabama, USA
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Why is it showing the false result?

    Quote Originally Posted by majosum View Post
    Someone may be able to elaborate this better than I can, but you need to have things in the same format when you are comparing them. The "2" was probably in Text format. Even when I convert the format to Number, I still have this problem sometimes. I find that adding quotation marks usually fixes the problem.
    Sounds right because it was in text format at first and didn't work. So I changed it to general and it still didn't work. Glad it works now though!

  8. #8
    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
    52,942

    Re: Why is it showing the false result?

    test A23 using =isnumber(A23) if you get FALSE back, it is text that just looks like a number.

    Where does the answer in A23 come from? Is it from a formula - perhaps with =left/right/mid() somewhere in there? (these all return text for an answer)
    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. [SOLVED] Tick Box not showing true / false statement
    By mal.b.graham in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-17-2012, 12:10 PM
  2. [SOLVED] Help needed to correct a formula showing a 'false' result
    By nje in forum Excel General
    Replies: 5
    Last Post: 09-07-2012, 08:39 AM
  3. [SOLVED] value if false showing up as #VALUE!
    By hluk in forum Excel General
    Replies: 1
    Last Post: 05-04-2012, 08:51 PM
  4. Application.DisplayAlerts = False showing True
    By SOS in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-27-2008, 06:36 AM
  5. Logical Format showing 0/1 and not True/False.
    By Tony in forum Excel General
    Replies: 2
    Last Post: 06-01-2006, 04:00 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