+ Reply to Thread
Results 1 to 6 of 6

Sequential Alpha numeric code in batches, with spaces

  1. #1
    Registered User
    Join Date
    03-12-2013
    Location
    Liverpool, England
    MS-Off Ver
    Excel 2010
    Posts
    27

    Sequential Alpha numeric code in batches, with spaces

    Apologies if I am asking something that has already been asked. I really did not know where to look.

    What I am doing is setting up a product ratecard sheet to run with our CRM system in work.

    Each product has 10 quantities, with 10 different prices, but each product must have the same product code running down in column A

    I have thousands of products to put in to dont want to manually type each code in.

    I am ok with Excel, but I can not program in VBA, so i am looking for a formula to use.

    The code is ZTRA-00001, which will stay the same for 10 rows, then there will be a space of 1 row and the next code for the next 10 rows in the column would be ZTRA-00002 etc.

    As I say, I could do this by hand, but I am confident there will be an easier way.

  2. #2
    Valued Forum Contributor Melvinrobb's Avatar
    Join Date
    06-19-2012
    Location
    Manitoba, Canada
    MS-Off Ver
    Excel 2013
    Posts
    1,128

    Re: Sequential Alpha numeric code in batches, with spaces

    Is the attached what you are looking for?
    Attached Files Attached Files
    Please click the * icon below if I have helped.

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Sequential Alpha numeric code in batches, with spaces

    Melvin, looks like your file didnt get through?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    03-12-2013
    Location
    Liverpool, England
    MS-Off Ver
    Excel 2010
    Posts
    27

    Re: Sequential Alpha numeric code in batches, with spaces

    please excuse me, but I can not see an attachment

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

    Re: Sequential Alpha numeric code in batches, with spaces

    put this where you want to start then fill down
    =IF(MOD(ROWS($A$1:A1),11)=0,"","ZTRA-"&TEXT(CEILING(ROWS($A$1:A1)/11,1),"00000"))
    "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

  6. #6
    Registered User
    Join Date
    03-12-2013
    Location
    Liverpool, England
    MS-Off Ver
    Excel 2010
    Posts
    27

    Re: Sequential Alpha numeric code in batches, with spaces

    excellent, exactly what I needed. thanks very much for your help guys

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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