+ Reply to Thread
Results 1 to 3 of 3

Specific filter to remove rows based on comparison between each other

  1. #1
    Registered User
    Join Date
    12-09-2022
    Location
    Romania
    MS-Off Ver
    2016
    Posts
    2

    Specific filter to remove rows based on comparison between each other

    Hi all,

    I am in a situation where the data I export from mongo is impossible to filter based on the very latest recorded input.

    I attached a sample file of how the data would look like.

    I therefore have a situation where:

    ID 1234 has three rows, each with a different input value and a different change date. Only the row with the most recent change date compared to current date is relevant and needed. I therefore need either:

    1) to have all other rows removed and only the one with the most recent change date kept;
    2) have the row with the most recent change date created on a different sheet.

    In my mind the explanation of the process would be :

    1) go through each row to identify those with the same ID;
    2) between those with the same ID, check the change date field value and only keep the one which, compared to all other rows with the same ID, has the most recent changedate compare to current date.

    I understand this might not be easy but I'm open to any solution, if any help could be provided please.
    Attached Files Attached Files

  2. #2
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Specific filter to remove rows based on comparison between each other

    Hello AtOfficeNeedHelp. Welcome to the forum.

    In the attached find in Sheet1 where I have copied all the IDs and applied the remove duplicates feature and today's date in E1.
    Then in cell B2 this formula copied down and across.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    P.S. you will probably need to reformat for dates.

    Yields this:


    A
    B
    C
    D
    E
    1
    ID
    Changedate
    Input
    Today's date →
    12/9/2022
    2
    1234
    12/1/2022
    65
    3
    abcd
    1/1/2022
    12


    Does this do what you want?
    Dave

  3. #3
    Registered User
    Join Date
    12-09-2022
    Location
    Romania
    MS-Off Ver
    2016
    Posts
    2

    Re: Specific filter to remove rows based on comparison between each other

    Think this is it, will check it out thank you!

+ 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. Replies: 8
    Last Post: 01-01-2020, 11:33 PM
  2. Power Query - Remove Specific Duplicate Rows (Based on sort criteria)
    By kersplash in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-22-2019, 03:30 AM
  3. [SOLVED] Filter rows based on containing specific word
    By tta.akmal in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-11-2019, 11:43 AM
  4. Syntax for filldown based on another rows length and specific filter
    By TheN in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-05-2016, 11:23 AM
  5. Remove Duplicate Rows based on Specific Values
    By zeanzi in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-31-2013, 08:01 PM
  6. need to filter rows in "activity to jts comparison
    By mmcoordes in forum Excel General
    Replies: 1
    Last Post: 06-08-2013, 09:39 AM
  7. Remove rows based on specific condition
    By shinichi_nguyen in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-27-2012, 02:30 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