+ Reply to Thread
Results 1 to 14 of 14

Speed Up Index or Match Formula on 5 Lakhs Rows

  1. #1
    Registered User
    Join Date
    11-07-2014
    Location
    India
    MS-Off Ver
    2016
    Posts
    88

    Speed Up Index or Match Formula on 5 Lakhs Rows

    I have an excel consisting of 5 lakhs rows and four columns. Now, from this file, I am trying to pull data for particular product with the help of Index and Match formula.

    My Problem is: Using Index and Match formula in 5 lakhs line items is too time consuming. Instead is there any ways to speed up this process.

    For more details please refer to below example.

    Code Product Type Value
    12345 Product A PAC 1
    12346 Product A KG 2
    12347 Product A CFC 3
    12348 Product B PAC 1
    12350 Product B KG 3
    12351 Product B CFC 2
    12352 Product C KG 12
    123456 Product C PAC 12


    From above table I want to find the value of Product A for CFC

    Product A CFC Value will be ???/

    P.S: There are more than 5 lakhs product names.

    How to speed up this process?

    It is possible to filter the data for Product A and then use Index Match formula on filtered rows only?

    Please suggest

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,921

    Re: Speed Up Index or Match Formula on 5 Lakhs Rows

    What is 5 lakhs???
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    11-07-2014
    Location
    India
    MS-Off Ver
    2016
    Posts
    88

    Re: Speed Up Index or Match Formula on 5 Lakhs Rows

    0.5 millions rows. In India, lakhs is used a substitute of millions.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,921

    Re: Speed Up Index or Match Formula on 5 Lakhs Rows

    OK - please bear in mind in future that the lingua franca on this forum is English (and I am saying this for practical reasons).

    Please post the formula you are using.

    Excel's maximum rows is 1,048,576 now, but only 65,536 in your version.
    Last edited by AliGW; 07-03-2020 at 06:35 AM.

  5. #5
    Registered User
    Join Date
    11-07-2014
    Location
    India
    MS-Off Ver
    2016
    Posts
    88

    Re: Speed Up Index or Match Formula on 5 Lakhs Rows

    Ok..

    Here is my formula (considering above example): =INDEX(D1:D9,MATCH(1,(E13=B1:B9)*(F13=C1:C9),0))

    I will replace '9' will row count while using on millions of rows.

    I am using MS Excel 2016 on my laptop.

    Note: E13 include Product A
    F13 include CFC
    Last edited by Kaustubh1040; 07-03-2020 at 06:51 AM.

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,921

    Re: Speed Up Index or Match Formula on 5 Lakhs Rows

    Please update your forum profile with your current version of Excel.

    Your maximum row number is 1,048,576.

  7. #7
    Registered User
    Join Date
    11-07-2014
    Location
    India
    MS-Off Ver
    2016
    Posts
    88

    Re: Speed Up Index or Match Formula on 5 Lakhs Rows

    Done updated the version I am using.

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,921

    Re: Speed Up Index or Match Formula on 5 Lakhs Rows

    Did you understand the comment about the maximum number of rows?

  9. #9
    Registered User
    Join Date
    11-07-2014
    Location
    India
    MS-Off Ver
    2016
    Posts
    88

    Re: Speed Up Index or Match Formula on 5 Lakhs Rows

    Yes, In 2016, the numbers of rows are greater than the older version of MS Excel. Thanks for highlighting this. I was not aware that I have mentioned the old version of MS excel in my profile page. Thanks once again.

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,921

    Re: Speed Up Index or Match Formula on 5 Lakhs Rows

    But it's still not enough to accommodate 5 lakhs, is it? Not a lot you can do without dividing your data up into manageable chunks.

  11. #11
    Registered User
    Join Date
    11-07-2014
    Location
    India
    MS-Off Ver
    2016
    Posts
    88

    Re: Speed Up Index or Match Formula on 5 Lakhs Rows

    Thanks I will delete the data into two parts. Thanks for replying to my question. And, the total numbers of rows are 502027.

  12. #12
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,921

    Re: Speed Up Index or Match Formula on 5 Lakhs Rows

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  13. #13
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Speed Up Index or Match Formula on 5 Lakhs Rows

    If you are trying to pull a subset of your rows, you could use Power Query on your data. It only looks at the first few hundred rows and then will filter your data as it comes into the workbook.

    https://www.masterdataanalysis.com/m...records-excel/
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  14. #14
    Valued Forum Contributor
    Join Date
    10-14-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2019
    Posts
    353

    Re: Speed Up Index or Match Formula on 5 Lakhs Rows

    You can have a super fast search routine.
    1. Make a key-field concatenate Product and Type
    2. Sort the table ascending on this key-field
    3. Input your search values for Product and Type
    4. Make a search string combining Product and Type
    5. Use a combined formula Vlookup and Match to find the row with the matching key
    6. Extract your results using the Index-formula

    Try it, you will be surprised !
    Even with 500k+ records.
    Attached Files Attached Files
    Kind regards,
    Piet Bom

+ 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. Increasing speed of match index formula
    By Calios in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-03-2018, 10:36 AM
  2. Speed up Excel Index Match - First Instance
    By lesaiot29 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-28-2018, 11:55 AM
  3. Need to speed up writing INDEx MATCH formula
    By hkbhansali in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 07-20-2018, 08:07 AM
  4. [SOLVED] How to speed up this index match function
    By fluffyvampirekitten in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-27-2015, 03:50 AM
  5. Improving Speed of Index and Match Functions
    By hazza147 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-30-2010, 01:05 PM
  6. Increase speed for match formula on over 130k rows
    By jeffreybrown in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 09-23-2010, 09:56 AM
  7. Match/Index Calcuation Speed
    By Rochy81 in forum Excel General
    Replies: 1
    Last Post: 10-01-2008, 04:19 PM

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