+ Reply to Thread
Results 1 to 7 of 7

OR Fucntion comes back as TRUE but as FALSE outside the function

  1. #1
    Registered User
    Join Date
    12-16-2004
    Location
    Melbourne, Australia
    MS-Off Ver
    2016
    Posts
    34

    Question OR Fucntion comes back as TRUE but as FALSE outside the function

    I have a problem with one where Excel is coming up with a TRUE result within a function, but outside of the function, it comes up as a FALSE. Can anyone help?

    First I have the OR function where one of the results is TRUE and I am receiving TRUE, see image below
    2019-01-20_16-10-41.png

    But outside of the OR function the IF function identifies the OR function as FALSE, see image below
    2019-01-20_16-11-42.png

    I have attached the Excel example file as well for anyone who wants to give it a go.
    Attached Files Attached Files
    Last edited by gpktm; 01-20-2019 at 01:22 AM.

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

    Re: OR Fucntion comes back as TRUE but as FALSE outside the function

    Any time you use OR, it will return TRUE or FALSE. So in your formula...
    =IF(C47=(OR(C47="1 & OVER 1.5",C47="1 & OVER 2.5",C47="1 & OVER 3.5",C47="1 & OVER 4.5")),(IF(OR(G47="WIN",G47="V"),"W","L")),"-")
    the BOLDED part will always only return True or False.
    So you are saying if C47 (1 & over 2.5) = True (or False)...as you can see, it will never = C47.

    If you will always only be testing for "1 & over some-value", you could also use...
    =IF(C47="1 & OVER*",IF(OR(G47="WIN",G47="V"),"W","L"),"-")
    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

  3. #3
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,213

    Re: OR Fucntion comes back as TRUE but as FALSE outside the function

    Additional to Ford.
    = C47 = OR(…)
    = "1 & OVER 2.5" = TRUE , This is text "1 &…" compare with Boolean will get False
    = FALSE

    I change your formula to below but not sure about the result.
    Please note the $ that help to copy the formula across and down.
    https://support.office.com/en-us/art...e-5f0d8d0baca9

    I make some change in K2:AF2

    K6 drag to X6
    =IF($C6="","",IF($C6=K$2,(IF(OR($G6="WIN",$G6="V"),"W","L")),"-"))

    Y6 drag to AF6
    =IF($C6="","",IF(ISNUMBER(SEARCH(Y$2,$C6)),(IF(OR($G6="WIN",$G6="V"),"W","L")),"-"))

    Copy K6:AF6 Down
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    12-16-2004
    Location
    Melbourne, Australia
    MS-Off Ver
    2016
    Posts
    34

    Re: OR Fucntion comes back as TRUE but as FALSE outside the function

    Quote Originally Posted by FDibbins View Post
    If you will always only be testing for "1 & over some-value", you could also use...
    =IF(C47="1 & OVER*",IF(OR(G47="WIN",G47="V"),"W","L"),"-")
    Hi there. Sorry for the late reply, It was a busy week, I just managed to take a look at this one.

    This is actually EXACTLY what I was looking for (the asterisk I mean). But... I tried it first and for some reason, it didn't work. I even tried to copy paste the function as you have it but still Excel can't recognize it.

    I did a simple example as per image below

    2019-01-27_1-56-01.png

  5. #5
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,098

    Re: OR Fucntion comes back as TRUE but as FALSE outside the function

    Another option
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    12-16-2004
    Location
    Melbourne, Australia
    MS-Off Ver
    2016
    Posts
    34

    Re: OR Fucntion comes back as TRUE but as FALSE outside the function

    Quote Originally Posted by Fluff13 View Post
    Another option
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    I couldn't make this one work either.

  7. #7
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,098

    Re: OR Fucntion comes back as TRUE but as FALSE outside the function

    It works for me
    Attached Files Attached Files

+ 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. Replies: 3
    Last Post: 08-16-2018, 06:07 AM
  2. How to get an AND function to return back results other than "True and False"
    By bunnyfrostr in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-05-2014, 05:10 PM
  3. What is best to use for helper cells 0 or 1, typed true or false or =true =false
    By Gingermuppet in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-20-2014, 10:41 PM
  4. [SOLVED] in this TRUE OR FALSE function, i want desired name instead of display true or false
    By vengatvj in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-15-2013, 06:44 PM
  5. Search or Find to False in a row/back to back
    By zit1343 in forum Excel General
    Replies: 2
    Last Post: 04-20-2012, 04:35 PM
  6. [SOLVED] Search for 2 true arguments and return true or false
    By David in forum Excel General
    Replies: 3
    Last Post: 07-15-2006, 05:20 AM
  7. Function to return True/False if all are validated as True by ISNU
    By Tetsuya Oguma in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-15-2006, 06:30 AM

Tags for this Thread

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