+ Reply to Thread
Results 1 to 4 of 4

Formula for reading latest date

  1. #1
    Registered User
    Join Date
    08-05-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    44

    Formula for reading latest date

    Hello everyone, I am in serious need of a formula in the next few hours. I have attached an excel form to show what I need. I need a formula in column G that will replicate "keep" and "delete" like it is shown in column C.

    Rules are -
    The formula needs to read the latest date in order to show "keep" for each ID in column E.
    Each identifier will have two dates that are the same, both should be "keep", but only for the latest date.
    If an identifier has one date, like LX4, it is a "keep".

    Does anyone know of a formula like this???? Please help....thank you!!!!!
    Attached Files Attached Files

  2. #2
    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
    53,048

    Re: Formula for reading latest date

    1st, your dates are not dates, they are text that just looks like a date. Fix this 1st by highlighting the entire date range, then select Text2Columns, click next/next/ select DMY from the date dropddown/finished

    Then use this ARRAY formula, copied down...
    =IF(B2=MAX(IF($A$2:$A$17=A2,$B$2:$B$17,"")),"Keep","Delete")
    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.
    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

  3. #3
    Registered User
    Join Date
    08-05-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    44

    Re: Formula for reading latest date

    That works!!!!! THANK YOU SOOO MUUUCCCHHHH!!!!

  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
    53,048

    Re: Formula for reading latest date

    Happy to help and thanks for the feeback and kind words, always appreciated

    For future reference, please take a moment to mark the thread as "solved" towards the top of the screen- it helps keep things neat and tidy lol. I will do it for you this time

+ 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. Powerpivot - Returning latest update based on latest date
    By Kehjz in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 0
    Last Post: 08-22-2013, 02:45 PM
  2. [SOLVED] Latest date based on vlookup - mistake in formula
    By mathieuv in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 07-03-2013, 04:22 AM
  3. [SOLVED] Formula to find the latest date of a specified occurance
    By happyhorse in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-16-2013, 12:37 PM
  4. [SOLVED] Formula required to return 2 latest records in a date range
    By Backroomgeeza in forum Excel Formulas & Functions
    Replies: 21
    Last Post: 10-23-2012, 05:53 AM
  5. [SOLVED] date reading formula question
    By Todd in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-10-2006, 01:00 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