+ Reply to Thread
Results 1 to 4 of 4

Return Newest Date

  1. #1
    Registered User
    Join Date
    02-23-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    50

    Return Newest Date

    Hi
    I have a table (approx 30,000 rows) which has several columns. Column A is a Unique = country & ID e.g. UK_123, then next to this I have a date column. I have have multiple different dates associated with each unique and so I need a formula to look up all dates associated with that unique and return or indicate the newest date i.e. newest date = "1" and every other date = "0". Can anyone help me please?

    Thanks

    Jen

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Return Newest Date

    With your date in Column B use in Row 1

    =--(B1=MAX(INDEX(($A$1:$A$30000=A1)*$B$1:$B$30000,0)))

    Copy down..adjust ranges accordingly
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Registered User
    Join Date
    02-23-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    50

    Re: Return Newest Date

    Thanks, it worked a treat!

    Could I ask if you could explain the formula to me please,for example, what does the "--" at the beginning do?
    Cheers

    Jen

  4. #4
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Return Newest Date

    The -- only converts the result (TRUE or FALSE) to binary form

    TRUE is 1 and FALSE is 0.

+ 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. Arranging Pivot table data from Newest to oldest to Newest does not appear
    By paradise2sr in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-08-2014, 06:53 AM
  2. [SOLVED] lesson grades (from oldest date to newest date)
    By aaaaa34 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-04-2014, 08:40 AM
  3. [SOLVED] vba code to find Duplicate Values and Newest date(Max) date in the Corresponding Column(ce
    By Pradu in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-10-2013, 05:20 AM
  4. Returning BLANK date PRIORITY before Newest/Latest Date
    By dluhut in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 07-11-2013, 04:43 PM
  5. Delete Newest (by date) Duplicates
    By joshtreee in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-21-2008, 10:25 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