Stop Excel from automatically converting certain text values to dates

前端 未结 30 2611
别跟我提以往
别跟我提以往 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:00

    Without modifying your csv file you can:

    1. Change the excel Format Cells option to "text"
    2. Then using the "Text Import Wizard" to define the csv cells.
    3. Once imported delete that data
    4. then just paste as plain text

    excel will properly format and separate your csv cells as text formatted ignoring auto date formats.

    Kind of a silly work around, but it beats modifying the csv data before importing. Andy Baird and Richard sort of eluded to this method, but missed a couple important steps.

提交回复
热议问题