Stop Excel from automatically converting certain text values to dates

前端 未结 30 2656
别跟我提以往
别跟我提以往 2020-11-22 04:16

Does anyone happen to know if there is a token I can add to my csv for a certain field so Excel doesn\'t try to convert it to a date?

I\'m trying to write a .csv fil

30条回答
  •  别那么骄傲
    2020-11-22 05:10

    2018

    The only proper solution that worked for me (and also without modifying the CSV).

    Excel 2010:

    1. Create new workbook
    2. Data > From Text > Select your CSV file
    3. In the popup, choose "Delimited" radio button, then click "Next >"
    4. Delimiters checkboxes: tick only "Comma" and uncheck the other options, then click "Next >"
    5. In the "Data preview", scroll to the far right, then hold shift and click on the last column (this will select all columns). Now in the "Column data format" select the radio button "Text", then click "Finish".

    Excel office365: (client version)

    1. Create new workbook
    2. Data > From Text/CSV > Select your CSV file
    3. Data type detection > do not detect

    Note: Excel office365 (web version), as I'm writing this, you will not be able to do that.

提交回复
热议问题