+ Reply to Thread
Results 1 to 6 of 6

Detect new sales using INDEX/MATCH very slow

  1. #1
    Registered User
    Join Date
    04-28-2019
    Location
    france
    MS-Off Ver
    14.1.3 (2011)
    Posts
    3

    Detect new sales using INDEX/MATCH very slow

    Bob phillips, you are my savior today,
    that worked the charm. Thanks very much

    I was reluctant to use index/match because of how slow it is in another spread sheet I created to keep track of CD sales at concerts.
    I attached the file to give you an idea if you have time and curiosity to take a look.

    the function that seems to be so slow is the following:
    =IFERROR(INDEX(vente!B:B, MATCH(0,COUNTIF($A$1:A1, vente!B:B), 0)),"")
    and it's located in the 'total' sheet column A.

    It's purpose is :
    _to automatically detected when there are news sales in the "vente" sheet,
    _create a cell with the name of the event, so that the other cells in the row can fill automatically

    If you (or anyone else reading this) have any suggestions on how to better deal with this purpose so that it's not so slow, I would greatly appreciate it.

    thanks again!!
    Attached Files Attached Files

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,424

    Re: Detect new sales using INDEX/MATCH very slow

    I would avoid using the full column reference for column B. Ideally, use a Dynamic Named Range instead.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: Detect new sales using INDEX/MATCH very slow

    Hi


    try without control+shift+enter

    =IFERROR(INDEX(vente!B$1:B$1000,MATCH(0,index(COUNTIF($A$1:A1,vente!B$1:B$1000),), 0)),"")



    Sorry TMS: I did not mean to overlap...I agree completely with your assessment.
    Last edited by canapone; 04-28-2019 at 12:13 PM.
    -----------------------------------------------------

    At Excelforum, you can say "Thank you!" by clicking the star icon ("Add Reputation") below the post.

    Please, mark your thread [SOLVED] if you received your answer.

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,424

    Re: Detect new sales using INDEX/MATCH very slow

    @canapone: no worries. A couple of minutes either way and I would have been reinforcing your suggestion

  5. #5
    Registered User
    Join Date
    04-28-2019
    Location
    france
    MS-Off Ver
    14.1.3 (2011)
    Posts
    3

    Re: Detect new sales using INDEX/MATCH very slow

    hello TMS and canapone,
    thanks very much for your answers.
    If seems that both work but I don't understand why for canapone's solution, i don't need to use control+shift+enter when I'm still using an index function?
    in other words why do we need to use control+shift+enter here:
    =IFERROR(INDEX(quievent, MATCH(0,COUNTIF($A$1:A10, quievent), 0)),"")

    and not here:
    =IFERROR(INDEX(quievent,MATCH(0,INDEX(COUNTIF($A$1:A25,quievent),), 0)),"")

    thanks again so much for your replies as it has sped up my spread sheet about 500%

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,424

    Re: Detect new sales using INDEX/MATCH very slow

    You're welcome.


    The second INDEX will generate the array.



    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

+ 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. Index Match too slow, is there a VBA solution?
    By Annie88 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-27-2018, 12:59 PM
  2. Please Help: Using Index, Match, Max & Sumifs to locate top sales person
    By vms777 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-16-2017, 01:39 AM
  3. [SOLVED] Index Match in macro very slow to execute
    By maym in forum Excel Programming / VBA / Macros
    Replies: 50
    Last Post: 08-09-2016, 09:39 AM
  4. [SOLVED] Multiple Index/Match calculates extremely slow
    By vamosj in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-12-2015, 06:45 PM
  5. Index Match Index Formula work slow
    By avk in forum Excel General
    Replies: 9
    Last Post: 03-07-2012, 02:19 PM
  6. INDEX and MATCH too SLOW
    By dan.xls in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 07-22-2011, 03:59 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