Results 1 to 23 of 23

Sequential Numbering Macro

Threaded View

  1. #1
    Forum Contributor
    Join Date
    06-21-2010
    Location
    -
    MS-Off Ver
    Excel 2010
    Posts
    1,211

    Sequential Numbering Macro

    I have a large sheet (currently some 5,000 rows and growing) where each row is allocated a Unique Reference, however that unique reference is based on two criteria, 'Region' and 'Type'.

    There are four 'Regions' and three 'Types' across the whole sheet (see attched sample).

    Because of the ever increasing number of entries and the fact that the sheet may be sorted so the unique references won't always appear in sequential order, I am looking to try and find a way for the unique refrence for 'new entires' to the sheet to be generated automatically, based on entires in other columns. The sheet structure is relatively simple, with 'Region' shown in one column and 'Type' in another (again, see attached sample).

    The unique references adopt this structure - 1st letter of the region (N, S, E or W for North, South, East or West), followed by 1415, followed by the first 4 characters from the 'Type', (REGI, NATI or COUN for Regional, National or County) followed by a sequential 5 digit number 00001, 00002, 00003 etc.

    resulting in for example N1415REGI00001 or W1415COUN00012 and so on.

    Because there are thousands of entries, I need an automatic way for the unique reference to be generated, ideally once both the 'Region' and 'Type' fields are populated, so the macro (or whatever method works best) will automatically determine the previous highest number for the relevant series and automatically add the next number for the new entry, based on the above criteria.

    I don't know if this is possible with a macro or whether there is an easier formulaic way to achieve this?

    Many thanks
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Macro request for sequential numbering
    By Bjordion in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-27-2012, 03:20 PM
  2. sequential numbering macro - how to stop it increasing when document is saved??
    By mansfieldchris in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 12-07-2011, 04:55 PM
  3. Sequential numbering
    By taylorackley in forum Excel General
    Replies: 2
    Last Post: 08-26-2010, 02:19 PM
  4. Sequential Numbering Macro
    By stedia in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-18-2007, 01:10 PM
  5. Creating Sequential Numbering Macro for an Quotation template
    By steewwy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-16-2005, 02:06 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