Prevent Excel from Converting Number Ranges to Dates After Find and Replace
Question details
Keep number ranges as text when removing surrounding words from Excel cells.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- The user wants to remove text such as a frequency label and GHz from entries while retaining a range such as 5 - 6.
- Observed behavior
- After Find and Replace removes the surrounding text, Excel interprets the remaining range as a date and stores a date serial number.
Check whether the original entries are still available. If Excel has already converted a range to a date, use Undo or return to the original text before applying a solution; changing the cell format alone may not recover the range.
Format cells as Text before using Find and Replace
Use this method when the text to remove is consistent and you want to retain the complete range.
In Excel, select the cells containing entries such as Frequency 5 - 6 GHz.
On the Home tab, open the Number Format list and choose Text before running Find and Replace.
Press Ctrl+H to open Find and Replace. Enter Frequency and a trailing space in Find what, leave Replace with empty, and choose Replace All. Repeat for the space and GHz.
Inspect the edited cells to confirm that ranges such as 5 - 6 remain text. Test a few cells first if the entries have different wording or spacing.

Use Flash Fill to extract ranges from varying text
Use Flash Fill when the words before the range vary between rows.
Keep Number Ranges as Text in WPS Spreadsheets
Use WPS Spreadsheets to format cells as text before removing consistent labels and units, helping preserve ranges such as 5 - 6.
- 1. Open the spreadsheet: Open WPS Spreadsheets and use Open to select your Excel workbook.
- 2. Format the cells as text: Select the cells containing the original entries, then choose Text from the number format options on the Home tab.
- 3. Remove consistent text: Press Ctrl+H to open Find and Replace. Replace the repeated label and unit with empty text, using a separate replacement for each.
- 4. Verify and save: Check that the resulting ranges remain text, then use File > Save As to save the edited workbook in an Excel format.

Frequently Asked Questions
Why does Excel show a serial number after converting a range?
Excel stores dates as serial numbers. If a range is interpreted as a date, changing its number format may expose that serial rather than restore the original text. Use Undo or the original entry to recover the range.
Can I stop Excel from converting a range I type manually?
Format the cell as Text before typing, or enter a leading apostrophe, for example '5 - 6. Excel displays the range without the apostrophe.
How can I extract ranges when the text before them varies?
Format an adjacent column as Text, type an example of the desired range, and select the next cell. Use Data > Flash Fill or press Ctrl+E, then check the results.
Can I use TRIM to remove words before a range?
TRIM removes extra spaces, not arbitrary words. Use Flash Fill for varying prefixes, or use a formula that identifies a consistent delimiter or pattern in the source text.




