+ Reply to Thread
Results 1 to 6 of 6

Marking the latest date in a set with duplicates in a column

  1. #1
    Registered User
    Join Date
    03-26-2018
    Location
    Berlin, Germany
    MS-Off Ver
    2016
    Posts
    2

    Marking the latest date in a set with duplicates in a column

    Hi everyone! I've been banging my head against the wall trying to find a solution for this problem.

    I have a dataset with prospects and stages.

    I would like to have a marker on whether to include a row in the dataset based on an input date, but the issue is that several prospects have several dates and stages.

    I've attached a doc that shows the types of data and where I'd like to have a binary output, with two examples and an edge case where there are duplicate dates. In this file, the rightmost column of each example shows which row should be returning a 0 or a 1, based on different dates entered above.

    I would love, love, love any possible help.

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Marking the latest date in a set with duplicates in a column

    Hello and welcome to the forum. Try this in H10:

    =--(MAX(IF((F$10:F$37=F10)*(G$10:G$37<H$7),G$10:G$37))=G10) Ctrl Shift Enter

  3. #3
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Marking the latest date in a set with duplicates in a column

    Missed the duplicates part...

    This should work:

    H10 =IFNA(--(ROW()=LOOKUP(2,1/((F$10:F$37=F10)*(G$10:G$37<H$7)),ROW(G$10:G$37))),0)

  4. #4
    Registered User
    Join Date
    03-26-2018
    Location
    Berlin, Germany
    MS-Off Ver
    2016
    Posts
    2

    Re: Marking the latest date in a set with duplicates in a column

    This worked! Amazing! You saved me so much time; thanks so much.
    Last edited by AliGW; 03-27-2018 at 05:48 AM. Reason: Unnecessary quotation removed.

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,371

    Re: Marking the latest date in a set with duplicates in a column

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  6. #6
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Marking the latest date in a set with duplicates in a column

    My pleasure, thanks for the rep!

+ 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. VBA- Filter Pivot table based on latest and 2nd latest date in column
    By ziyan89 in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 12-29-2015, 11:18 AM
  2. Replies: 8
    Last Post: 04-08-2015, 10:10 PM
  3. Counting reference numbers and marking the latest date as a 1
    By blaketague in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 10-06-2014, 11:52 AM
  4. [SOLVED] Macro to locate, remove duplicates, but keep latest date
    By dawilburn67 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-10-2014, 03:34 PM
  5. Removing duplicates from a list based on the latest date
    By Krys14 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-06-2014, 10:05 AM
  6. [SOLVED] How to find Duplicates Cluster with Latest Date ?
    By Swapnil121mali in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-10-2013, 07:59 AM
  7. Remove duplicates but keep the one with latest date
    By nee2m in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-21-2012, 10:09 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