+ Reply to Thread
Results 1 to 5 of 5

Assign a Value to a Duplicate Entry Within the Same Column

  1. #1
    Scott C.
    Guest

    Assign a Value to a Duplicate Entry Within the Same Column

    Within a single worksheet I have thousand-plus rows of data and one of the
    columns within that worksheet I have a series of numbers. After I've
    identified the duplicates within that column I want to assign a value based
    on the first time that number shows up (in this case by I'v sorted by date),
    so the first duplicate would have a value like "1." I then want to assign
    the next duplicate(s) sequentially (2, 3, 4, etc.) When finished I would
    want a new column of data that would have far more "1s" than "2s," more "2s"
    than "3s," etc.

    How do I accomplish this?

  2. #2
    B. R.Ramachandran
    Guest

    RE: Assign a Value to a Duplicate Entry Within the Same Column

    Hi,

    Supposing Column D has those numbers (say, D2:D2001, type in the following
    formula in E2

    =COUNTIF($D$2:$D$2001,D2)-COUNTIF(D2:$D$2001,D2)+1

    and fill-in the formula down the column.

    Regards,
    B. R. Ramachandran


    "Scott C." wrote:

    > Within a single worksheet I have thousand-plus rows of data and one of the
    > columns within that worksheet I have a series of numbers. After I've
    > identified the duplicates within that column I want to assign a value based
    > on the first time that number shows up (in this case by I'v sorted by date),
    > so the first duplicate would have a value like "1." I then want to assign
    > the next duplicate(s) sequentially (2, 3, 4, etc.) When finished I would
    > want a new column of data that would have far more "1s" than "2s," more "2s"
    > than "3s," etc.
    >
    > How do I accomplish this?


  3. #3
    B. R.Ramachandran
    Guest

    RE: Assign a Value to a Duplicate Entry Within the Same Column

    Hi,

    Here is a simpler formula than the one I suggested in my previous reply (I
    am embarrassed about the earlier round-about formula!)

    =COUNTIF($D$2:D2,D2)

    Regards,
    B. R. Ramachandran

    "Scott C." wrote:

    > Within a single worksheet I have thousand-plus rows of data and one of the
    > columns within that worksheet I have a series of numbers. After I've
    > identified the duplicates within that column I want to assign a value based
    > on the first time that number shows up (in this case by I'v sorted by date),
    > so the first duplicate would have a value like "1." I then want to assign
    > the next duplicate(s) sequentially (2, 3, 4, etc.) When finished I would
    > want a new column of data that would have far more "1s" than "2s," more "2s"
    > than "3s," etc.
    >
    > How do I accomplish this?


  4. #4
    Scott C.
    Guest

    RE: Assign a Value to a Duplicate Entry Within the Same Column

    Worked liked a charm! Thanks B. R.Ramachandran!

    "B. R.Ramachandran" wrote:

    > Hi,
    >
    > Here is a simpler formula than the one I suggested in my previous reply (I
    > am embarrassed about the earlier round-about formula!)
    >
    > =COUNTIF($D$2:D2,D2)
    >
    > Regards,
    > B. R. Ramachandran
    >
    > "Scott C." wrote:
    >
    > > Within a single worksheet I have thousand-plus rows of data and one of the
    > > columns within that worksheet I have a series of numbers. After I've
    > > identified the duplicates within that column I want to assign a value based
    > > on the first time that number shows up (in this case by I'v sorted by date),
    > > so the first duplicate would have a value like "1." I then want to assign
    > > the next duplicate(s) sequentially (2, 3, 4, etc.) When finished I would
    > > want a new column of data that would have far more "1s" than "2s," more "2s"
    > > than "3s," etc.
    > >
    > > How do I accomplish this?


  5. #5
    Registered User
    Join Date
    12-09-2010
    Location
    North West
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Assign a Value to a Duplicate Entry Within the Same Column

    just want to say i'd been searching for this EVERYWHERE and couldn't find it so a really big thank you!!!!!!

+ 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