Data Import & Export

Prevent Excel from Converting YYYY-MM-DD Text into Dates in WPS Office

Rana GarciaRana Garcia Nov 13, 2026 869 views

Question details

The user needs to import or paste scraped YYYY-MM-DD values without Excel or WPS Spreadsheets automatically converting them into date values.

Prevent Excel from Converting YYYY-MM-DD Text into Dates
Product
WPS Office Spreadsheets and Microsoft Excel
Device & OS
not provided
Scenario
The user is importing or pasting scraped data that contains YYYY-MM-DD identifiers, such as case numbers or part numbers, and needs those values to remain text rather than becoming dates.
Observed behavior
The spreadsheet converts YYYY-MM-DD entries into date values, changing both the stored value and the display format.
Before you start

Identify the destination column or table cells where the YYYY-MM-DD data will be pasted. If the data is already converted, have the original text source available so you can reimport it cleanly.

Solution 1Recommended

Format the Destination Cells as Text Before Pasting or Importing

Use this when you are about to paste scraped YYYY-MM-DD values and want to prevent automatic date detection from changing them.

Spreadsheet applications inspect input in General-format cells and may treat YYYY-MM-DD as a date. Formatting the target area as Text tells the application to keep the characters exactly as entered.

1
Select the destination cells or column

Open your workbook in WPS Office Spreadsheets or Excel and select the cells, table column, or range where the scraped data will go.

2
Open Format Cells

Right-click the selected range and choose Format Cells, or press Ctrl+1.

3
Apply Text format before pasting

On the Number tab, select Text, click OK, then paste the YYYY-MM-DD values or import the data into the formatted range.

Format the Destination Cells as Text Before Pasting or Importing
Keep text as text: Formatting the destination as Text before pasting preserves YYYY-MM-DD values exactly as they appear in the source.

Prevent Date Conversion in WPS Spreadsheets

With WPS Office Spreadsheets, you can pre-format columns as Text, paste or import scraped YYYY-MM-DD data without automatic date conversion, and save the workbook in Microsoft-compatible .xlsx format.

  1. 1. Open WPS Office Spreadsheets: Launch WPS Office, click Spreadsheets, and open a blank workbook or the file you want to fix.
  2. 2. Format the destination as Text: Select the destination cells or column, right-click and choose Format Cells, then click the Number tab, select Text, and click OK.
  3. 3. Paste or import the YYYY-MM-DD data: Paste the scraped values into the preformatted range, or use Data > Import Data and set the column to Text before loading it.
  4. 4. Correct any existing date cells: For cells already shown as dates, edit the cell and type an apostrophe before the YYYY-MM-DD value, or reformat the column as Text and reimport the source.
  5. 5. Save as a Microsoft-compatible workbook: Click Menu > Save As and choose .xlsx format so the file remains compatible with Microsoft Excel.
Keeps YYYY-MM-DD values like case numbers or part numbers in their original text formFully compatible with Microsoft Excel .xlsx, .xls, and .csv filesFree and lightweight spreadsheet application with familiar formatting toolsEasy migration from Excel without losing formatting or data typesLets you pre-format columns as Text before pasting or importing
microsoft office alternative - wps office

Frequently Asked Questions

Why does Excel automatically convert 2024-01-15 into a date?

In General-format cells, Excel and WPS Spreadsheets scan input and treat recognizable date patterns such as YYYY-MM-DD as dates, storing them as date serial numbers instead of text.

How do I stop YYYY-MM-DD from becoming dates when I paste a large list?

Select the destination cells or entire column first, right-click and choose Format Cells > Text, then paste the values. The pre-applied Text format prevents automatic date conversion.

Can I fix converted date values without retyping everything?

For a few cells, double-click each cell and type an apostrophe before the value. For larger data, format the destination column as Text and reimport the original YYYY-MM-DD data.

Does WPS Spreadsheets keep .xlsx files compatible after I change cells to Text?

Yes. Save the file in .xlsx or .xls format and Microsoft Excel will open it normally, with the Text-formatted YYYY-MM-DD values preserved.