+ Reply to Thread
Results 1 to 5 of 5

automated number sequence

Hybrid View

  1. #1
    Registered User
    Join Date
    09-26-2012
    Location
    wiltshire
    MS-Off Ver
    Excel 2010
    Posts
    7

    automated number sequence

    Hi all

    this will probably be very simple for someone but i could do with knowing how to program an automated number sequence

    I have a quote log and the numbers we generate are like this ECQ123/12

    This all means something to us - ECQ = electronic inquiry - 123 - the quote number and the /12 means 2012 - as we archive all of the quotes

    I would like excel to generate the sequence in the log as follows in a column

    ECQ123/12
    ECQ124/12
    ECQ125/12
    ECQ126/12

    how do i do this ?
    please help as will be making our lives easier if the quote number generates itself

    cheers
    James

  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: automated number sequence

    ="ECQ"&TEXT(ROW(A1),"000")&"/12" change row(a1) to whichever number you want to start at EG ROW(A123)
    fill down as far as you need then copy paste back over itself as paste special values
    "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
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: automated number sequence

    hi James. assuming your data starts from B2, try:
    ="ECQ"&122+ROWS(B$2:B2)&"/12"

    or better still if you have a date on the same row (say in D2), so that the years change:
    ="ECQ"&122+ROWS(B$2:B2)&"/"&RIGHT(YEAR(D2),2)

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  4. #4
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: automated number sequence

    Hi vicaima

    Another version, assuming your data is in A1 and copy down.
    Formula: copy to clipboard
    ="ECQ"&ROW(A1)+122&"/"&TEXT(TODAY(),"yy")

  5. #5
    Registered User
    Join Date
    09-26-2012
    Location
    wiltshire
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: automated number sequence

    All of those worked great thanks very much for all your help
    you have saved us loads of time !

+ 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