+ Reply to Thread
Results 1 to 7 of 7

IF(OR I think??

  1. #1
    Registered User
    Join Date
    04-07-2020
    Location
    Gold Coast, QLD Australia
    MS-Off Ver
    Office 365
    Posts
    3

    IF(OR I think??

    Hi all,

    I've tried searching but I'm not entirely sure what I'm searching for so I didn't find what I'm looking at achieving.

    I want a formula that does this:

    If B2="Yes" then display the value in cell J10, but if B2="FALSE" then display the value in cell J11.

    I know this is basic level stuff but I just can't get it to work.

    Any help is greatly appreciated.

    Thanks

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: IF(OR I think??

    Should be a nested IF function, like so:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    B2=Yes results in J10, B2="FALSE" in J11, and anything else will result in a blank result.

  3. #3
    Registered User
    Join Date
    04-07-2020
    Location
    Gold Coast, QLD Australia
    MS-Off Ver
    Office 365
    Posts
    3

    Re: IF(OR I think??

    Thanks Paul that's a great help.

    Although it seems to only work where B2=Yes. False just gives a blank cell.
    I'm guessing this is due to the formula in cell B2.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    The B2 formula doesn't work as intended because where the criteria is not met, it states "FALSE" rather than the intended "No".
    Do you have any suggestions on how to fix this, only if this is causing your formula not to fully function?

    Thanks.

  4. #4
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: IF(OR I think??

    Hi
    can you upload a sample file for example?

  5. #5
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: IF(OR I think??

    perhaps:

    B2: =IF(COUNTIFS($G$2:$G$5,"<"&$A3,$H$2:$H$5,">"&$A3),"Yes","No")

    then

    =IF(B2="Yes",J10,J11)

  6. #6
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,210

    Re: IF(OR I think??

    It depends on your FALSE if it was the text FALSE the above works, if it was the result of a formula returning TRUE or FALSE

    =IF(B2="Yes",J10,IF(B2="FALSE",J11,""))

    remove the "

    if you put =b2=FALSE in another cell
    and =b2="FALSE" in another cell

    which one is true when B" is false

    After that is it is if you have included blank spaces in your descriptions


    Or you have missed a comma between yes and no at the end of the formula

    Please Login or Register  to view this content.
    "Yes""No" should be "Yes","No"

  7. #7
    Registered User
    Join Date
    04-07-2020
    Location
    Gold Coast, QLD Australia
    MS-Off Ver
    Office 365
    Posts
    3

    Re: IF(OR I think??

    Thanks mate. This one worked!

+ 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