+ Reply to Thread
Results 1 to 7 of 7

Sorting data with the latest year

Hybrid View

  1. #1
    Registered User
    Join Date
    10-03-2014
    Location
    USA
    MS-Off Ver
    2007
    Posts
    3

    Sorting data with the latest year

    Hello All! I have a list of routes with milepoints and data attached to it that was collected in years varying from 2007 up untill 2013. Is there any way I can parse/filter the sheet to see the most recent data for a particular route. I have attached a sample of the spreadsheet. Any help is appreciated.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    09-11-2014
    Location
    Washington, DC
    MS-Off Ver
    2016
    Posts
    1,907

    Re: Sorting data with the latest year

    Filters are already applied to the worksheet. If I'm understanding your question correctly, just filter by both Route Name and then Year...but if I'm understanding your question incorrectly please elaborate.

  3. #3
    Registered User
    Join Date
    10-03-2014
    Location
    USA
    MS-Off Ver
    2007
    Posts
    3

    Re: Sorting data with the latest year

    I see. There are multiple routes and each route has data attached it to based on the milepoints. The milepoints are from start to end but are broken in small sections. Say if a route starts from 0 to 5, it'll be broken down to 0-2,2-3,3-5. My question is since i have mutiple routes, is there any way i could filter the entire sheet to just display the most recent year for that route instead of me going to an individual route and selecting the most recent year and getting the data.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Sorting data with the latest year

    Hi, welcome to the forum

    1st, your "dates" are not really dates, they are text that looks like a date. This will not present a problem with sorting, but I suggest you convert them to real values (explained later, below)

    To sort your data, click the small drop-down arrow at the top of column I, and select Sort A-Z
    Then click the Drop-down arrow on the Route (or any other column you want to filter on_ and uncheck all tat you dont want to see

    To convert those dates to values, highlight that entire range, scroll back to the top, click the yellow diamond that appears to the left of I2 and select Convert to Number
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Sorting data with the latest year

    Can you show a small sample of what you want (done manually with copy/paste if needed)

  6. #6
    Registered User
    Join Date
    10-03-2014
    Location
    USA
    MS-Off Ver
    2007
    Posts
    3

    Re: Sorting data with the latest year

    Sure! I have attached a sample of what I want the spreadsheet to look like. I've selected the first two routes 016SC00600EB and 016SC00601EB. As you've noticed there are mutiple years attached to it in the Year column. But, for 016SC00600EB, the most recent year is 2013 and for 016SC00601EB, the most recent year is 2011. I so want the year column to be filtered in such a way that for a cell in A2, I want the most recent year attached to it.
    Attached Files Attached Files

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Sorting data with the latest year

    OK did you try my suggestion in post #3? It looks like that should work for you?

+ 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: 9
    Last Post: 11-28-2013, 05:20 PM
  2. Replies: 0
    Last Post: 05-18-2013, 05:42 AM
  3. [SOLVED] Getting the latest data and the corresponding year using Vlookup?Max functions?
    By xsiededios in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-20-2013, 04:56 AM
  4. Replies: 0
    Last Post: 09-13-2012, 02:40 PM
  5. Replies: 0
    Last Post: 07-29-2012, 08:21 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