+ Reply to Thread
Results 1 to 12 of 12

Top ten oldest and top ten newest

  1. #1
    Registered User
    Join Date
    06-20-2011
    Location
    Travelers Rest, SC
    MS-Off Ver
    Excel 2010
    Posts
    48

    Top ten oldest and top ten newest

    Someone solved a less complicated example of this for me in the past but my columns were in different orders and I cannot get it to work with my asset tag (unique identifier) being in column A now, sadly.

    I'd like to just see the top ten oldest and newest installs. I thought this could be accomplished with LARGE and SMALL formulas? Please see all three tabs on attached file.

    Thank you in advance!
    Attached Files Attached Files
    Last edited by jhiltabidel; 07-07-2011 at 07:23 PM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Top ten oldest and top ten newest

    How about just sorting by purchase date, then copying and pasting the first and last ten rows?
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    06-20-2011
    Location
    Travelers Rest, SC
    MS-Off Ver
    Excel 2010
    Posts
    48

    Re: Top ten oldest and top ten newest

    True, that would work -- However, I'm working on a dashboard. So, at a glance, with minimal work, someone can see the info -- it may even be displayed on a digital sign all day.

  4. #4
    Valued Forum Contributor
    Join Date
    07-17-2005
    Location
    Abergavenny, Wales, UK
    MS-Off Ver
    XL2003, XL2007, XL2010, XL2013, XL2016
    Posts
    608

    Re: Top ten oldest and top ten newest

    Hi

    Although your details say Xl2003, you have posted an xlsx workbook, which means you must be using XL20007 or 2010.

    Take a look at the attached workbook.
    In column O I have calculated the age in days, by simply using the formula
    =TODAY()-B12
    This gives the actual age of each asset.

    In column P I have shown the youngest age of each asset, by taking the value in column O away from 50000 with the formula
    =50000-O2

    Then, applying autofilter to the top row, on column O select> Number Filters>Top 10 and you will get the oldest assets (many are equal in age)

    Doing the same thing for column P will give the Youngest Top 10
    Attached Files Attached Files
    --
    Regards
    Roger Govier
    Microsoft Excel MVP

  5. #5
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    Office 2021
    Posts
    2,237

    Re: Top ten oldest and top ten newest

    Hello jhiltabidel,

    See the attached. Does this help?
    Attached Files Attached Files
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

  6. #6
    Registered User
    Join Date
    06-20-2011
    Location
    Travelers Rest, SC
    MS-Off Ver
    Excel 2010
    Posts
    48

    Re: Top ten oldest and top ten newest

    Haseeb, This is perfect, thanks! Now I have to figure out how you did it.
    Last edited by jhiltabidel; 07-08-2011 at 10:16 AM.

  7. #7
    Registered User
    Join Date
    06-20-2011
    Location
    Travelers Rest, SC
    MS-Off Ver
    Excel 2010
    Posts
    48

    Re: Top ten oldest and top ten newest

    I appreciate the help, but I do need to see more than just the asset tag number, unfortunately. Thank you.

    Quote Originally Posted by Roger Govier View Post
    Hi

    Although your details say Xl2003, you have posted an xlsx workbook, which means you must be using XL20007 or 2010.

    Take a look at the attached workbook.
    In column O I have calculated the age in days, by simply using the formula
    =TODAY()-B12
    This gives the actual age of each asset.

    In column P I have shown the youngest age of each asset, by taking the value in column O away from 50000 with the formula
    =50000-O2

    Then, applying autofilter to the top row, on column O select> Number Filters>Top 10 and you will get the oldest assets (many are equal in age)

    Doing the same thing for column P will give the Youngest Top 10

  8. #8
    Valued Forum Contributor
    Join Date
    07-17-2005
    Location
    Abergavenny, Wales, UK
    MS-Off Ver
    XL2003, XL2007, XL2010, XL2013, XL2016
    Posts
    608

    Re: Top ten oldest and top ten newest

    Quote Originally Posted by jhiltabidel View Post
    I appreciate the help, but I do need to see more than just the asset tag number, unfortunately. Thank you.
    Hi
    Apologies - the wrong copy of the file got posted.
    It did not have the formulae in it, nor the selection for Youngest and Oldest.

    Using the Filter for Top 10 on either column, will show all of the data, not just the Tag number.

    You cannot have just the top 10 however, as there are 70 or so assets purchased on the same day.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    06-20-2011
    Location
    Travelers Rest, SC
    MS-Off Ver
    Excel 2010
    Posts
    48

    Re: Top ten oldest and top ten newest

    Haseeb,

    Question for you on this sheet: Why are the rows off by 2? For example, it reports something being in "Row 50" but the row it's actually referencing is 52. This seems to be consistent for all Row information reported.

    Thanks,
    Joe

    Quote Originally Posted by Haseeb A View Post
    Hello jhiltabidel,

    See the attached. Does this help?

  10. #10
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    Office 2021
    Posts
    2,237

    Re: Top ten oldest and top ten newest

    Why are the rows off by 2?
    That because, MATCH function start to look at A3 not from A1 in data sheet, used a dynamic named range Data. The range starts at A3 to down on Data sheet. Therefore rows are off by 2.

    Hope this helps.

  11. #11
    Registered User
    Join Date
    06-20-2011
    Location
    Travelers Rest, SC
    MS-Off Ver
    Excel 2010
    Posts
    48

    Re: Top ten oldest and top ten newest

    Thanks Haseeb. I did notice the named range -- is it correctable? It's not a big deal, really. I sincerely appreciate you coming up with that solution, it's magnificent!

    Quote Originally Posted by Haseeb A View Post
    That because, MATCH function start to look at A3 not from A1 in data sheet, used a dynamic named range Data. The range starts at A3 to down on Data sheet. Therefore rows are off by 2.

    Hope this helps.

  12. #12
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    Office 2021
    Posts
    2,237

    Re: Top ten oldest and top ten newest

    Hello Joe,

    Use the whole column reference, instead of named range. This will give the accurate row numbers. See the attached.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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