+ Reply to Thread
Results 1 to 4 of 4

creating sequential number with text prefix

  1. #1
    Registered User
    Join Date
    02-10-2011
    Location
    Portugal
    MS-Off Ver
    Excel 2003
    Posts
    46

    creating sequential number with text prefix

    Hello,

    i want to generate a sequential number pressing a number

    example

    A B
    1 AA 99
    2 AA990001
    3

    imagine i press a buttom and it will apear in A3 AA990002

    i want to do this by formula can anyone help me please??

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: creating sequential number with text prefix

    you cant press a button and do it by formula alone.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    11-21-2012
    Location
    UAE
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: creating sequential number with text prefix

    In B1 type AA990000

    In B2
    ="AA"&SUBSTITUTE(B1,"AA","")+1

    Copy down

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: creating sequential number with text prefix

    if this is supposed to be dynamic and perhaps you wanted to put XX in a1 and 77 in B1
    then generate
    XX770001

    in a1 AA in B1 99
    in A2 filled down
    =$A$1&$B$1&TEXT(ROWS($A$1:A1),"0000")

+ 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] Assign a sequential number IF a cell contains text
    By fingerprints in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-22-2022, 12:43 PM
  2. [SOLVED] How to append sequential number to a text string to avoid duplicates?
    By wes228 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-13-2014, 08:20 PM
  3. VBA code for pulling a sequential number from a text file dependent on a form entry.
    By gjwilson1216 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-31-2013, 05:16 AM
  4. Replies: 10
    Last Post: 10-30-2013, 07:29 PM
  5. [SOLVED] Date to TEXT. NOT to sequential serial number
    By Gene in forum Excel General
    Replies: 2
    Last Post: 05-26-2006, 04:35 PM

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