+ Reply to Thread
Results 1 to 7 of 7

auto- sequence number based on another column?

  1. #1
    Registered User
    Join Date
    12-09-2010
    Location
    Houston, Texas
    MS-Off Ver
    Excel 2007/10
    Posts
    2

    auto- sequence number based on another column?

    my problem:

    column A contains a unique ID # for a well, in other columns are events for that well. Multiple events occur for each well (multiple rows with same unique ID #)

    now I need to put into column B, a sequential number counting each event for each well.

    I know I did not describe this well so let me try to show
    A B
    170570122000 1
    170570122100 1
    170570122100 2
    170570125400 1
    170570125400 2
    170570125400 3
    170570128400 1
    170570128400 2


    how to auto-generate column B?
    Last edited by maynard; 12-09-2010 at 04:08 PM.

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

    Re: auto- sequence number based on another column?

    Try

    =Countif(A$1:A1,A1)

    copied down

    where A1 is first entry to count.
    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
    12-09-2010
    Location
    Houston, Texas
    MS-Off Ver
    Excel 2007/10
    Posts
    2

    Re: auto- sequence number based on another column?

    perfect. thank you.

    so simple. I kept trying with if/then functions.

  4. #4
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: auto- sequence number based on another column?

    Or maybe

    =COUNTIF($A:$A,A1)

    Drag/Fill down

    [EDIT]
    I think I missed the point here.
    Last edited by Marcol; 12-09-2010 at 04:12 PM.
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

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

    Re: auto- sequence number based on another column?

    Marcol,

    That will repeat the same number for each entry.

    The OP is looking for a cumulative increasing in count as you go down the column.

  6. #6
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: auto- sequence number based on another column?

    Aye, I missed the point to late in noticing, editing as you posted. Thanks.

  7. #7
    Registered User
    Join Date
    07-29-2016
    Location
    USA
    MS-Off Ver
    2010
    Posts
    2

    Re: auto- sequence number based on another column?

    Quote Originally Posted by NBVC View Post
    Try

    =Countif(A$1:A1,A1)

    copied down

    where A1 is first entry to count.
    Hello - this did not work guys . I am using MS 2010.... has anything changed?

+ 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