+ Reply to Thread
Results 1 to 7 of 7

If two columns say Yes

  1. #1
    Registered User
    Join Date
    06-02-2020
    Location
    Lake District, England
    MS-Off Ver
    2010
    Posts
    3

    If two columns say Yes

    Hi,

    I have two columns that use formulas to return a True or False answer as Yes or No, I would like a third column to return with True or False depending on weather the first two columns return with both Yes or False if no match.
    these are the formulas that return Yes and No

    =IF(A2="","",IF(ISERROR(VLOOKUP(B2,Codes!$A$2:$A$18,1,FALSE)),"No","Yes"))
    =IF(A2="","",IF(ISERROR(VLOOKUP(N2,Exchanges!$B$1:$B$73,1,FALSE)),"No","Yes"))

    then this is as far as i have been able to get with the third colums

    =IF((R2=EXACT("Yes","No"))+(S2=EXACT("Yes","No")),TRUE,FALSE)

    I cant seem to work out why it wont return as True or False, at the moment it returns everything as FALSE, i have also tried comparing the two but also ran in to problems with this.

    Finally, sorry i don't think i can attach the excel sheet due to the information it has in it

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,919

    Re: If two columns say Yes

    Try this:

    =IF(AND(R2=EXACT("Yes"),S2=EXACT("Yes")),TRUE,FALSE)

    Why do you think you need the EXACT function?

    This should be enough:

    =IF(AND(R2="Yes",S2="Yes"),"Yes","No")

    To return TRUE or FALSE, just this:

    =AND(R2="Yes",S2="Yes")
    Last edited by AliGW; 06-02-2020 at 05:41 AM.
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,677

    Re: If two columns say Yes

    It is because this statement:EXACT("Yes","No") always be FALSE
    I suggest:
    =AND(R2="Yes",S2="Yes")
    Quang PT

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,919

    Re: If two columns say Yes

    Yes, that's what I've suggested, too.

  5. #5
    Registered User
    Join Date
    06-02-2020
    Location
    Lake District, England
    MS-Off Ver
    2010
    Posts
    3

    Re: If two columns say Yes

    I wasn't too sure however had tried a few different things and the last attempt before reaching out for help !

  6. #6
    Registered User
    Join Date
    06-02-2020
    Location
    Lake District, England
    MS-Off Ver
    2010
    Posts
    3

    Re: If two columns say Yes

    Fantastic, that's worked thank you !

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,919

    Re: If two columns say Yes

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

+ 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: 5
    Last Post: 10-06-2017, 03:59 PM
  2. Find Duplicates across 2 pairs of columns (2 columns against 2 columns)
    By erjfly2013 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-09-2015, 06:52 PM
  3. Macro to Copy from 2 Columns, Paste Value in the next 2 Columns, Then clear 1st Columns
    By MHALTTUNEN in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-22-2014, 03:34 PM
  4. [SOLVED] Macros to transpose from multiple columns to selected columns and maintaining cell format
    By rrajnish in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-09-2013, 01:45 PM
  5. Combining multiple rows from 2 columns into sorted columns depending on 1st columns value
    By Dexamphetamine in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-11-2013, 10:00 AM
  6. MAcro to - copy, transpose, text to columns, remove column A, combine all columns in 1
    By galvinpaddy in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 02-07-2013, 08:48 AM
  7. Replies: 6
    Last Post: 12-26-2012, 01:43 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