+ Reply to Thread
Results 1 to 12 of 12

How to find all unique, matching values betwen two arrays of cells

Hybrid View

  1. #1
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: How to find all unique, matching values betwen two arrays of cells

    Sounds like you want to know if a word in the bottom block appears in the top block. If so, 1, if not, 0

    Try
    =IF(COUNTIF($A$1:$E$4,A7)>0,1,0)
    Is that what you are looking for?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  2. #2
    Registered User
    Join Date
    06-20-2012
    Location
    Neverland
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: How to find all unique, matching values betwen two arrays of cells

    Yes! This is actually perfect.

    However, I want run a count if using ALL the words in the bottom block at once. Is there anyway I can apply this formula, to search for all the words in the bottom block at one time?

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: How to find all unique, matching values betwen two arrays of cells

    Array formula (use CNTRL SHFT ENTER instead of Enter. You'll see brackets appear around the formula{})

    =SUM(--(COUNTIF($A$1:$E$4,A7:E7)>0))

  4. #4
    Registered User
    Join Date
    06-20-2012
    Location
    Neverland
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: How to find all unique, matching values betwen two arrays of cells

    You're a genius man...

    Thank you so much

  5. #5
    Registered User
    Join Date
    06-20-2012
    Location
    Neverland
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: How to find all unique, matching values betwen two arrays of cells

    out of curiosity, what do the two little dashes in the parentheses before COUNTIF do?

+ 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