+ Reply to Thread
Results 1 to 5 of 5

adding a column representing the sequence of duplicates in a specific column

Hybrid View

iestat adding a column representing... 07-23-2012, 07:05 PM
benishiryo Re: adding a column... 07-23-2012, 08:49 PM
MarvinP Re: adding a column... 07-23-2012, 09:10 PM
iestat Re: adding a column... 07-24-2012, 10:20 AM
Cutter Re: adding a column... 07-24-2012, 11:58 AM
  1. #1
    Registered User
    Join Date
    03-29-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    6

    adding a column representing the sequence of duplicates in a specific column

    Hi Guys!

    I have a variable (column) named ID and there are some duplicates therein. I want to add a new column showing the sequence of duplicates in ID. For example if we have three values of 10 in a line for ID consecutively, there should be 1, 2, and 3 for the new SEQ column respectively. Attached you can easily see what I mean to do. How could it be done?

    Thanks!
    Attached Files Attached Files

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: adding a column representing the sequence of duplicates in a specific column

    hi iestat. you can try this:
    =COUNTIF($A$2:A2,A2)

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

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

    Re: adding a column representing the sequence of duplicates in a specific column

    Hi iestat,

    As benishiryo suggested correctly.. here is the attached example of what he did.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  4. #4
    Registered User
    Join Date
    03-29-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: adding a column representing the sequence of duplicates in a specific column

    Thanks so much you both Guys!

  5. #5
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: adding a column representing the sequence of duplicates in a specific column

    @ iestat

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. I'll do that for you now but please keep in mind for your future threads that Rule #9 requires you to do that yourself. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    Also, as a relatively new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ 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