+ Reply to Thread
Results 1 to 4 of 4

Wrong result with IF formula

  1. #1
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Wrong result with IF formula

    Hi:

    I am using IF function in excel and it is giving wrong result.
    Please refer to attached excel sheet and help me with what i am doing wrong.

    Thanks

    Riz
    Attached Files Attached Files

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Wrong result with IF formula

    TRUE is treated as a "Boolean" value not text, so you need to remove the quotes, try

    =IF(A1=TRUE,100,0)
    Audere est facere

  3. #3
    Valued Forum Contributor
    Join Date
    08-13-2012
    Location
    Gardony, Hungary
    MS-Off Ver
    Excel 2003
    Posts
    558

    Re: Wrong result with IF formula

    Hi,

    after some testing I realized that you should leave out the quotation marks. Around TRUE and FALSE. Likes this:
    Please Login or Register  to view this content.
    For some strange reason excel handles these words differently. Look at A1 and B1: they are centered by default, not formatted like normal text cells. I don't know why. Maybe because these are reserved words with more meaning than just ordinary text.

    edit: looks like daddylonglegs nailed it. :D
    Last edited by RHCPgergo; 10-25-2012 at 03:54 PM. Reason: too late

  4. #4
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: Wrong result with IF formula

    Hi Guys:

    Thanks a lot .,...this was quick fix.

    Love it

    Riz

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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