+ Reply to Thread
Results 1 to 2 of 2

Automated Data Generation in Excel - Auto-Incrementing Custom IDs (Mixed alpha-numeric)

  1. #1
    Registered User
    Join Date
    09-27-2015
    Location
    Taipei, Taiwan
    MS-Off Ver
    Office for Mac 2011
    Posts
    1

    Automated Data Generation in Excel - Auto-Incrementing Custom IDs (Mixed alpha-numeric)

    I have either an Excel question or a database question. The reason why it might be either is because, even if the data is entered into an Excel or cvs, it will be imported into a database.

    Therefore, it may be more efficient to directly create the records in the database.

    A quick overview of the use case. Our company has picked up 1200 store locations. We are installing equipment in monthly waves of 100.

    Once we install a store, they pay a Install Fee.

    Also, once we install a store, they will begin paying a license fee for that month, and every month thereafter.

    Each store is going to be assigned a Store ID, and every Install Fee and every License payment the store makes will be recorded, as well as the date.

    Therefore, for the year, we should have 1200 Store IDs.

    Each Store ID will have one Install Fee record, so there will be 1200 Install Fee records total.

    For License Payments, there will be 100 stores who will make 12 License payments (the 100 installed in January), 100 stores will make 11 License payments (the 100 installed in February), etc…. It comes out to 7800 License Payment records.

    So, in total with the Install Payments, there are 9000 records.

    Store ID script I would like to create a script to create Store IDs automatically, according to the following format: The first letter of the ID is “J” and then a four-digit number, starting with 0001 and working up. So the first Store ID would be J0001, the second J0002, etc.

    Install Payments Script The second script I’d like to write is to add the 1200 Install Payments records automatically, one Install Payment for each Store ID.

    License Payments Script The third script is for creating License Payment records for each License Payment. For all Store IDs J0001 to J0100, there would be 12 License Payment records for each Store ID because they were installed in January. For all Store IDs J0101 to J0200, there would be 11 License Payment records for each store ID, because they were installed in February.

    The finished table or Excel columns would look like this:

    table/Excel sheet columns:

    Store ID | Description | Date | Amount
    J0001 | Install | 01/31/15 | 1000.00
    J0001 | License | 01/31/15 | 250.00
    J0002 | Install | 01/31/15 | 1000.00

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,456

    Re: Automated Data Generation in Excel - Auto-Incrementing Custom IDs (Mixed alpha-numeric

    Cross posted here: http://www.mrexcel.com/forum/excel-q...try-excel.html
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


+ 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. Excel 2010 - Userform - Vlookup, Alpha Numeric auto increment, send form to Outlook
    By theshybutterfly in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-24-2015, 05:54 AM
  2. Filtering a mixed numeric/alpha ID no
    By Steve McG in forum Excel General
    Replies: 9
    Last Post: 07-22-2013, 08:45 AM
  3. alpha numeric data auto copy
    By tldsog in forum Excel General
    Replies: 2
    Last Post: 02-08-2013, 07:26 AM
  4. [SOLVED] Formula to only return a number value in a column with mixed Alpha and Numeric values
    By AusVivienne in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-05-2012, 03:17 AM
  5. Replies: 2
    Last Post: 06-18-2010, 05:10 PM
  6. incrementing alpha numeric field
    By liquidskin in forum Excel General
    Replies: 7
    Last Post: 12-19-2008, 11:24 AM
  7. [SOLVED] change excel auto column headers from numeric to alpha
    By MarcieinHawaii in forum Excel General
    Replies: 2
    Last Post: 02-14-2006, 05:25 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