+ Reply to Thread
Results 1 to 5 of 5

Check if part of a column contains multiple values

Hybrid View

  1. #1
    Valued Forum Contributor
    Join Date
    06-16-2006
    Location
    Sydney, Australia
    MS-Off Ver
    2013 64bit
    Posts
    1,394

    Re: Check if part of a column contains multiple values

    What do you mean "Adam and Chris are together"? Do you mean if they are next to each other in the cells? Also, how should I know if I am looking for "Adam and Chris" and not "Ben and Dave" Is this information stored somewhere?

  2. #2
    Registered User
    Join Date
    04-20-2012
    Location
    New York, NY
    MS-Off Ver
    Excel 2013, 2010, 2007, 2003
    Posts
    99

    Re: Check if part of a column contains multiple values

    By "Adam and Chris are together" I mean that they are in group 1, i.e. they share a common value in column A. The relative location in column B is not important.
    "Adam and Chris" vs. "Ben and Dave" vs. any other combination of 2 would be done on an ad hoc basis, this could be typed into the formula as needed or referenced in another cell. I've attached a sample which should help (probably should have done this in the first place...)

    Group_check.xlsx

    Thank you!

  3. #3
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Check if part of a column contains multiple values

    Hi

    One way to do this, is using IF & SUMPRODUCT formulae.

    =IF(SUMPRODUCT((K4=$G$5)*(J4=$G$4))+SUMPRODUCT((J4=$G$4)*(K4=$G$6))>=1;"X";"")
    In first example, in L4, put this formula and copy down.

    Is this, OK, for you?
    Attached Files Attached Files
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  4. #4
    Registered User
    Join Date
    04-20-2012
    Location
    New York, NY
    MS-Off Ver
    Excel 2013, 2010, 2007, 2003
    Posts
    99

    Re: Check if part of a column contains multiple values

    This is PERFECT, thank you!

+ 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