+ Reply to Thread
Results 1 to 6 of 6

IF statement not returning correct result

  1. #1
    Registered User
    Join Date
    12-03-2020
    Location
    Glasgow
    MS-Off Ver
    365
    Posts
    18

    IF statement not returning correct result

    Hi Guys

    I have the following If formula built

    =IF(AND(R15="Yes",S15="Yes",Y15="Yes"),"Yes","No")

    but when any of R/s/y15 return a no - the cell is not returning a no it continues to show a Yes

    any ideas on what I've done wrong?

  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,719

    Re: IF statement not returning correct result

    There are instructions at the top of the page explaining how to attach your sample workbook.
    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
    Registered User
    Join Date
    12-03-2020
    Location
    Glasgow
    MS-Off Ver
    365
    Posts
    18

    Re: IF statement not returning correct result

    I fixed it

  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,719

    Re: IF statement not returning correct result

    So what was the problem, then?

  5. #5
    Registered User
    Join Date
    12-03-2020
    Location
    Glasgow
    MS-Off Ver
    365
    Posts
    18

    Re: IF statement not returning correct result

    me in a nutshell!

    I think I've been staring at this for too long. And the Y15 - should have been a T15. but I just couldn't see the problem for looking at it. one of the trees for the forest moments.

  6. #6
    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,719

    Re: IF statement not returning correct result

    LOL! Been there, got the T-shirt ...

+ 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. IF statement not returning correct value
    By bdouglas1011 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-11-2018, 11:37 AM
  2. [SOLVED] SUM function not returning correct result
    By rayted in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-26-2018, 11:04 AM
  3. Search and import not returning correct result
    By DannyJ in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-04-2017, 05:38 AM
  4. Formula not returning correct result
    By Patcheen in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-20-2016, 07:05 PM
  5. [SOLVED] LOOKUP not returning correct result
    By TPS in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-15-2016, 10:40 PM
  6. >= formula not returning correct result when it is =
    By SMITH.CRYSTAL in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-15-2016, 12:50 PM
  7. [SOLVED] "RIGHT" extracted value not returning correct result within IF statement
    By PlutoISaPlanet in forum Excel General
    Replies: 5
    Last Post: 11-05-2012, 04:02 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