+ Reply to Thread
Results 1 to 8 of 8

Adding Sequential Numbers in Column B Based on Column A Values

  1. #1
    Registered User
    Join Date
    03-17-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    6

    Adding Sequential Numbers in Column B Based on Column A Values

    Hi All,

    I'm basically trying to add a number in the column next to a list, but so that each value in the list has it's own numbering. Example:

    A 1
    B 1
    C 1
    B 2
    B 3
    C 2
    A 2
    B 4
    C 3
    A 3

    Basically the numbers on the right are numbering the occurrences of A, B and C independently.

    I tried using the MATCH function to do this, but I've only been able to get sequential numbers in column B...

    This is what I've used:
    Please Login or Register  to view this content.

    Thanks for your help!

  2. #2
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Adding Sequential Numbers in Column B Based on Column A Values

    Hi,

    Not sure about adapting this to your table structured references, but based on a list starting in A1:

    =COUNTIF(A$1:A1,A1)

    and copy down.

    Cheers
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  3. #3
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Adding Sequential Numbers in Column B Based on Column A Values

    Maybe:

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    03-17-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Adding Sequential Numbers in Column B Based on Column A Values

    Wow...thanks XOR LX! That was easy

    EDIT: Sorry John, you got beat to the punch!

  5. #5
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Adding Sequential Numbers in Column B Based on Column A Values

    You're welcome!

    You managed to get the equivalent formulas in structured references, then? I wouldn't mind knowing what they are, just out of interest. Never use Tables myself, mainly because I find the structured referencing in formulas to be more hassle than it's worth. Still, we all have to learn...

    Cheers

  6. #6
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Adding Sequential Numbers in Column B Based on Column A Values

    Quote Originally Posted by habsfan1433 View Post
    Wow...thanks XOR LX! That was easy

    EDIT: Sorry John, you got beat to the punch!
    Oh well, that's the breaks!!

  7. #7
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Adding Sequential Numbers in Column B Based on Column A Values

    "Beat to the punch"? "That's the breaks"?

    I think my "North American" English needs some work!!

  8. #8
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Adding Sequential Numbers in Column B Based on Column A Values

    Quote Originally Posted by XOR LX View Post
    "Beat to the punch"? "That's the breaks"?

    I think my "North American" English needs some work!!
    See. There's a lot more you can learn on this Forum than just Excel.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Adding a value to a column based on values in another column fro the same worksheet
    By JohnnyBoyxxx in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-18-2013, 06:31 PM
  2. Replies: 1
    Last Post: 11-05-2013, 11:22 AM
  3. Replies: 3
    Last Post: 01-10-2012, 10:41 PM
  4. Replies: 2
    Last Post: 12-20-2011, 02:26 PM
  5. adding values of a column based on another column content
    By gideong in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-16-2009, 11:53 AM

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