+ Reply to Thread
Results 1 to 4 of 4

‘VLOOKUP’ Formula To Calculate Latest Date Associated To ‘Parent’ Record

  1. #1
    Forum Contributor
    Join Date
    02-09-2004
    Location
    Cardiff - Wales - UK
    MS-Off Ver
    2013
    Posts
    475

    Question ‘VLOOKUP’ Formula To Calculate Latest Date Associated To ‘Parent’ Record

    Hi,

    can anyone please advise me of the ‘VLOOKUP’ formula I require to find the latest date for each ‘Parent’ record.

    Basically, I have a worksheet with data in the ‘Parent’ record from columns ‘A’ to ‘AU’, however, in column ‘T’ (Note) which is text and column ‘U’ (Note Creation Date) which is a date format (dd-mm-yyyy) where it contains a list of notes associated to the parent record and the date it was created.

    In the attached file (Example data.xlsx' the ‘Parent’ records are in rows 2. 61. 68 and 86 and can numerous ‘Child’ records associated i.e. zero entries, 1 enrty, or numerous entries

    What I require (I think) is a ‘VLOOKUP ‘formula to calculate the latest date for the note and the note itself for each ‘Parent’ record and enter this data on the ‘Parent’ row in column ‘V’ (Latest Note) and Column ‘W’ (Latest Date)

    Any assistance would be greatly appreciated

    Many thanks in advance

    Regards

    Rob


    N.B. Excel Version 2010
    Attached Files Attached Files
    Rob

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,704

    Re: ‘VLOOKUP’ Formula To Calculate Latest Date Associated To ‘Parent’ Record

    I see that you have coloured the rows that you refer to, but what is there in the data that determines that a particular row is a parent record? I can see the ID numbers, but these are all different (different parents ?). How would the child records differ from the parent records?

    Pete

  3. #3
    Forum Contributor
    Join Date
    02-09-2004
    Location
    Cardiff - Wales - UK
    MS-Off Ver
    2013
    Posts
    475

    Re: ‘VLOOKUP’ Formula To Calculate Latest Date Associated To ‘Parent’ Record

    Pete, the 'Parent' row will always be the row with data in columns 'A' to 'U' with the subsequent associated 'Child' records only having data in the columns 'T' and 'U'.

    The 'ID' in column 'A' is a unique number, so the rows of 'Child' records will be directly underneath the 'Parent' record until the next 'ID' is reached in column 'A'

    Hope this helps


    Regards


    Rob

  4. #4
    Forum Contributor
    Join Date
    02-09-2004
    Location
    Cardiff - Wales - UK
    MS-Off Ver
    2013
    Posts
    475

    Re: ‘VLOOKUP’ Formula To Calculate Latest Date Associated To ‘Parent’ Record

    Hi all,

    I’ve managed a workaround for my problem (see attached workbook ‘Example Data Version 2 on the ‘Updated’ tab) , whereby I have copied all the data down for each ‘Parent’ to the associated ‘Child’ rows record i.e. columns ‘A’ to ‘S’ and then used a formula in column ‘V’ (Helper) to calculate the newest record (using MAX) with formulas in column ‘W’ (latest Note) and column ‘X’ (Latest Note). What I will have to do then is to filter on column ‘V’ for ‘Newest’ and Bingo I have the data I need.

    My problem now is I have to manually copy the data for each ‘Child’ record down for each ‘Parent’ record in order for the formula to work.

    Can anyone help me please with a macro/VNA code required to copy the data down for each ‘Child’ record i.e. columns ‘A’ to ‘S’

    Any assistance in this matter would be greatly appreciated

    Regards

    Rob
    Attached Files Attached Files

+ 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] Calculate sum based on partial text match and latest date
    By moondog1023 in forum Excel Formulas & Functions
    Replies: 21
    Last Post: 06-20-2014, 04:02 PM
  2. [SOLVED] select latest effective record by creation date field
    By Natasha Z in forum Excel General
    Replies: 9
    Last Post: 04-10-2014, 09:16 PM
  3. [SOLVED] formula or vba help on vlookup to get latest date from multiple lookup value of SO's
    By breadwinner in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-16-2014, 09:48 AM
  4. [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
  5. Lookup up latest date record in a list
    By tonyp17 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-27-2011, 10:54 AM
  6. Replies: 0
    Last Post: 06-03-2011, 08:45 AM
  7. Finding the newest / latest date in each record
    By Statsman in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-01-2009, 07:40 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