Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed:
="CUST-"&TEXT(ROW()-1,"0000")Edit the grid or formula, then run it through a real spreadsheet engine — no signup.
Sample data — click any cell to edit
Working on a sheet you inherited? Run the Auditor on the whole file first — it flags every #REF!, #N/A, broken column pattern, and inconsistent formula in seconds, free, no signup.
Base it on the row number: ="ID-"&TEXT(ROW()-1,"0000"). It increments automatically as you add rows. Convert to static values if you need the numbers to stop shifting when rows are deleted.
Add a COUNTIF check: =IF(COUNTIF($A$2:$A$1000,A2)>1,"DUPLICATE","") beside the ID column highlights any collision so you can resolve it.
Use =DEC2HEX(RANDBETWEEN(0,4294967295),8) for an 8-character hex code, then paste-special as values. For very large datasets, combine it with a timestamp to make collisions effectively impossible.
The core formulas are identical. Google Sheets and Excel 365 both offer SEQUENCE for quick numeric runs.
Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed: