Automatic Generation of record numbers

DPChristman

Board Regular
Joined
Sep 4, 2012
Messages
171
Office Version
  1. 365
Platform
  1. Windows
I am trying to create a spreadsheet of records that will automatically numerate cases.

There will be up to 1,000 records created annually.

Our existing process is a =MAX +1 formula, which requires numbers to be entered manually for each case (and is subject to human error)

Normally this would be an easy thing to do with a simple formula. However, there is a catch.

As the data is entered over time, the spreadsheet may be sorted by any number/combination of 85 columns.

If I was the only user, I could create an easy work around by converting previous case numbers to values only.

However, there will be multiple users of the spreadsheet, and most have very limited PC and excel skills.

Accidentally reassigning a case number to the wrong entry is an unacceptable risk.

Any thoughts?
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Could you have a text box named "Add New Record" with a Macro assigned to it that would go to the next blank row, type in your formula of =MAX+1, then copy and paste the result back over the formula "As Value"?

All your numbers would be values, and less susceptible to inadvertent changes.
 
Upvote 0
If the document numbers do not have to be absolutely consecutive, but remain sequential, then you could use something similar to the military logistics document numbering method.
Code:
Range("A1") = Format(Now, "YYMMDDHhnnss")
give you a number that looks like this: 161125171915, and won't be duplicated for the next hundred years. You could set it up with a worksheet selection change event macro that would assign the number when a user clicks in the document number box. The military uses a Julian date plus four digit serial number which they restart daily because it only gives them 9999 unique daily numbers.

<tbody>
</tbody>
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,649
Messages
6,120,730
Members
448,987
Latest member
marion_davis

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top