Formatting Issues

Microsoft Excel: Enter 1-4-5 as Text Without Date Conversion

Nimra MalikNimra Malik Nov 12, 2026 869 views

Question details

The user needs to enter 1-4-5 in a spreadsheet while keeping it as text instead of allowing automatic date conversion.

Product
Microsoft Excel
Device & OS
not provided
Scenario
A value containing hyphens must remain exactly as entered for a label, code, or other text value.
Observed behavior
Excel may interpret 1-4-5 as a date and automatically change its formatting or stored value.
Before you start

Select the target cell and check whether it is formatted as General or Date. If the value has already been converted, clear the cell before entering it again as text.

Solution 1Recommended

Add an apostrophe before 1-4-5

Use this quickest method when entering one or a few values that contain hyphens and must remain text.

A leading apostrophe tells Excel to store the following characters as text. The apostrophe is not displayed in the completed cell value.

1
Select the cell

Click the cell where you want to enter the value.

2
Type the text indicator

Enter an apostrophe followed by the value, exactly as '1-4-5.

3
Confirm the entry

Press Enter. The cell displays 1-4-5 and keeps it as text rather than converting it to a date.

Expected result: The apostrophe appears in the formula bar or input context but not in the displayed cell value.

Keep Hyphenated Values as Text in WPS Spreadsheet

WPS Spreadsheet can preserve entries such as 1-4-5 as text. Add an apostrophe for a single entry or set the cells to Text before entering a list of values.

  1. 1. Select the destination cell: Open WPS Spreadsheet and click the cell where you want to enter 1-4-5.
  2. 2. Enter an apostrophe: Type '1-4-5 into the cell, then press Enter to store the value as text.
  3. 3. Format a range when needed: For multiple entries, select the range, open the Home tab's Number Format menu, and choose Text before entering the values.
Prevent WPS Spreadsheet from converting 1-4-5 into a dateUse a familiar spreadsheet interface with quick Number Format controlsOpen, edit, and save Microsoft Excel .xlsx files with format compatibilityKeep codes, labels, and hyphenated identifiers exactly as entered
microsoft office alternative - wps office

Frequently Asked Questions

Why does Excel change 1-4-5 into a date?

Excel recognizes hyphen-separated values as possible dates when the cell uses a general or date-compatible format. It may then display and store the entry as a date.

Does the apostrophe remain visible in the cell?

No. When you type '1-4-5, Excel uses the apostrophe as a text indicator and displays only 1-4-5 in the worksheet cell.

How can I keep a whole column of hyphenated values as text?

Select the column, open Home > Number Format, choose Text, and then enter or paste the values. Values that were already converted may need to be re-entered.

Can I use the same method in WPS Spreadsheet?

Yes. Type an apostrophe before the value, or select the cells and choose Home > Number Format > Text before entering the data.