+ Reply to Thread
Results 1 to 2 of 2

Sequential Job Code Generation

  1. #1
    Registered User
    Join Date
    03-19-2007
    Posts
    4

    Sequential Job Code Generation

    I know how to make excel automatically insert todays date into a certain cell when I put a little x in a tick box, but how can I make it insert a sequential number?

    I thought of counting the number of boxes that have been ticked so far to give me a new sequential number, but this won't work.

    You see, I want excel to automatically create a fresh job number when the tick box is marked. The job number (or job code) consists of a two-letter identifier, the year, and a 2-digit sequential number.

    For example: CC-07-01, SV-07-01, PL-07-01

    The first two-letters are inputed manually, but the last two must be the next sequential number which is available for that code, so that no two are the same.

    When I input 'CC', then tick the box, the job code CC-07-01 should be generated.

    When I input 'CC' and tick the box again, the job code CC-07-02 (the next number in sequence) should be generated, and so forth.

    However, when I input 'SV', then tick the box, the number should go back to the start (as this is the first job for SV): SV-07-01

    If I create a table with all of the job codes in sequence (e.g. CC-07-01, CC-07-02, CC-07-03...), and a seperate column for all of the different two-letter identifiers, can I get excel to automatically pick the next code in sequence when I input 'CC' and tick the box?

  2. #2
    Forum Expert
    Join Date
    01-12-2007
    Location
    New Jersey
    Posts
    2,127
    Without seeing your worksheet, I cant give you an exact answer. Try incorporating this formula with your layout:

    =A1&"-"&YEAR(TODAY())&"-"&COUNTIF($A$1:A1,A1)

+ 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