+ Reply to Thread
Results 1 to 4 of 4

Excel Numbering using existing column data

  1. #1
    Registered User
    Join Date
    04-18-2012
    Location
    Rochester, NY
    MS-Off Ver
    Excel 2010
    Posts
    1

    Excel Numbering using existing column data

    Hi all,
    Using an already existing spreadsheet with 10,000 columns of data.
    In the first column it has the names of items but multiple times (ex: item1, item1, item2, item2, item2, item3, item3, item3, item3, etc.)
    I would like a way to create the sequential numbers in another column. In regards to the example.
    Item1 returns 1
    Item1 returns 2
    Item2 returns 1
    Item2 returns 2
    Item2 returns 3
    Item3 returns 1
    Item3 returns 2
    Item3 returns 3
    Item3 returns 4

    Is there a route to take to do this auto-numbering per the column data? Please message me with any questions your assistance is much appreciated!

    Thanks

  2. #2
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    Office 2021
    Posts
    2,237

    Re: Excel Numbering using existing column data

    Hello,welcome to the forum.

    You can use COUNTIF. The tricky part is lock the first cell by $ sign.

    Consider your data starts A2 to down. So in B2 enter

    =COUNTIF(A$2:A2,A2)

    then copy B2 paste down as needed.
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

  3. #3
    Valued Forum Contributor
    Join Date
    06-16-2006
    Location
    Sydney, Australia
    MS-Off Ver
    2013 64bit
    Posts
    1,394

    Re: Excel Numbering using existing column data

    Do you mean 10,000 Rows of data?

    Here is a macro that will do what you want. It assumes that your data is in Column A and that Column B is blank.

    Please Login or Register  to view this content.

  4. #4
    Valued Forum Contributor
    Join Date
    06-16-2006
    Location
    Sydney, Australia
    MS-Off Ver
    2013 64bit
    Posts
    1,394

    Re: Excel Numbering using existing column data

    Quote Originally Posted by Haseeb A View Post

    =COUNTIF(A$2:A2,A2)
    Very nice

    (plus these extra characters required to allow me to make this post)

+ 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