Formatting Issues

Prevent Excel from Converting Number Ranges to Dates After Find and Replace

Aamir Naveed AkramAamir Naveed Akram Nov 14, 2026 869 views

Question details

Keep number ranges as text when removing surrounding words from Excel cells.

Prevent Excel from Converting Number Ranges to Dates After Find and Replace
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.
Before you start

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.

Solution 1Recommended

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.

1
Select the source cells

In Excel, select the cells containing entries such as Frequency 5 - 6 GHz.

2
Apply the Text format

On the Home tab, open the Number Format list and choose Text before running Find and Replace.

3
Remove the surrounding text

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.

4
Check the results

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.

Format cells as Text before using Find and Replace
Entering a range manually: You can also type an apostrophe before a range, such as '5 - 6, to tell Excel to treat the entry as text. The apostrophe is not displayed in the cell.
Work with ranges in WPS Spreadsheets

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. 1. Open the spreadsheet: Open WPS Spreadsheets and use Open to select your Excel workbook.
  2. 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. 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. 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.
Keep number ranges as text while removing labels and unitsOpen and edit Microsoft Excel formats, including XLSX and XLSUse a familiar spreadsheet interface with Find and ReplaceWork with spreadsheets using the free version of WPS Office
microsoft office alternative - wps office

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.