+ Reply to Thread
Results 1 to 2 of 2

Searching an array with an array

  1. #1
    Registered User
    Join Date
    09-28-2017
    Location
    Brisbane
    MS-Off Ver
    7
    Posts
    1

    Question Searching an array with an array

    Required outcome: True/False
    Problem: I have 2 excel worksheets, both with >1000 alphanumeric codes spread across rows and columns. I want to see if ANY of the codes in Sheet 1 Row 1 Match ANY of the codes in ALL columns and rows (entire array) in Sheet 2 and return a True/False (yes/no, 1/0, doesn't really matter). Then check Sheet 1 Row 2 etc.
    I'm sure this is an array formula using INDEX and MATCH but I just can't figure it out.
    Thanks

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: Searching an array with an array

    welcome to the forum, katburglar007. do upload an excel sample so that we do not have to manually key in your data to do a testing.
    input the desired results so that we don't have to second-guess if what we are doing is correct or not. you may look at my signature to upload an eg that is easier to understand.

    the upload attachment must be done by going to Go Advanced. click on Manage Attachments. Choose file, upload and close the window.

    assuming the alphanumeric in Sheet2 is cell A2, my guess is you can use
    =COUNTIF(Sheet1!A:A,A2)
    or if in multiple columns:
    =COUNTIF(Sheet1!A:Z,A2)

    it will count how many instances of A2 did it appear in Sheet1 column A to Z. to make it TRUE or FALSE,
    =COUNTIF(Sheet1!A:A,A2)>0

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

+ 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. Searching for a value within an array
    By jsgreen15 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-09-2014, 10:42 AM
  2. Array searching
    By DarCady in forum Excel General
    Replies: 1
    Last Post: 09-15-2009, 03:02 AM
  3. searching an array
    By madmanmac in forum Excel General
    Replies: 6
    Last Post: 08-20-2008, 07:01 PM
  4. Searching an array
    By hoopz in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-18-2006, 05:46 PM
  5. [SOLVED] Searching for a value in an Array
    By Farah in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 08-21-2006, 09:15 AM
  6. [SOLVED] searching in an array
    By sisko101 in forum Excel General
    Replies: 1
    Last Post: 08-04-2005, 06:05 PM
  7. Array Searching - HELP!
    By astro_al in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-07-2005, 09:59 AM

Tags for this Thread

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