Function Problems

How to Reformat Subject IDs in Excel Using Flash Fill

Rana GarciaRana Garcia Oct 29, 2026 869 views

Question details

The user wants to transform existing subject IDs (such as '003') into a new customized string format (like '1-003-01') automatically.

How to Reformat Subject IDs in Excel Using Flash Fill
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.
Before you start

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.

Solution 1Recommended

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.

1
Create an adjacent column

Insert a new blank column directly next to your original column of subject IDs.

2
Type the desired format

In the first cell of the new column, manually type the exact formatted ID you want (e.g., '1-003-01') and press Enter.

3
Trigger Flash Fill

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.

4
Verify the results

Review the auto-filled data to ensure the pattern was recognized correctly across all rows.

Use Flash Fill to Reformat Data Automatically
Pattern Recognition: If the output is incorrect, manually type the correct format in the second cell as well. Providing two or three examples helps Excel better learn the pattern.
Advanced Data 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. 1. Open your dataset in WPS: Launch WPS Spreadsheet and open your existing Excel workbook containing the subject IDs.
  2. 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. 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.
100% compatible with Microsoft Excel (.xlsx, .xls, .csv) formats.Smart Flash Fill recognizes complex patterns instantly to save you time.Lightweight installation with a user-friendly, familiar interface.
microsoft office alternative - wps office

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.