+ Reply to Thread
Results 1 to 6 of 6

How to check two columns for the presence of text and returning "yes" or "no"

  1. #1
    Registered User
    Join Date
    11-01-2011
    Location
    Nottingham, England
    MS-Off Ver
    Excel 2007
    Posts
    12

    How to check two columns for the presence of text and returning "yes" or "no"

    Hello.

    I posted earlier, but the requirements of my spreadsheet are slightly more complicated than I first thought!

    Please see spreadsheet attached.

    I now need to create a formula to go into column C of sheet 2. For instance, in cell C1, it should return the value "Yes" if the value in the cell A1 (of sheet 2) is present in the whole range of cells of Column A, and the value in cell B1 (of sheet 2) is present in the whole range of cells of Column C.

    If this condition is not met, cell C1 should return the value "No".

    A slight variation on my earlier query, but I don't seem to be able to get the foruma right.

    Again, many thanks in advance for any assistance offered.

    Best regards,

    Ian
    (Karelia Suite)
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    03-08-2013
    Location
    UK
    MS-Off Ver
    Excel Mutliple Version
    Posts
    7

    Re: Further Advice on formulas

    No Sheets attached Ian

  3. #3
    Registered User
    Join Date
    11-01-2011
    Location
    Nottingham, England
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Further Advice on formulas

    Hopefully works this time...
    Attached Files Attached Files

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

    Re: Further Advice on formulas

    This is what I gave you earlier:

    =IF(AND(COUNTIF(Sheet1!A:A,A1),COUNTIF(Sheet1!C:C,A1)),"yes","no")

    and this is what you need now in C1 (change shown in red):

    =IF(AND(COUNTIF(Sheet1!A:A,A1),COUNTIF(Sheet1!C:C,B1)),"yes","no")

    Try to write more descriptive and meaningful titles for your threads (check out the Forum Rules on this).

    Hope this helps.

    Pete

  5. #5
    Registered User
    Join Date
    11-01-2011
    Location
    Nottingham, England
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: How to check two columns for the presence of text and returning "yes" or "no"

    Thank you, I understand now. Thread title duly changed.

    Best regards,

    Ian
    (Karelia Suite)
    Last edited by Karelia Suite; 03-19-2013 at 09:32 AM.

  6. #6
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: How to check two columns for the presence of text and returning "yes" or "no"

    This is your formula

    Please Login or Register  to view this content.

+ 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