+ Reply to Thread
Results 1 to 7 of 7

incriments text + number

Hybrid View

  1. #1
    Registered User
    Join Date
    01-18-2011
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    2

    incriments text + number

    Hi, first post.

    Like to be able to incriment by 1 a cell that also contains text

    A1=XB3001

    B1=XB3002

    TIA
    Last edited by nodeblaster; 01-18-2011 at 10:52 AM.

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

    Re: incriments text + number

    If you have the first entry in A1, then you can simple copy down the cell and it should auto-increment.

    if you need a formula, then in A2:

    ="XB"&TEXT(RIGHT(A1,4)+1,"0000")

    copied down.
    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
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: incriments text + number

    If you select A1 and B1 and then drag to the right, it should automatically increment. Is this not working for you?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,063

    Re: incriments text + number

    Or create normal numbers and format cell as "XB"0
    Never use Merged Cells in Excel

  5. #5
    Registered User
    Join Date
    01-18-2011
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: incriments text + number

    Awesome response times!
    This works ="XB"&TEXT(RIGHT(A1,4)+1,"0000") but only for the row
    ie Like to fill in only A1 cell XB3001 and auto fill A2 to H20 cell XB3160

    Although the other suggestions looked so simple, being a lower than novice with excel I couldn't get it to work.

    Thanks

  6. #6
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,063

    Re: incriments text + number

    Here is mine explanation detailed:

    Right click on the column
    Format cells
    Custom
    Type: "XB"0

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

    Re: incriments text + number

    In B1 enter: ="XB"&TEXT(RIGHT(A1,4)+1,"0000") and copy across to H1

    In A2 enter: ="XB"&TEXT(RIGHT(A1,4)+8,"0000") and copy across to H2 then copy A2:H2 down to row 20.

+ 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