+ Reply to Thread
Results 1 to 4 of 4

Looking to get a dynamic unique list based on date

  1. #1
    Registered User
    Join Date
    06-06-2014
    Location
    Hong Kong
    MS-Off Ver
    2010
    Posts
    91

    Looking to get a dynamic unique list based on date

    Hi all, A simple request if using a formula, which I am, but unfortunately the formula I'm using for that:

    Please Login or Register  to view this content.
    Is incredibly slow given the rather obvious large size of the thing unfortunately (and it'll only continue to grow), and of course at the moment isn't all that dynamic.

    So currently looking for a macro which takes in the date and lists all the unique data within that range and preferably at a click of a button once date range have been assigned.

    Example data attached (And of course data is cut down with data from 2015-18 removed :p) with other formulas to show what it is I'm trying to accomplish as a whole and why the whole thing might be slow with a large data set.

    From "raw data" get unique "Part Number" by date range assigned in "ACL" and copy down in "ACL" (Bonus points for alphanumeric order), then separate formula to calculate the average age of each part number but only key part is getting unique list that isn't current slow formula.

    Secondary would be to also list, along with date criteria (so multi criteria macro), the part numbers where sales type is applicable (See "ACL" sheet) but that is not a necessity.

    Thanks for any advice.

    Edit:

    Updated with new macro where I now generate a sorted unique list when activated.

    Please Login or Register  to view this content.
    If anyone has ideas though on how to also filter between sales type it would be appreciated.
    Example file is updated.
    Attached Files Attached Files
    Last edited by Gunblade; 04-14-2019 at 08:53 PM.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,704

    Re: Looking to get a dynamic unique list based on date

    Another way to get those unique part numbers, which doesn't involve using an array formula, would be to put this formula in cell K2 of the Raw Data sheet:

    =IF(AND(I2>=ACL!$E$2,I2<=ACL!$G$2,COUNTIF(C$2:C2,C2)=1),MAX(K$1:K1)+1,"-")

    then copy this down to the bottom of your data. Then you can use this formula in A3 of the ACL sheet:

    =IFERROR(INDEX('Raw Data'!$C:$C,MATCH(ROWS($1:1),'Raw Data'!$K:$K,0)),"")

    Copy this down until you start to get blanks.

    I suspect the formula in B3, though, with 6 SUMPRODUCT functions is also contributing to the sluggishness of the workbook - perhaps you could think about using SUMIFS and COUNTIFS as replacements.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    06-06-2014
    Location
    Hong Kong
    MS-Off Ver
    2010
    Posts
    91

    Re: Looking to get a dynamic unique list based on date

    Thanks for the info.
    Though this is being used by others the less they have to deal with the better, hence a single macro button
    Also 6 sumproducts condensed into 2 instead due to some silly nonsense from my part, so still a little bit slow but much more efficient for the moment.
    Updated example file.
    After some fiddling, it's solved XD
    Last edited by Gunblade; 04-14-2019 at 10:23 PM.

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,704

    Re: Looking to get a dynamic unique list based on date

    Glad you got it solved - thanks for the rep.

    Pete

+ 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. Replies: 2
    Last Post: 04-25-2018, 06:35 AM
  2. [SOLVED] Dynamic Unique List from multiple dynamic columns
    By JO505 in forum Excel General
    Replies: 7
    Last Post: 06-11-2015, 05:41 PM
  3. [SOLVED] Create unique list based on date
    By solmyr in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-22-2014, 07:31 AM
  4. Create unique list from dynamic list with dupes
    By kfryar in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-10-2014, 09:20 PM
  5. Counting unique items on a list based on date in adjacent column
    By Mafoo17 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-30-2013, 04:24 PM
  6. Dynamic Chart based on Date drop down list
    By hazelwouldbe in forum Excel General
    Replies: 1
    Last Post: 07-21-2011, 11:32 PM
  7. Dynamic employee list based on date
    By excelbone in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-27-2007, 12:24 AM

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