+ Reply to Thread
Results 1 to 10 of 10

How to Find the Max and Min Dates from Duplicate Names in a Row and Filter the Names

  1. #1
    Registered User
    Join Date
    02-05-2020
    Location
    Indonesia
    MS-Off Ver
    Microsoft Office 2019
    Posts
    20

    How to Find the Max and Min Dates from Duplicate Names in a Row and Filter the Names

    Hi all,

    I have a data as attached. I have list of repetitive names and dates for each name entry (column A and B).
    I would like to filter the duplicate names and pick up the max date and min date for each name.

    Appreciate if you could help me formulate the column D, E, and F.

    Many thanks!
    Attached Files Attached Files

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,464

    Re: How to Find the Max and Min Dates from Duplicate Names in a Row and Filter the Names

    Try:

    =SORT(UNIQUE(FILTER(B3:B33,B3:B33<>"")))
    =MINIFS(A3:A33,B3:B33,D3#)
    =MAXIFS(A3:A33,B3:B33,D3#)
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    02-05-2020
    Location
    Indonesia
    MS-Off Ver
    Microsoft Office 2019
    Posts
    20

    Re: How to Find the Max and Min Dates from Duplicate Names in a Row and Filter the Names

    Hi TMS,

    Thanks for your help. Sorry for not mentioning it earlier, I'm using Excel 2019 so the SORT and UNIQUE function is not available in this version.
    Any other suggestion on the formula?

    Thanks!

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,895

    Re: How to Find the Max and Min Dates from Duplicate Names in a Row and Filter the Names

    Here is an alternative solution using Power Query. Your profile indicates you are using O365. Please update your profile to reflect your proper version.

    Please Login or Register  to view this content.
    Power Query is a free AddIn for Excel 2010 and 2013, and is built-in functionality from Excel 2016 onwards (where it is referred to as "Get & Transform Data").

    It is a powerful yet simple way of getting, changing and using data from a broad variety of sources, creating steps which may be easily repeated and refreshed. I strongly recommend learning how to use Power Query - it's among the most powerful functionalities of Excel.

    - Follow this link to learn how to install Power Query in Excel 2010 / 2013.

    - Follow this link for an introduction to Power Query functionality.

    - Follow this link for a video which demonstrates how to use Power Query code provided.
    Attached Files Attached Files
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,464

    Re: How to Find the Max and Min Dates from Duplicate Names in a Row and Filter the Names

    I went with your profile.

    =IFERROR(LOOKUP(2,1/(COUNTIF($D$2:D2,B$3:INDEX(B:B,MATCH("zzz",B:B,1)))=0),B$3:B$33),"")
    =IF(D3="","",MINIFS($A$3:$A$33,$B$3:$B$33,D3))
    =IF(D3="","",MAXIFS($A$3:$A$33,$B$3:$B$33,D3))

    All copied down.

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,980

    Re: How to Find the Max and Min Dates from Duplicate Names in a Row and Filter the Names

    I'm using Excel 2019
    Then you need to amend your profile, which says MS365! Misleading information = time wasted for your helpers.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  7. #7
    Registered User
    Join Date
    02-05-2020
    Location
    Indonesia
    MS-Off Ver
    Microsoft Office 2019
    Posts
    20

    Re: How to Find the Max and Min Dates from Duplicate Names in a Row and Filter the Names

    Hi Alansidman and TMS,

    Many thanks for your help and will give it a try!

    Hi AliGW,

    Sorry for missing to edit my profile. I've changed it to Office 2019 to avoid confusion.
    Thanks for highlighting this to me

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,980

    Re: How to Find the Max and Min Dates from Duplicate Names in a Row and Filter the Names

    That's great - thanks.

  9. #9
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: How to Find the Max and Min Dates from Duplicate Names in a Row and Filter the Names

    In E2, F2, G2


    =IFERROR(INDEX($B$1:$B$13,AGGREGATE(15,6,ROW($B$3:$B$13)/(ISERROR(MATCH($B$3:$B$13,$D$2:$D2,0))*($B$3:$B$33<>"")),1)),"")

    =IF($D3="","",MINIFS($A$3:$A$33,$B$3:$B$33,$D3))

    =IF($D3="","",MAXIFS($A$3:$A$33,$B$3:$B$33,$D3))

    All copied down
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  10. #10
    Registered User
    Join Date
    02-05-2020
    Location
    Indonesia
    MS-Off Ver
    Microsoft Office 2019
    Posts
    20

    Re: How to Find the Max and Min Dates from Duplicate Names in a Row and Filter the Names

    Hi kvsrinivasamurthy,

    I have
    Thanks for your help, appreciated.

+ 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] Populate Calendar (names/Dates) with Names and Dates ranges as data
    By picsou in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-24-2019, 10:37 PM
  2. Replies: 7
    Last Post: 12-23-2015, 07:43 AM
  3. Need to copy store names from sheet1 to sheet3 and remove duplicate names
    By aleanboy in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-21-2014, 08:47 AM
  4. Replies: 1
    Last Post: 10-06-2014, 09:44 AM
  5. List of unique and duplicate names that correspond with dates
    By corbintx in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-09-2012, 01:24 PM
  6. Replies: 11
    Last Post: 10-21-2012, 01:40 AM
  7. [SOLVED] I need to exclude duplicate patient names for dates of service is.
    By Shannon in forum Excel General
    Replies: 2
    Last Post: 04-10-2005, 10:06 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