+ Reply to Thread
Results 1 to 5 of 5

Formula to generate a number sequence that restarts for every change in column

  1. #1
    Registered User
    Join Date
    06-18-2011
    Location
    Calif.
    MS-Off Ver
    Excel 2010
    Posts
    2

    Formula to generate a number sequence that restarts for every change in column

    I need some assistance in writing a formula that will provide the sequence in column "A" that restarts for every change in column "B". This is probably very simple, but I just haven't been able to figure it out. Thank you very much for your help!

    A B
    1 JACK
    2 JACK
    3 JACK
    4 JACK
    1 MARY
    2 MARY
    3 MARY
    1 PAUL
    2 PAUL

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Formula to generate a number sequence that restarts for every change in column

    Hello & Welcome to the Board,

    Give this a try in A1 copied down...

    =COUNTIF($B$1:B1,B1)
    HTH
    Regards, Jeff

  3. #3
    Registered User
    Join Date
    06-18-2011
    Location
    Calif.
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Formula to generate a number sequence that restarts for every change in column

    Works perfectly! Thank you very much!

  4. #4
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Formula to generate a number sequence that restarts for every change in column

    You are most welcome

    Please do not forget to mark the thread as solved if satisfied with the answer provided.

  5. #5
    Registered User
    Join Date
    01-20-2016
    Location
    https://t.me/pump_upp
    MS-Off Ver
    Microsoft Excel 2010
    Posts
    2

    Re: Formula to generate a number sequence that restarts for every change in column

    Thank you so much! You literally reduced my workload by a lot.

+ 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