+ Reply to Thread
Results 1 to 4 of 4

How to optimise INDEX(MATCH()) for large data sets?

  1. #1
    Registered User
    Join Date
    07-01-2015
    Location
    Sydney, Australia
    MS-Off Ver
    2013
    Posts
    4

    How to optimise INDEX(MATCH()) for large data sets?

    Hello!

    Bit of a weird one, I have a working formula but I now want to use it to search across a large dataset so I need to optimise the formula.
    Basically I am searching for then returning a sub-string within a string. Problem is I have an array of 65 sub-strings to check within a set of 200,000 input strings.

    I have attached the file with some example data Book1.xlsx

    I am using this array (ctr+shft+entr) formula: =INDEX($C$2:$C$3,MATCH(1,COUNTIF(A2,"*"&$C$2:$C$3&"*"),0))

    As in the attached excel:
    Column A (Input String)
    1dog
    2cat
    dog3again
    4catfish

    Column B Result (Formula)
    dog
    cat
    dog
    cat

    Column C (sub-string array)
    dog
    cat

    Is there any way this kind of search can be run on this scale? Right now it is taking about 6mins/10,000 rows (but also crashing now and again)

    Cheers,
    Dan

  2. #2
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: How to optimise INDEX(MATCH()) for large data sets?

    i would imagine running extremely slow on larger sets
    maybe a UDF would be faster
    Attached Files Attached Files
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    07-01-2015
    Location
    Sydney, Australia
    MS-Off Ver
    2013
    Posts
    4

    Re: How to optimise INDEX(MATCH()) for large data sets?

    Awesome! From 6 minutes to 6 seconds! Thank you humdingaling

  4. #4
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: How to optimise INDEX(MATCH()) for large data sets?

    not a problem
    glad it helped

    Cheers
    hum

+ 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. [SOLVED] Index Match with multiple criteria and selecting data from a large table
    By Aquarock in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-14-2014, 09:26 PM
  2. [SOLVED] Index Match With 2 Sets of Criteria, Each with Multiple Conditions
    By MrMacro2013 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 06-23-2014, 06:29 PM
  3. Index Match Rows for multiple data sets
    By Martin Chamberlin in forum Excel General
    Replies: 1
    Last Post: 05-23-2014, 07:07 AM
  4. Help with Index fucntion from two sets of ranges and use of Large function
    By taker418 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-06-2013, 02:50 PM
  5. Index, Match, and Large
    By edwardpestian in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-03-2006, 06:10 PM

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