Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed:
="INV-"&TEXT(ROW()-1,"0000")Computed by a real spreadsheet engine on the sample data below.
| Invoice_Num | Client | Amount |
| Acme Corp | 1200 | |
| Beta LLC | 800 | |
| Gamma Inc | 2400 |
="INV-"&TEXT(ROW()-1,"0000")→INV-0000
Edit the grid or formula, then run it through a real spreadsheet engine — no signup.
Sample data — click any cell to edit
Need it for your exact data?
Describe your columns in plain English and get the precise formula for your sheet, with the right Excel or Sheets syntax.
Use ="INV-"&YEAR(TODAY())&"-"&TEXT(ROW()-1,"0000") to produce INV-2026-0001 style numbers.
Yes — ROW()-based numbers shift when rows are inserted. To prevent this, paste the formula results as static values after generating them.
Combine two columns into one with the & operator — perfect for joining first and last names into a full name.
How-toAssign sequential row numbers that restart for each group using COUNTIF with a mixed reference in Excel and Google Sheets.
How-toDelete empty rows quickly by filtering for blanks and deleting visible rows, or use Go To Special in Excel for a one-click approach.
How-toFlip rows and columns using the TRANSPOSE function or Paste Special to convert horizontal data to vertical and vice versa.
How-toMerge values from several columns into one cell using the ampersand operator or CONCAT/TEXTJOIN for delimited output.
How-toReplace empty cells with a default value using IF+ISBLANK, Go To Special fill-down, or a Power Query step for bulk data.
Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed: