+ Reply to Thread
Results 1 to 3 of 3

adding increasing numbers in column to existing text

  1. #1
    Registered User
    Join Date
    09-12-2006
    Posts
    1

    adding increasing numbers in column to existing text

    I am trying to add increasing numbers to existing column of text with hundreds of names:

    Example:

    baco
    bake
    boes

    I want it to look like this:

    baco01
    bake02
    boes03

    Thanks for your help. Diane

  2. #2
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    You could use a helper column with the formula

    =A1&TEXT(ROW()+1,"000")

    which, of course, produces baco001, however you said that you had 'hundreds' so two digits might not be useful, but that is your choice.

    to restrict to 2 digits use:

    =A1&TEXT(MOD(ROW()+1,100),"00")

    Vary the Row()+1 to start at the number desired.

    Once generated copy and Paste Special = Values back over the Names column and remove the helper column.


    hth
    ---

    Quote Originally Posted by dfarris
    I am trying to add increasing numbers to existing column of text with hundreds of names:

    Example:

    baco
    bake
    boes

    I want it to look like this:

    baco01
    bake02
    boes03

    Thanks for your help. Diane

  3. #3
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Further amended to:

    To generate numbers 1 to 99, generate numbers with
    =MOD(ROW()-1,99)+1

    If you start at row 2 (wanting number 1) then
    =MOD(ROW()-1,99)
    etc

    ---

    Quote Originally Posted by Bryan Hessey
    You could use a helper column with the formula

    =A1&TEXT(ROW()+1,"000")

    which, of course, produces baco001, however you said that you had 'hundreds' so two digits might not be useful, but that is your choice.

    to restrict to 2 digits use:

    =A1&TEXT(MOD(ROW()+1,100),"00")

    Vary the Row()+1 to start at the number desired.

    Once generated copy and Paste Special = Values back over the Names column and remove the helper column.


    hth
    ---

+ 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