+ Reply to Thread
Results 1 to 4 of 4

Use formula to identify duplicates

  1. #1
    Registered User
    Join Date
    04-22-2009
    Location
    Baltimore, Maryland
    MS-Off Ver
    Excel 2003
    Posts
    5

    Question Use formula to identify duplicates

    I have a large list of data.
    There is a column that contains a set of numbers that appear twice.
    I wanted to give the first occurence of the number a 1 and the second occurence of the number a 2 and then I could easily sort the data and delete all the second occurences of the name by deleting anything with a 2 value.

    For example

    Mary Smith 1
    John Smith 1
    Cindy Apple 2
    Margaret Apple 2
    Bob Hope 3
    Mike Hope 3

    I'd like to create a row that would identify Mary Cindy and Bob with a 1 and John Margaret and Mike with a 2

    Thanks
    L

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Use formula to identify duplicates

    =countif($B$2:$B2,B2) copied down

    assuming the items are in separate columns and column of interest starts at B2
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    09-05-2009
    Location
    Mumbai
    MS-Off Ver
    Excel 2007
    Posts
    55

    Re: Use formula to identify duplicates

    try this

    =IF(B1=B2,"false",A2)

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Use formula to identify duplicates

    Your post does not comply with Rule 8 of our Forum RULES. Cross-posting is when you post the same question in other forums on the web. You'll find people are disinclined to respond to cross-posts because they may be wasting their time solving a problem that has been solved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser)to the cross-post. Expect cross-posts without a link to be closed a message will be posted by the moderator explaining why. We are here to help so help us help you!

    http://www.mrexcel.com/forum/showthr...=415268&page=2

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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