+ Reply to Thread
Results 1 to 5 of 5

Identifying only the Duplicate using a formula.

  1. #1
    Registered User
    Join Date
    10-23-2014
    Location
    Provo, Utah
    MS-Off Ver
    Office 365
    Posts
    1

    Identifying only the Duplicate using a formula.

    I am trying to write a formula to detect all duplicates on the list of Column A, so that if an item appears on the list for the first time in Column A, column B shows "N/A" but if it appears on the list of Column A a SECOND time, then column B will list the item as shown in column A.

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Identifying only the Duplicate using a formula.

    Hi jrc and welcome to the forum,

    It sounds like you need a helper column that counts the number of times something appears in Column A. See the attached with formulas to see if this solves your problem.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,734

    Re: Identifying only the Duplicate using a formula.

    see if this works for you

    =IF( COUNTIF(A:A, A1) =1, "N/A", IF(COUNTIF(A:A, A1)>1, A1, ""))

    OR if you only want the 2nd time to show

    =IF( COUNTIF(A:A, A1) =1, "N/A", IF(COUNTIF(A:A, A1)=2, A1, ""))

    and not the 3rd or more times
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  4. #4
    Forum Expert
    Join Date
    09-11-2014
    Location
    Washington, DC
    MS-Off Ver
    2016
    Posts
    1,907

    Re: Identifying only the Duplicate using a formula.

    A different approach from above, this will return the last instance that the value appeared (if at all) within Column A.

    Input into B1, next to the start of the data in A1:

    Please Login or Register  to view this content.
    Spread the love, add to the Rep

    "None of us are as smart as all of us."

  5. #5
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Identifying only the Duplicate using a formula.

    ORRR, if you only want duplicates beyond the first to show, in B2 copied down
    =IF(COUNTIF($A$2:$A2,A2)>1, A2, "N/A")
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

+ 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. Identifying duplicate Characters
    By AppSupportKarl in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-20-2012, 01:00 PM
  2. Identifying Range of Different Duplicate Values
    By stonegwene in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-05-2011, 02:05 PM
  3. Excel 2007 : Identifying Duplicate Records
    By markdtp in forum Excel General
    Replies: 1
    Last Post: 03-04-2011, 09:18 PM
  4. Identifying duplicate records
    By cobe170781 in forum Excel General
    Replies: 1
    Last Post: 09-18-2009, 06:29 PM
  5. Identifying Duplicate Entries
    By jroberts in forum Excel General
    Replies: 5
    Last Post: 01-13-2007, 04:33 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