+ Reply to Thread
Results 1 to 14 of 14

Can I find duplicate phrases (not just occurrences of single words)?

  1. #1
    Registered User
    Join Date
    12-15-2011
    Location
    Virginia
    MS-Off Ver
    Excel 2010
    Posts
    18

    Can I find duplicate phrases (not just occurrences of single words)?

    Hi all,

    I have two worksheets with journal article information from two different sources and I'd like to identify duplicates. The columns I'd like to compare contain several word titles like this (I don't know what these titles will be - there are hundreds of them).

    Sheet 1 Column A
    Hospital-based strategies contributing to percutaneous coronary intervention time reduction.
    Out-of-Hospital Cardiac Arrest
    Black widow spider bite.
    Acute internal jugular venous thrombosis from dialysis catheter.
    A Phased Approach to Cardiac Arrest Resuscitation Involving Ventricular Fibrillation and Pulse less Ventricular Tachycardia
    Biochemical issues in emergency medicine: diagnostic and therapeutic considerations of selected toxic presentations.

    Sheet 2 Column B
    Electrocardiographic Patterns Mimicking ST Segment Elevation Myocardial Infarction
    Pathophysiology and Definitions of Seizures and Status Epilepticus
    The Diagnosis and Management of Seizures and Status Epilepticus in the Prehospital Setting
    A Phased Approach to Cardiac Arrest Resuscitation Involving Ventricular Fibrillation and Pulse less Ventricular Tachycardia
    Out-of-Hospital Cardiac Arrest

    I'd like Sheet 2 Column C to say "duplicate" or "not duplicate" (or any similar wording! ) if duplicate titles are detected. Is this possible for cells with multiple words?

    Thanks!!!

  2. #2
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Can I find duplicate phrases (not just occurrences of single words)?

    this is a little awkward but it seems to work on your dataset....put this in C2 and copy down


    Please Login or Register  to view this content.
    Ernest

    Please consider adding a * if I helped

    Nothing drives me crazy - I'm always close enough to walk....

  3. #3
    Registered User
    Join Date
    12-15-2011
    Location
    Virginia
    MS-Off Ver
    Excel 2010
    Posts
    18

    Re: Can I find duplicate phrases (not just occurrences of single words)?

    THANKS!!! I think it's almost working - one issue is my B sheet has a period after the titles and the other sheet doesn't. Could that make a difference? Because I notice the only two that are showing up as "duplicate" are one with a ? at the end, and one without a period at the end...

  4. #4
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,290

    Re: Can I find duplicate phrases (not just occurrences of single words)?

    =IF(COUNTIF(A2:A9;B2)>0;"Duplicate";"No Duplicate")
    or try this
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  5. #5
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Can I find duplicate phrases (not just occurrences of single words)?

    yes, that will definitely matter...

    Please Login or Register  to view this content.
    that should work

  6. #6
    Registered User
    Join Date
    12-15-2011
    Location
    Virginia
    MS-Off Ver
    Excel 2010
    Posts
    18

    Re: Can I find duplicate phrases (not just occurrences of single words)?

    Hmm, that seems to give me No Duplicate for everything, rats! I'll keep trying and making sure I'm copying in the formula correctly. I can also Find and Replace the period in Column B and that seems to make the original formula work. Thanks!!

  7. #7
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Can I find duplicate phrases (not just occurrences of single words)?

    if you could upload a sample of non-company confidential data that would help....looks like there are a few missing....or just plug away, cuz that can be fun also....

  8. #8
    Registered User
    Join Date
    12-15-2011
    Location
    Virginia
    MS-Off Ver
    Excel 2010
    Posts
    18

    Re: Can I find duplicate phrases (not just occurrences of single words)?

    Attaching a file (it's just publication data from databases like PubMed) - you'll see the columns I'm referring to are Sheet 1 Column B and Sheet 2 Column D. Easiest route might be to remove the periods, but if there's a way around it, great! It's not just these 80 or so publications as you can imagine, or I wouldn't be looking for a way to streamline this!

    Thanks - always grateful for help!!
    Attached Files Attached Files

  9. #9
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Can I find duplicate phrases (not just occurrences of single words)?

    The real problem in this file is that not all of the strings in column D have periods. There are some at the bottom that don't. That makes it a bit dicey.

    Please Login or Register  to view this content.
    Modified from Popipipo (Thanks)
    but this won't pick up the lines that have no period....

  10. #10
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Can I find duplicate phrases (not just occurrences of single words)?

    give this a try

    Please Login or Register  to view this content.

  11. #11
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,290

    Re: Can I find duplicate phrases (not just occurrences of single words)?

    =IF(COUNTIFS(Sheet1!B:B,D2&"*")>0,"Dups","No Dups")
    Or maybe this.

  12. #12
    Registered User
    Join Date
    12-15-2011
    Location
    Virginia
    MS-Off Ver
    Excel 2010
    Posts
    18

    Re: Can I find duplicate phrases (not just occurrences of single words)?

    judgeh59, I think that is working! Need to go teach a class (not on Excel, obviously) so I'm going to start with one of my clean sets (I've messed around with some of them too much) and I think this is a go. I'll wait to revisit to mark it SOLVED but I think we're there.

    Thank You Thank You Thank You - this Forum is truly amazing!

  13. #13
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Can I find duplicate phrases (not just occurrences of single words)?

    sweet.....makes sense on waiting,

    @popipipo - thanks for heading me in a different direction so I could help....

    If you feel I/We deserve an increase to our reputation, feel free to click on the star in the lower left of the thread. Remember, someday when you help somebody they may add to your rep points, and it could be me...just a thought...

  14. #14
    Registered User
    Join Date
    12-15-2011
    Location
    Virginia
    MS-Off Ver
    Excel 2010
    Posts
    18

    Re: Can I find duplicate phrases (not just occurrences of single words)?

    It's working! Wish I could give reputation score - it would be a 10+. Thank you so much!

+ 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. Highight Duplicate Phrases in a column
    By daneff in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-14-2014, 09:35 AM
  2. Finding certain words and phrases in a cell
    By JakeMann in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-30-2013, 01:25 AM
  3. Replies: 1
    Last Post: 05-07-2013, 04:16 AM
  4. Replies: 3
    Last Post: 11-28-2012, 04:00 AM
  5. Finding Duplicate Phrases in a File
    By Mis in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-28-2006, 07:40 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