+ Reply to Thread
Results 1 to 5 of 5

Return Latest Date from a range of data

  1. #1
    Registered User
    Join Date
    10-09-2009
    Location
    KL
    MS-Off Ver
    Excel 2003
    Posts
    42

    Return Latest Date from a range of data

    Dear Admin,

    I got a problem that I always need to do a donkey work that to sort out the latest date from my supplier list, For Example:

    Supplier Date
    123 1/1/10
    125 1/1/10
    126 1/1/10
    123 2/1/10
    125 2/1/10
    126 2/1/10

    The result should be return :

    Supplier Date
    123 2/1/10
    125 2/1/10
    126 2/1/10

    With this I no need to check day by day , date by date, do sorting and count manually for thosand lines.
    Is it possible to work around a coding to perform this action ? or using some excel formula ?? Thanks and Regards
    Last edited by Kenji; 04-01-2010 at 06:14 AM.

  2. #2
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,444

    Re: Return Latest Date from a range of data

    Hi,

    You could use data > sort

    to order the data in date order, which would show you the latest date, then

    data > filter

    to filter only the latest date?
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  3. #3
    Registered User
    Join Date
    10-09-2009
    Location
    KL
    MS-Off Ver
    Excel 2003
    Posts
    42

    Re: Return Latest Date from a range of data

    Dear Sweep,

    I sort already, problem is I got thoudsand suppliers, My 1st sort is all the same supplier number, second sort by date, I cant get the result as I mentioned above but I got thoudsand of different suppliers, I need to pefrom the donkey work to count and do the report myself @@ , Regards

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Return Latest Date from a range of data

    Why not use a Pivot Table ?

    Set Supplier as Row Field, Date as Data Field set to MAX and format as Date.
    (use a Dynamic Named Range as source for PT)

    Quote Originally Posted by Kenji
    I sort already, problem is I got thoudsand suppliers, My 1st sort is all the same supplier number, second sort by date
    Your sample does not match the above ... if the above is true then the last date can be returned by conducting a basic VLOOKUP, ie: =VLOOKUP(suppliercode,A:B,2)
    Last edited by DonkeyOte; 04-01-2010 at 05:36 AM.

  5. #5
    Registered User
    Join Date
    10-09-2009
    Location
    KL
    MS-Off Ver
    Excel 2003
    Posts
    42

    Re: Return Latest Date from a range of data

    Thanks a lot

+ 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