+ Reply to Thread
Results 1 to 3 of 3

Instances minus duplicates

  1. #1
    Registered User
    Join Date
    12-09-2009
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2007
    Posts
    61

    Instances minus duplicates

    I have a column of names, several of which appear more than once.

    For example:

    John Doe
    John Doe
    Jane Dickenson
    Xavier James

    In the adjacent column I would like a numeric output of either 1 or 0. I would like 1 to appear for the first instance of a name occurrence and a 0 for any repeated instances of the name, so I can sum the number of people in the column, not the number of instances they appear. So to correspond to the four names above, in the adjacent column I would like to see:

    1
    0
    1
    1

    Thanks for the help!

    --David
    Last edited by dforte; 08-03-2010 at 12:19 PM.

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

    Re: Instances minus duplicates

    In B1 (assuming names begin in A1) dragged down
    IF(COUNTIF($A$1:$A1,A1)>1,0,1)

    Does that work for you?
    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

  3. #3
    Registered User
    Join Date
    12-09-2009
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2007
    Posts
    61

    Re: Instances minus duplicates

    That does the trick! Awesome!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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