+ Reply to Thread
Results 1 to 3 of 3

Looking up a value in an array

  1. #1
    Registered User
    Join Date
    06-04-2010
    Location
    Westwood, NJ
    MS-Off Ver
    Excel 2003
    Posts
    3

    Looking up a value in an array

    Hey guys,

    I have two arrays; let's call them List1 (column A) and List2 (column B) and let's say they're each 100 characters long. I'm trying to find, for each value in List1, IF there is a matching value in List2.

    So far, my approach is to return a "Yes" in cell C1 if, say, A1 has the same value as B1:B100. And then I could extend this down column C for each corresponding A. I tried an IF function with an OR in it, but I realized that OR doesn't work for arrays. Is there an easier way to do this?

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Looking up a value in an array

    Perhaps something like this....

    This formula returns YES if the Col_B item exists in the Col_A list
    Please Login or Register  to view this content.
    Copy that formula down as far as you need.

    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Registered User
    Join Date
    06-04-2010
    Location
    Westwood, NJ
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Looking up a value in an array

    Perfect! Thanks, Ron!

+ 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