+ Reply to Thread
Results 1 to 6 of 6

Simple IF Formula not working correctly

  1. #1
    Forum Contributor
    Join Date
    02-09-2016
    Location
    West Midlands
    MS-Off Ver
    2016
    Posts
    224

    Simple IF Formula not working correctly

    Hi,

    I have Cell AE16 with the Following Formula

    Please Login or Register  to view this content.
    Cell AI3 Has the Value "TRUE" yet AE16 is returning "NO"


    Ive attached a workbook, what am i doing wrong?

    Thanks
    Attached Files Attached Files

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

    Re: Simple IF Formula not working correctly

    The formula is working correctly, but it is incorrect for your requirements. You need this:

    =IF(AI3=TRUE,"YES","NO")

    The result in AI3 is TRUE/FALSE, not text.
    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.

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,731

    Re: Simple IF Formula not working correctly

    Or you could just do this:

    =IF(AI3,"YES","NO")

    Hope this helps.

    Pete

  4. #4
    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,898

    Re: Simple IF Formula not working correctly

    @Pete

    Quite right - I wanted to highlight the difference between the formulae, though.

  5. #5
    Forum Contributor
    Join Date
    02-09-2016
    Location
    West Midlands
    MS-Off Ver
    2016
    Posts
    224

    Re: Simple IF Formula not working correctly

    Hi,

    So sorry for the delayed reply. Yes that works and sorry for such a basic question that i overlooked!

    As a follow up to this, is there a way of testing a range of cells rather than test the one. The range would be AI1:AI12

    Thank you so much for your help!

    Feed back and rep left

  6. #6
    Forum Contributor
    Join Date
    02-09-2016
    Location
    West Midlands
    MS-Off Ver
    2016
    Posts
    224

    Re: Simple IF Formula not working correctly

    COUNTIF! Of course,

    Sorry for adding that on but just remembered that.

    Thanks again for your help!

+ 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] INT Formula Not Working Correctly
    By chrisbay2324 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-20-2018, 09:59 AM
  2. [SOLVED] Formula not working out correctly
    By ladbroke in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 06-26-2015, 01:24 AM
  3. If then formula not working correctly
    By chappie97 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-23-2013, 01:22 AM
  4. [SOLVED] Simple nested IF statement not working correctly
    By bassemsaad in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-04-2013, 08:53 AM
  5. Replies: 9
    Last Post: 03-08-2013, 11:50 AM
  6. How to express simple IF formula correctly
    By ddub25 in forum Excel General
    Replies: 3
    Last Post: 01-20-2010, 09:10 PM
  7. Simple formula not calculating correctly
    By LeighG in forum Excel General
    Replies: 1
    Last Post: 01-26-2005, 11:22 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