Create Sequential IDs with a Prefix and Suffix in Excel 365
Question details
Create sequential identifiers with a fixed prefix, a four-digit number, and a manually changeable language suffix.

- Product
- Microsoft Excel 365
- Device & OS
- not provided
- Scenario
- Generate IDs such as ABC.0001.en and ABC.0002.en while allowing the language code to vary by row.
- Observed behavior
- Each ID should increment automatically and display the chosen language suffix.
Choose an empty column for the IDs and an adjacent column for optional language codes. The example starts in cell A1 and uses column B for suffixes.
Use a formula with a separate language-code column
Generate numbered IDs while keeping each row's language suffix editable.
In cell A1, enter ="ABC."&TEXT(ROWS($A$1:A1),"0000")&"."&IF(B1="","en",B1).
Select A1 and drag its fill handle down column A. The IDs increment from ABC.0001.en, with en used when the corresponding cell in column B is blank.
Enter a language code such as fr in B2 to change the ID in A2 to ABC.0002.fr. Edit the cell in column B whenever you need a different suffix.

Create Editable-Suffix IDs in WPS Spreadsheets
Use WPS Spreadsheets to build the same sequential IDs with a formula and a separate language-code column.
- 1. Open a spreadsheet: Open WPS Spreadsheets and create a blank workbook or open an existing Excel file.
- 2. Enter the ID formula: Select A1 and enter ="ABC."&TEXT(ROWS($A$1:A1),"0000")&"."&IF(B1="","en",B1).
- 3. Extend the sequence: Drag the fill handle from A1 down column A to create additional IDs.
- 4. Set language codes: Type a code such as fr in the corresponding cell in column B; leave it blank to use en.

Frequently Asked Questions
How do I change the prefix from ABC?
In the formula in A1, replace ABC. with your desired prefix, keeping it inside the quotation marks. Then fill the updated formula down column A.
Can I type a different suffix directly into an ID cell?
Typing directly into a formula cell replaces its formula. Instead, enter the suffix in the corresponding cell in column B.
What happens after ID 9999?
The TEXT format "0000" sets a minimum of four digits, so the next number appears as 10000 rather than resetting to 0000.
How can I keep IDs from changing when rows are inserted or deleted?
After generating the IDs, copy column A and use Paste Special > Values to replace the formulas with fixed text. Set the suffixes first, because the pasted values will no longer update from column B.




