+ Reply to Thread
Results 1 to 4 of 4

Auto generated number

  1. #1
    Registered User
    Join Date
    09-10-2012
    Location
    usa
    MS-Off Ver
    Excel 2010
    Posts
    86

    Auto generated number

    how to create a unique number for an account number load. I would like to use time of process, plus a 3 digit record number derived from file. For example, if this file is processed on Nov 02 2013 at 8:15:33 am, the first record should be numbered "JS-20131102081533001" the next record "JS-20131102081533002" and so on PLEASE ADVISE

  2. #2
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: Auto generated number

    if you have those dates and time as real dates and time you can use something like this

    ="JS - "&TEXT(A1,"yyyymmdd")&TEXT(A1,"hhmmss")&TEXT(ROW(),"0000")
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  3. #3
    Registered User
    Join Date
    09-10-2012
    Location
    usa
    MS-Off Ver
    Excel 2010
    Posts
    86

    Re: Auto generated number

    The date and time is the date the file is processed. That info is not provided within the file, i have to generate it

  4. #4
    Forum Contributor
    Join Date
    09-30-2013
    Location
    Toronto, ON
    MS-Off Ver
    Excel 2007
    Posts
    229

    Re: Auto generated number

    The first part can be done with this formula
    Please Login or Register  to view this content.
    You then need to come up with a seed # for the last 3 digits.
    Subsequent values can be calculated as
    Please Login or Register  to view this content.
    One thing to consider though is that using a formula will cause the date/time values to change. At some point you're going to need to copy this into text. If you're not doing it manually, it's like that you'll need some sort of VBA code. This could be done either via a macro, or a trigger so that when you enter some value on an invoice line, the number is created.
    Last edited by hectop; 11-19-2013 at 07:32 AM. Reason: Additional comments

+ 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. Auto generated Excel file
    By charleschia1986 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-14-2013, 09:21 PM
  2. [SOLVED] how to make auto generated number once user insert data in excel 2007
    By nurul0304 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-01-2012, 08:40 PM
  3. Auto-generated emails from Excel
    By whlewis in forum Excel General
    Replies: 2
    Last Post: 09-04-2010, 01:10 PM
  4. “Stamping” an auto generated reference number
    By Fairport in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-28-2009, 07:48 PM
  5. Auto generated dates
    By Fifi in forum Excel General
    Replies: 1
    Last Post: 03-31-2006, 11:40 AM

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