+ Reply to Thread
Results 1 to 4 of 4

Insert numbers in a column based on the data in another column

  1. #1
    Registered User
    Join Date
    05-29-2012
    Location
    South Carolina
    MS-Off Ver
    Excel 2010
    Posts
    4

    Insert numbers in a column based on the data in another column

    Hello -

    I am trying to find a way to insert numbers into a column based on the data in another column and am stumped. Example below:

    image1.JPG

    As you can see, I've numbered the third column to go in sequential order based on the first column - every time the number in the first column changes, the sequence starts at one again. Basically, I'd like to insert numbers in the third column in the same way all the way down (30K rows) using a formula or some excel formatting that I am not familiar with and not in the manual format of hand typing them in. Is anyone able to help? It would be much appreciated.

    Thanks,

    Ashley

  2. #2
    Valued Forum Contributor
    Join Date
    03-20-2011
    Location
    UK
    MS-Off Ver
    Excel 2007/10/16
    Posts
    840

    Re: Insert numbers in a column based on the data in another column

    Hi

    Welcome to the forum.

    Please click the attachment.
    Hope this what you looking for?
    Attached Files Attached Files
    To help you by my post? it would be nice to click on to say "Thank you".
    If you are happy with a solution to your problem?
    Click Thread Tools above your first post,
    select "Mark your thread as Solved".

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

    Re: Insert numbers in a column based on the data in another column

    In C2 and copied down:

    =IF(A2="","",COUNTIF(A$2:A2,A2))

    this is very likely the same formula provided by micope21, I haven't looked.

  4. #4
    Registered User
    Join Date
    05-29-2012
    Location
    South Carolina
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Insert numbers in a column based on the data in another column

    Thank you both - this formula works!

+ 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