How to Reformat Subject IDs in Excel Using Flash Fill
Question details
The user wants to transform existing subject IDs (such as '003') into a new customized string format (like '1-003-01') automatically.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Standardizing or updating custom text codes and subject IDs across a large dataset.
- Observed behavior
- Needs a quick, automated way to format data in bulk without manually typing or editing each individual cell.
Ensure your dataset is organized in a single column and there are no blank columns between the original data and the new column where you intend to apply Flash Fill.
Use Flash Fill to Reformat Data Automatically
Flash Fill is the quickest way to identify patterns and reformat text strings without writing complex formulas.
Excel's Flash Fill feature learns your data entry pattern and automatically replicates it down the column. This is ideal for adding prefixes and suffixes to existing IDs.
Insert a new blank column directly next to your original column of subject IDs.
In the first cell of the new column, manually type the exact formatted ID you want (e.g., '1-003-01') and press Enter.
Select the next empty cell down, go to the 'Data' tab on the ribbon, and click 'Flash Fill', or simply press the keyboard shortcut Ctrl+E.
Review the auto-filled data to ensure the pattern was recognized correctly across all rows.

Use Text Formulas to Add Prefixes and Suffixes
If Flash Fill does not detect the pattern accurately, you can use a simple text string formula to guarantee precise formatting.
Reformat Data Instantly with WPS Spreadsheet
WPS Spreadsheet offers powerful data handling tools, including intelligent Flash Fill (Ctrl+E) and advanced formulas, allowing you to reformat complex datasets with just a few clicks.
- 1. Open your dataset in WPS: Launch WPS Spreadsheet and open your existing Excel workbook containing the subject IDs.
- 2. Type the first example: In an adjacent blank column, type the correctly formatted subject ID for the very first row and press Enter.
- 3. Use the Flash Fill shortcut: Select the cell immediately below it and press Ctrl+E. WPS Spreadsheet will automatically fill the rest of the column based on your provided pattern.

Frequently Asked Questions
Why is Flash Fill not working or greyed out?
Flash Fill might be disabled in your application settings. Go to File > Options > Advanced, and ensure that 'Automatically Flash Fill' is checked. Also, make sure there are no completely blank columns separating your original data and the Flash Fill column.
Can Flash Fill extract parts of a subject ID instead of adding characters to it?
Yes, Flash Fill works for both combining and extracting data. If your ID is '1-003-01' and you just want '003', simply type '003' in the adjacent cell and press Ctrl+E to extract the middle sequence automatically.
Are Flash Fill results dynamic if the original data changes?
No, Flash Fill generates static text values. If your original subject IDs change, the Flash Fill column will not update automatically. You will need to clear the Flash Fill column and reapply the Ctrl+E shortcut, or use a dynamic text formula instead.




