+ Reply to Thread
Results 1 to 4 of 4

Automatically Generate Sequential Number in Following Row

  1. #1
    Registered User
    Join Date
    09-07-2017
    Location
    New York, United States
    MS-Off Ver
    2013
    Posts
    1

    Automatically Generate Sequential Number in Following Row

    Hello all,

    I need to create an Incident Log for the small police department for which I am employed.

    It needs to automatically generate the next incident number in the next row when someone begins entering non-numerical values in the columns.

    Our reports are 7 digit numbers (MMYY001, MMYY002, MMYY003, etc.)

    The pic below shows an idea of what I need. Any help would be greatly appreciated.
    Attached Images Attached Images

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Automatically Generate Sequential Number in Following Row

    a1="MMYY"&TEXT(ROW(),"000") and drag down.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Automatically Generate Sequential Number in Following Row

    Try adding this code to the VBA module for the sheet (e.g. Sheet1)

    Please Login or Register  to view this content.
    This code will start a new number sequence when the new month starts
    Martin

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Automatically Generate Sequential Number in Following Row

    Formula in A2 then fildown.

    =IF(B2="","",TEXT(B2,"mmyy")&TEXT(SUMPRODUCT((YEAR(B$2:B2)=YEAR(B2))*(MONTH(B$2:B2)=MONTH(B2))+0),"000"))

    able to adjust the change(s) .
    Last edited by jindon; 09-08-2017 at 12:33 AM. Reason: Typo

+ 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. VBA to generate sequential number
    By asafebass in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-26-2016, 09:44 PM
  2. [SOLVED] generate sequential Number when a sheet is inserted
    By taralmehta15 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-29-2015, 03:28 PM
  3. Generate Sequential number batches
    By ciag in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-08-2015, 10:30 AM
  4. How to generate sequential intervals from whole number
    By Mekon in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-14-2013, 04:12 PM
  5. How to generate sequential intervals from whole number
    By Mekon in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-14-2013, 03:59 PM
  6. How do I generate a sequential serial number every time I tab to a new line?
    By asbo604 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-28-2009, 05:17 AM
  7. Auto Generate Sequential Invoice Number
    By jneldon in forum Excel General
    Replies: 1
    Last Post: 03-09-2009, 01:17 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