+ Reply to Thread
Results 1 to 5 of 5

Formula to pick-up most recent date against Reference Code

  1. #1
    Registered User
    Join Date
    08-01-2019
    Location
    London
    MS-Off Ver
    2016
    Posts
    31

    Formula to pick-up most recent date against Reference Code

    Hi all,

    I'm hoping you can help me with an issue I've come across. I'm currently creating a document index, the objective of which is to trace how documents have been updated over time, specifically the costs detailed in each document (see Index Database tab in the attached document). Each document has a specific reference code that helps identify it.

    I have also created a Summary tab, which is meant to show the data for each latest update in the Index Database.

    What I'm hoping you can help me with is a formula that can be added to the "Last Updated" column (B), which picks up the most recent date in the Index Database against the corresponding Reference number in column C. Any ideas?

    I hope that's clear, but happy to elaborate further should there be any confusion or questions.

    As always, many thanks in advance for all your help and I look forward to hearing from you!

    Kind regards,
    G.
    Attached Files Attached Files

  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: Formula to pick-up most recent date against Reference Code

    Hi,

    The following array formula in cell B3 should do as you ask

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Confirm with CTRL, SHIFT and ENTER.

    Remember to change the format to 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
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,726

    Re: Formula to pick-up most recent date against Reference Code

    You can use this array* formula in cell B3 of the Summary sheet, which should be formatted as a Date in the style you prefer:

    =MAX(IF(Table1[Ref]=C3,Table1[Document Date]))

    *Note that an array formula needs to be confirmed using the key combination Ctrl-Shift-Enter (CSE), rather than the usual Enter.

    The formula should copy itself down automatically.

    Hope this helps.

    Pete

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Formula to pick-up most recent date against Reference Code

    Hi,

    In B3 formatted as a date and copied down

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    [/FORMULA]
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  5. #5
    Registered User
    Join Date
    08-01-2019
    Location
    London
    MS-Off Ver
    2016
    Posts
    31

    Re: Formula to pick-up most recent date against Reference Code

    Thank you @sweep, @Pete_UK, and @Richard Buttrey! That did the trick =)

    Regards,
    G.

+ 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. Can't pick up cell reference result from another formula into a new formula
    By gotaquestion1 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-21-2020, 02:56 AM
  2. [SOLVED] formula to lookup most recent date
    By a2424 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-23-2014, 09:22 PM
  3. Get VLOOKUP to pick most recent date from a selection
    By methuselah90 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-29-2014, 06:58 PM
  4. Look up most recent date - difficult formula!
    By Leopold2000 in forum Excel General
    Replies: 6
    Last Post: 06-12-2013, 02:46 PM
  5. VBA Code for Auto filtering the most recent date
    By jgbug18 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-05-2012, 06:47 PM
  6. Formula for Most Recent Date
    By scottnshelly in forum Excel General
    Replies: 2
    Last Post: 12-23-2009, 01:04 PM
  7. Formula for Most Recent Date
    By karen55 in forum Excel General
    Replies: 1
    Last Post: 06-25-2009, 11:50 AM

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