+ Reply to Thread
Results 1 to 3 of 3

Instances - Duplicates

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

    Instances - Duplicates

    I received help with a formula to determine the following:

    If in column a there are a list of names, of which many are duplicated, column B will create a numeric output of either 1 or 0. 1 being the first instance of a name and 0 being every instance thereafter. The formula looked like this:

    =IF(COUNTIF($A$1:$A1,A1)>1,0,1)

    This works well. However, I have several lists of names still within the same columns and on the same sheet, but divided into different sections by headings.

    The above formula works well in calculating the first time a name appears in each individual list, but I would like a formula for a single cell at the end of several sections of names to tell me the same thing while accounting for the possibility of duplicates between sections as well.

    I realize I could run this same formula down the side of the sheet, but it would be nice to have a neat formula for a single cell. Any suggestions?
    Last edited by dforte; 08-04-2010 at 06:39 PM.

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Instances - Duplicates

    maybe =IF(COUNTIF($A$1:$A1,A1)=COUNTIF($a:$a,A1),1,0) other than that post a sample workbook
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

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

    Re: Instances - Duplicates

    I think I've decided to use that same formula I had initially and cut and paste it from section to section.. that seems to work well. Thanks anyway!

+ 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