+ Reply to Thread
Results 1 to 31 of 31

I need to list on a report thre top five lead times by milestone

  1. #1
    Forum Contributor
    Join Date
    11-30-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    112

    I need to list on a report thre top five lead times by milestone

    Hi ,
    I need to extract from an excel list the top 5 (oldest) lead times by milestone (MS1 -MS7). I need the five highest lead times per milestone. I've tried using INDEX and SMALL but after 4 hours need some help!
    Attached Files Attached Files

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Cool Re: I need to list on a report thre top five lead times by milestone

    is that what you want ?
    done with PivotTable
    or ver2
    Attached Files Attached Files
    Last edited by sandy666; 06-06-2018 at 12:05 PM.

  3. #3
    Forum Contributor
    Join Date
    11-30-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    112

    Re: I need to list on a report thre top five lead times by milestone

    test response as keep getting server rejection errors

  4. #4
    Forum Contributor
    Join Date
    11-30-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    112

    Re: I need to list on a report thre top five lead times by milestone

    Thank you for the prompt response but looking for a formula or vba solution. I should have been clearer in my original ask.

  5. #5
    Forum Contributor
    Join Date
    11-30-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    112

    Re: I need to list on a report thre top five lead times by milestone

    I've use a formula to extract on given criteria but can't figure what to use for top x of a given criteria

    Hi sandy666, thank you for the prompt response but looking for a formula/vba solution. I should have been clearer in my original ask.

    I've used below to extract from a dataset with criteria but can't figure how to only select the top 5 in value

  6. #6
    Forum Contributor
    Join Date
    11-30-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    112

    Re: I need to list on a report thre top five lead times by milestone

    I've tried posting a formula but keep getting a site error message (below) and don't know why

    Your request was not authorized due to its content (HTML code not allowed).

  7. #7
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: I need to list on a report thre top five lead times by milestone

    Quote Originally Posted by HKPHOOY View Post
    I've use a formula to extract on given criteria but can't figure what to use for top x of a given criteria
    Hi sandy666, thank you for the prompt response but looking for a formula/vba solution. I should have been clearer in my original ask.
    I've used below to extract from a dataset with criteria but can't figure how to only select the top 5 in value
    No problem, have a nice day.

    btw. post excel workbook with your code/formula (desensitize data before post!)

  8. #8
    Forum Contributor
    Join Date
    11-30-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    112

    Re: I need to list on a report thre top five lead times by milestone

    Hi Sandy666,

    I tried replicating your version 2 pivot table and can't apply the value filter to the job id column - any suggestions?

  9. #9
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: I need to list on a report thre top five lead times by milestone

    but this is not formula or vba

    ok, maybe it will help

    top5.jpg

    first add fields then choose filter

  10. #10
    Forum Contributor
    Join Date
    11-30-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    112

    Re: I need to list on a report thre top five lead times by milestone

    Hi,

    sometimes you need to just get quick and dirty with the solution.

    I've tried this approach but there's a couple issues I've come across. The main one is it doesn't return my five oldest orders based on lead time, it just returns the five highest unique lead times so if I have five orders with a lead time of 9999 it will only return the first one.

    The second is if there's less than five the pivot only returns what' s there (i.e. 2 orders). Is there a way to force the pivot to return blanks so all five rows are populated with some data?

    Best Regards

  11. #11
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: I need to list on a report thre top five lead times by milestone

    any example Excel file with these problems?

  12. #12
    Forum Contributor
    Join Date
    11-30-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    112

    Re: I need to list on a report thre top five lead times by milestone

    here's a better description of the ask


    I have a spreadsheet where I want to identify the top five highest lead time (oldest) orders by milestone (MS1 -MS7). I could use the TOP X function in pivot table but it doesn't give you the unique orders. i.e. if you have 5 orders with the same lead time it won't return the five unique order numbers, which to be fair isn't what your asking it to do.

    It always sounds simpler than it actually is but I just need to extract from my spreadsheet the five oldest lead times in column (DL) based on the Current Milestone (DK)


    Any help greatly appreciated
    Attached Files Attached Files

  13. #13
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,192

    Re: I need to list on a report thre top five lead times by milestone

    What date decides the oldest lead time...And I suggest a sample file with more criteria to work with...Not just 2 MS and 2 lead time
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  14. #14
    Forum Contributor
    Join Date
    11-30-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    112

    Re: I need to list on a report thre top five lead times by milestone

    Its just a calculation of Today() minus the last milestone claimed date; so for MS2 it would be the closure date of MS1 minus todays date.

  15. #15
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,192

    Re: I need to list on a report thre top five lead times by milestone

    And....Drumroll....closure date is in Column???

  16. #16
    Forum Contributor
    Join Date
    11-30-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    112

    Re: I need to list on a report thre top five lead times by milestone

    Hi, here's some extra data. closure dates are in columns; AG,AT,BI,BT,CO,CX,DG
    Attached Files Attached Files

  17. #17
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,192

    Re: I need to list on a report thre top five lead times by milestone

    This date set aside...Is this close to your requirement..
    Please Login or Register  to view this content.
    Attached Files Attached Files

  18. #18
    Forum Contributor
    Join Date
    11-30-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    112

    Re: I need to list on a report thre top five lead times by milestone

    Hi,
    The outputs to my list tab is exactly what I want but need some help understanding how I do the same for all 7 milestones (MS1 - MS7) and how I select the five highest lead times to place in the boxes. The second file is the actual live data and contains all the milestones (Column DK) with their respective lead times (DN)

  19. #19
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,192

    Re: I need to list on a report thre top five lead times by milestone

    Still not sure what the dates have got to do with it, but this extracts the 5 highest to lowest lead times...
    Attached Files Attached Files

  20. #20
    Forum Contributor
    Join Date
    11-30-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    112

    Re: I need to list on a report thre top five lead times by milestone

    Sintek, Superb mate.

    I'll know need a few long hours trying to understand how it works. Is there a way I can bump some positive feedback your way?

  21. #21
    Forum Contributor
    Join Date
    11-30-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    112

    Re: I need to list on a report thre top five lead times by milestone

    Hi Sintek, I thought we had it but I need the JobID from column A retuned in the table as well as the lead times. Idea is to quickly identify the oldest orders by milestone if that makes sense?

  22. #22
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,192

    Re: I need to list on a report thre top five lead times by milestone

    as well as the lead times.
    In a different column?

  23. #23
    Forum Contributor
    Join Date
    11-30-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    112

    Re: I need to list on a report thre top five lead times by milestone

    Ideally in a different column; Job ID, Lead Time.

  24. #24
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,192

    Re: I need to list on a report thre top five lead times by milestone

    Not to familiar with extracting unique values within a multicolumn array....Perhaps someone else can assist...
    Best I can do sorry...
    Please Login or Register  to view this content.

  25. #25
    Forum Contributor
    Join Date
    11-30-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    112

    Re: I need to list on a report thre top five lead times by milestone

    Hi Sintek,

    it's a superb piece of code (it made me feel like a caveman seeing fire for the first time) and I can live with it picking up the first order if the lead times are the same. If anyone's able to crack this particular nut that would be appreciated.

    I have identified a problem at MS3 & MS7 where the code is picking up the right lead times but the incorrect milestones, all three are MS4 but don't know if this just coincidence? added sample to attached spreadsheet.

    Is it possible to arrange the output as per the attached spreadsheet and how can I add a filter to pick up the lead times by a customer which in this spreadsheet is column E. i.e. out put the same list but by a customer.

    Best Regards
    Attached Files Attached Files

  26. #26
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,192

    Re: I need to list on a report thre top five lead times by milestone

    If there are duplicates...Which one must be taken...first or second?

    Look at the results on attached...You will see there are duplicates...Will amend as soon as your answer above question...
    Please Login or Register  to view this content.
    Last edited by sintek; 06-12-2018 at 08:29 AM.

  27. #27
    Forum Contributor
    Join Date
    11-30-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    112

    Re: I need to list on a report thre top five lead times by milestone

    Hi, if there's duplicate lead times I would prefer to take the first. basically the lowest order number as this would have been the older order.

  28. #28
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,192

    Re: I need to list on a report thre top five lead times by milestone

    This solves...
    Please Login or Register  to view this content.

  29. #29
    Forum Contributor
    Join Date
    11-30-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    112

    Re: I need to list on a report thre top five lead times by milestone

    Superb mate. Thank you. If there's any way way to introduce some filtering into the code that would be appreciated. Basically want to be bale to run report based on ShareName (E) and/or Status(O)

    Again many thanks

  30. #30
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,192

    Re: I need to list on a report thre top five lead times by milestone

    Basically want to be bale to run report based on ShareName (E) and/or Status(O)
    Think it is time to open a new thread for that new requirement...
    If this one is resolved, please mark as solved...Tx for rep +

  31. #31
    Forum Contributor
    Join Date
    11-30-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    112

    Re: I need to list on a report thre top five lead times by milestone

    have done mate.


    if you fancy a look;

    https://www.excelforum.com/excel-pro...ml#post4916547

+ 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] Supplier Lead Times
    By spamspamspam in forum Excel General
    Replies: 11
    Last Post: 10-17-2017, 08:34 AM
  2. [SOLVED] working out lead times with 2 dates
    By NinjaBear in forum Excel General
    Replies: 2
    Last Post: 07-02-2012, 05:04 AM
  3. Excel 2007 : Conditional Formatting - Milestone Report
    By Firebeak in forum Excel General
    Replies: 1
    Last Post: 03-14-2012, 08:31 AM
  4. Taking into account lead times when ordering
    By Turvy86 in forum Excel General
    Replies: 5
    Last Post: 12-30-2009, 03:57 PM
  5. Taking into account lead times ...
    By Turvy86 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-30-2009, 02:25 PM
  6. determine lead/lag times between series
    By henryh2 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-07-2008, 08:48 PM
  7. [SOLVED] How can I set up a milestone report with red/green/amber alerts
    By JPG in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-14-2006, 12:35 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