+ Reply to Thread
Results 1 to 6 of 6

Formula that Removes duplicates as more date is inputed

  1. #1
    Registered User
    Join Date
    08-05-2015
    Location
    USA
    MS-Off Ver
    2013
    Posts
    6

    Formula that Removes duplicates as more date is inputed

    Hi All,

    I need a formula in excel that will automatically give me a list of dates only once and remove duplicates. I want to set the template up so that as more data in imputed after the last date, I will only have a list "once" of the dates they occurred.

    I do not want people to have to use the "Remove Duplicates" button on the top every time they put in data after the last date. I just want it to populate.

    Example of data:
    8/11/15 - apple
    8/11/15 - corn
    8/11/15 - corn
    8/14/15 - car
    8/15/15 - apple
    8/15/15 - apple

    Output from Formula:
    8/11/15
    8/14/15
    8/15/15


    Thanks!

  2. #2
    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,897

    Re: Formula that Removes duplicates as more date is inputed

    Here is some code that will delete duplicates. It is currently set to run when ordered by selecting the macro. You could take this and put it in a workbook event, perhaps Before Close or Before Save and then it would automatically.

    Please Login or Register  to view this content.
    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

  3. #3
    Registered User
    Join Date
    08-05-2015
    Location
    USA
    MS-Off Ver
    2013
    Posts
    6

    Re: Formula that Removes duplicates as more date is inputed

    Thanks Alan, is there a way to do it without putting a Macro in? I am not that familiar with them to be quite honest.

    A way by using Index/Match or Countif or Rows/Column formulas? right now I am using a pivot table which is working "ok" but not as great as I wanted. I wanted to be clean.

  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,897

    Re: Formula that Removes duplicates as more date is inputed

    Nothing that comes to mind for me. Perhaps one of the Smart Guys here has a better solution.

  5. #5
    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: Formula that Removes duplicates as more date is inputed

    Try this array entered formula in G7 of this example and fill down.

    =IF(OR($G$6:G6=MAX($E$7:$E$12)),"",MIN(IF($E$7:$E$12>G6,$E$7:$E$12)))

    If you aren’t familiar with array-entered formulas array enter means the formula must be committed by simultaneously pressing and holding down Ctrl and Shift while hitting Enter.

    You'll likely want a Dynamic Named (shrink and grow) Range to replace E7:E12 as new data is added.

    Row\Col
    E
    F
    G
    H
    7
    8/11/2015
    apple
    8/11/2015
    In G7 {=IF(OR($G$6:G6=MAX($E$7:$E$12)),"",MIN(IF($E$7:$E$12>G6,$E$7:$E$12)))}
    8
    8/11/2015
    corn
    8/14/2015
    9
    8/11/2015
    corn
    8/15/2015
    10
    8/14/2015
    car
    11
    8/15/2015
    apple
    12
    8/15/2015
    apple
    Last edited by FlameRetired; 08-18-2015 at 11:35 PM.
    Dave

  6. #6
    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: Formula that Removes duplicates as more date is inputed

    Here's another that doesn't require array entry and unlike the previous can be started in row 1.

    =IFERROR(SMALL(IF(FREQUENCY($E$7:$E$12,$E$7:$E$12),$E$7:$E$12),ROWS($1:1)),"")

+ 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. Formula doesn't read the date inputed by calendar data picker???
    By ciapul12 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-25-2014, 07:23 AM
  2. Replies: 1
    Last Post: 07-21-2013, 06:57 AM
  3. Macro that searches through column and removes specific duplicates
    By bruizer31 in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 05-17-2013, 02:39 PM
  4. [SOLVED] Removes Duplicates Except Blanks macro
    By ScabbyDog in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 03-06-2013, 09:49 AM
  5. [SOLVED] Macro removes duplicates but Charts blanks - Help needed
    By agricola in forum Excel General
    Replies: 13
    Last Post: 09-03-2012, 05:54 PM
  6. Replies: 3
    Last Post: 01-23-2012, 03:55 AM
  7. How do I merge two spreadsheets so it removes the duplicates?
    By Megan in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-10-2005, 11:06 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