+ Reply to Thread
Results 1 to 3 of 3

Find a value with an ID and max date

  1. #1
    Registered User
    Join Date
    09-11-2019
    Location
    Mexico
    MS-Off Ver
    Office 2016
    Posts
    1

    Unhappy Find a value with an ID and max date

    Hi guys, I am looking for a way to get the kilometers of a unit with its last registration date, for example if I look for the T92 unit I want to get 1200 instead of 1000, thanks!

    Unit Date KM
    T92 24/10/2019 1000
    H10 24/10/2019 86
    004 25/10/2019 47
    H11 26/10/2019 13
    T92 28/10/2019 1200

  2. #2
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: Find a value with an ID and max date

    Try:=LOOKUP(2,1/($A$1:$A$5="T92")/($B$1:$B$5=MAX($B$1:$B$5)),$C$1:$C$5)
    Click the * to say thanks.

  3. #3
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,062

    Re: Find a value with an ID and max date

    Or

    =AGGREGATE(14,6,C1:C5*(A1:A5="T92"),1)
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

+ 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. [SOLVED] Code doesn't find a date if it is a formula, but does find hard coded date
    By ABSTRAKTUS in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 02-14-2018, 06:25 AM
  2. [SOLVED] Find the Exact date, Nearest old and new date for the given input Letter) and date
    By thilag in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-17-2015, 05:13 AM
  3. Replies: 9
    Last Post: 12-21-2014, 06:29 PM
  4. [SOLVED] Cells.Find xlDate does not find first date in sheet unless date format is dd/mm/yyyy
    By AtTheControls in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-07-2013, 12:35 PM
  5. [SOLVED] Find the date and copy the values from the colum of the date find and paste to other sheet
    By nizzcmzph in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 02-20-2013, 10:03 AM
  6. Replies: 2
    Last Post: 01-04-2012, 09:15 AM
  7. Replies: 2
    Last Post: 01-13-2011, 01:02 PM

Tags for this Thread

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