+ Reply to Thread
Results 1 to 11 of 11

Find duplicate names with a date >= to 6 years .

  1. #1
    Forum Contributor
    Join Date
    12-12-2017
    Location
    New Zealand
    MS-Off Ver
    Ms Office 2016
    Posts
    449

    Exclamation Find duplicate names with a date >= to 6 years .

    Hello all ,

    i have a sheet that is 487,000 rows and approx 35,000 different horse names .
    A horse with the same name may of raced in 2003 and 2019 , these two are not the same horse , only by name .

    I just need to mark in col D with a X the horses that have a date >= to 6 years difference .
    There are 3 i have changed to get my results . They are named .

    A Beautiful Knight
    A Girls Bestfriend
    A Sherry For Mary

    Horse names are in ascending order .

    Hopefully this is pretty basic . ??? .

    Thanks .
    Attached Files Attached Files
    I am grateful for all answers to my questions .
    Also i give a reputation even if not answered .

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,524

    Re: Find duplicate names with a date >= to 6 years .

    Try
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    12-12-2017
    Location
    New Zealand
    MS-Off Ver
    Ms Office 2016
    Posts
    449

    Re: Find duplicate names with a date >= to 6 years .

    Thanks jindon your macro is perfect but i made a mistake in not asking the correct question properly .

    I meant to ask if we look at cell C4 horse and date in cell B4 we have 20/10/2003 .
    Cell B6 date is 1/01/2013 , this is the >= 6 years im looking for . These would be two different horses with same name .

    A Girls Bestfriend ran between 2006 and 2009 , but theres another one with same name that ran in 2019 .

    Thanks .

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,524

    Re: Find duplicate names with a date >= to 6 years .

    Sorry, but now I don't understand which horse should be compared to which horse.

  5. #5
    Forum Contributor
    Join Date
    12-12-2017
    Location
    New Zealand
    MS-Off Ver
    Ms Office 2016
    Posts
    449

    Re: Find duplicate names with a date >= to 6 years .

    Thank you for your question .
    There is no comparison to any other horse . Each and every horse is different .

    What is happening is i have horse that raced in 2003 , example named Fred , he raced for 10 years to 2013 .
    Another horse named Fred did not race with the same name .

    A Beautiful Knight named horse ran twice in 2003 . Cells C4 and C5 .

    In New Zealand you can name your horse A Beautiful Knight again but only after so many years . This is the difference in 6 years i am looking for .

    So the horse named A Beautiful Knight did not run again until 2013 , cells B7 and C7 . making a difference of 6 years plus .

    Its about the dates when they had there 1st run on a track officially . Then another horse with same name turns up but the date is 6 years after the previous ones same name last start .

    Its like you have been here for 9 years and now another person comes in with your name , i want to separate you both but only if the second name appeared >= 6 years .

    Thanks .
    Last edited by I need excel help; 10-18-2019 at 02:13 AM.

  6. #6
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,524

    Re: Find duplicate names with a date >= to 6 years .

    So, what do you want to do?
    Row 4
    3, 2003/10/20, A Beautiful Knight
    Row 6
    5, 2013/1/1, A Beautiful Knight

    Have more than 6 year difference, so X on Row 4 and then?

  7. #7
    Forum Contributor
    Join Date
    12-12-2017
    Location
    New Zealand
    MS-Off Ver
    Ms Office 2016
    Posts
    449

    Re: Find duplicate names with a date >= to 6 years .

    No , X is on row 6 , ID 5 cell A6 .

    Its actually just taking one individual horse and looking at its last date of its last ever run or entry into my database and if then there is a gap of 6 years between the same named horse then mark with a X .

    Irrelevant of date time , i can not have any horse with the same name , that would have two dates that would be over 6 years apart .

    Meaning as slightly mentioned above , the last ever entry should not exceed >=6years to the next entry with a horse of the same name . Therefore they would imply my difference .

  8. #8
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,524

    Re: Find duplicate names with a date >= to 6 years .

    Then I need to see your correct desired result.

  9. #9
    Forum Contributor
    Join Date
    12-12-2017
    Location
    New Zealand
    MS-Off Ver
    Ms Office 2016
    Posts
    449

    Re: Find duplicate names with a date >= to 6 years .

    Yes jindon i can now see where i am confusing this . I have marked my results X in the wrong place .
    I should be getting X result with explanation in this updated sheet . The 3 x sample horses should be correct now .

    Apologies for mucking you around .
    Thanks .
    Attached Files Attached Files

  10. #10
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,524

    Re: Find duplicate names with a date >= to 6 years .

    Change to
    Please Login or Register  to view this content.

  11. #11
    Forum Contributor
    Join Date
    12-12-2017
    Location
    New Zealand
    MS-Off Ver
    Ms Office 2016
    Posts
    449

    Re: Find duplicate names with a date >= to 6 years .

    Absolutely perfect jindon . 100% .

    I knew there may of been a few dozen with the same name but i didn't expect 200 x .
    Bad stats is not good for my game so too have these accurate is great .

    Thanks again for all your help and im putting a dollar away for you every time .
    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. [SOLVED] Find Balance Calculation With Duplicate Names
    By Jhon Mustofa in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-22-2017, 05:53 AM
  2. [SOLVED] help needed to find duplicate names and addresses
    By glynncooper in forum Excel General
    Replies: 3
    Last Post: 09-24-2014, 05:32 PM
  3. index to find duplicate names
    By 2k05gt in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-13-2014, 08:36 AM
  4. Replies: 3
    Last Post: 01-07-2014, 08:29 PM
  5. Replies: 3
    Last Post: 09-23-2013, 07:28 PM
  6. [SOLVED] Need help w/formula to find to the next weekday (Tuesday) after 7 years from specific date
    By sfmauldin in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-04-2012, 08:17 PM
  7. Creating a macro to find duplicate names
    By Carter Devereaux in forum Excel General
    Replies: 1
    Last Post: 07-06-2005, 06:05 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