+ Reply to Thread
Results 1 to 3 of 3

Auto generation of unique Numbers

  1. #1
    Registered User
    Join Date
    02-26-2010
    Location
    Manila, Philippines
    MS-Off Ver
    Excel 2003
    Posts
    1

    Auto generation of unique Numbers

    Good day....


    I was wondering if it is possible to auto generate numbers based on the qty of a certain code. For Example:

    Bill of Lading Quantity Autogenerated unique #
    A000001 5 A00001001
    A00001002
    A00001003
    A00001004
    A00001005

    The 3rd column auto generates 5 unique #s based on the Quantity (2nd Column) and based on the characters of Bill of Lading (column 1).


    Thanks in advance...

  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: Auto generation of unique Numbers

    thats not very clear! either put some seperators or post a workbook. but countif will probably do it for you
    "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 Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Auto generation of unique Numbers

    Assuming your BOL is in A2 and the Quantity is in B2, then in C2:

    =IF(ROWS($A$1:$A1)>$B$2,"",$A$2&TEXT(ROWS($A$1:$A1),"000"))

    copied down as far as you want... Change the Quantity and see the number of codes changed.. change the BOL and see the codes change accordingly.
    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.

+ 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