+ Reply to Thread
Results 1 to 4 of 4

Auto numbering for different names

  1. #1
    Registered User
    Join Date
    03-24-2009
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    25

    Auto numbering for different names

    hi all i need help on this.

    eg: i have to insert numbers in column a and the names in column b.

    wht i require is :

    andrew 1
    andrew 2
    chris 1
    chris 2
    daniel 1
    daniel 2
    daniel 3

    anyone can help?

  2. #2
    Forum Contributor vikas.bhandari's Avatar
    Join Date
    04-07-2006
    Location
    Delhi, India
    MS-Off Ver
    Office 2007 and 2010
    Posts
    303

    Re: Auto numbering for different names

    Quote Originally Posted by leeaw View Post
    hi all i need help on this.

    eg: i have to insert numbers in column a and the names in column b.

    wht i require is :

    andrew 1
    andrew 2
    chris 1
    chris 2
    daniel 1
    daniel 2
    daniel 3

    anyone can help?
    Your clarification is not much of help. Can you please explain what exactly you are looking for?

    Thanks!
    Vikas Bhandari

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Auto numbering for different names

    If we assume names are listed in ascending order as indicated, first ensure first name appears in row 2, let's assume names are in A2 onwards (your example does not correspond to your narrative)

    B2: =IF(A2<>A1,1,B1+1)
    copied down

    Without inserting a row before first name (if first name must be in 1) you would use COUNTIF but this could get expensive depending on how many names you have listed...

    B1: =COUNTIF($A$1:$A1,$A1)
    copied down

    I would opt for the former approach.

  4. #4
    Registered User
    Join Date
    03-24-2009
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    25

    Smile Re: Auto numbering for different names

    thanks dude it 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