Results 1 to 4 of 4

Thread: Find Duplicate Values In A Column And Identify Position In Next Column

  1. #1
    Junior Member
    Join Date
    Feb 2015
    Posts
    2
    Rep Power
    0

    Find Duplicate Values In A Column And Identify Position In Next Column

    Thank you for your assistance. It is greatly appreciated.

    I have a spreadsheet with over 6,000 items and many are string duplicates that I need to identify and label

    Example:

    abc dup 1
    abc dup 1 Unique ID
    123 dup 2
    123 dup 2
    456 non dup
    678 non dup
    890 non dup

    cycling through all cells in a particular column.

  2. #2
    Administrator Excel Fox's Avatar
    Join Date
    Mar 2011
    Posts
    1,402
    Rep Power
    10
    Hi soltec. Welcome to the ExcelFox community.

    Could a formula based solution work (one solution provided), or would you need to do this using VBA?
    Attached Files Attached Files
    A dream is not something you see when you are asleep, but something you strive for when you are awake.

    It's usually a bad idea to say that something can't be done.

    The difference between dream and aim, is that one requires soundless sleep to see and the other requires sleepless efforts to achieve

    Join us at Facebook

  3. #3
    Junior Member
    Join Date
    Feb 2015
    Posts
    2
    Rep Power
    0
    Quote Originally Posted by Excel Fox View Post
    Hi soltec. Welcome to the ExcelFox community.

    Could a formula based solution work (one solution provided), or would you need to do this using VBA?
    VLookup would do what is needed I believe.

  4. #4
    Junior Member
    Join Date
    Feb 2015
    Posts
    1
    Rep Power
    0
    Data Output
    abc Dup1
    abc Dup1
    123 Dup2
    123 Dup2
    456 Non Dup
    678 Non Dup
    890 Non Dup
    886 Non Dup
    123 Dup2

    Apply below formula in B column which is output column with CSE

    =IF(COUNTIF($A$2:$A$10,A2)>1,IF(COUNTIF($A$2:A2,A2 )=1,"Dup"&MAX(IFERROR(SUBSTITUTE($B$1:B1,"Dup","") *1,0))+1,"Dup"&MAX(IFERROR(--SUBSTITUTE("Dup"&$B$1:B1,"Dup",""),0))),"Non Dup")

    apply formula with Ctrl+Shift+Enter in b2 and drag down

Similar Threads

  1. Find Duplicate Values Across Sheets Using Formula
    By mahmoud-lee in forum Excel Help
    Replies: 14
    Last Post: 06-22-2013, 02:52 PM
  2. Replies: 6
    Last Post: 05-16-2013, 09:56 AM
  3. Replies: 4
    Last Post: 04-05-2013, 12:08 PM
  4. Find duplicate values
    By excel_learner in forum Excel Help
    Replies: 4
    Last Post: 10-24-2011, 12:10 PM
  5. Formula To Identify A Cell Has Duplicate Words
    By Admin in forum Excel and VBA Tips and Tricks
    Replies: 0
    Last Post: 07-03-2011, 05:52 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •