![]() |
|
#4
|
|||
|
|||
|
With this 'autonumber' calculated with formula, whenever the table is sorted, those 'autonumbers' get attached to different set of data!
I have had a couple of cases where there was need to have such unique ID column, and my approach was: On your entry sheet, add a hidden column, where the numeric part of your autonumber is calculated, like Code:
=IF(LEFT($A1,5) = "REQ-",1*MID($A1,5,254),"") Code:
nNextNumber = "REQ-" & RIGHT("0000" & (MAX(YourDataSheet!TheColumnWithEntryNumber) +1),4)
Code:
lAutoNumber=IF(YourDataSheet!$A1 <> "", YourDataSheet!$A1, IF(OR(YourDataSheet!$B1 = "", LEFT(YourDataSheet!$B1,7)="Section"),"",nNextNumber) Code:
=lAutoNumber This set-up will work best, when you define your data entry table as a Table - then all formulas and data validation lists are applied automatically to new rows added to Table. |
| Tags |
| auto-numbered |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help me create a button to generate an ascending sequential reference number on a worksheet | Blue Owl | Excel Programming | 1 | 05-24-2018 05:01 PM |
| If text in column then formula in other | Grubermen | Excel | 1 | 09-06-2017 06:35 AM |
| Find entries lacking prefix and then add prefix. | gsteel | Excel | 2 | 08-28-2017 11:36 AM |
Shortcut to haven ascending values in row/column of cells
|
Straitsfan | Excel | 1 | 08-09-2016 05:28 AM |
Word 2007 TOC Section Number w/Alpha Prefix?
|
Gwen Butler | Office | 2 | 09-29-2011 06:10 AM |