ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Stop cell auto format in Excel - SOLUTION! (https://www.excelbanter.com/excel-discussion-misc-queries/108125-stop-cell-auto-format-excel-solution.html)

[email protected]

Stop cell auto format in Excel - SOLUTION!
 
I've seen many posts about folks wanting excel to not auto-format/parse
cells when loading from a CSV file.

After struggling with the same problem myself and fiddling around for a
bit I came up with this solution.

Lets say that we want to put the value of "6/7" into a cell as it is.
Naturally this would end up in our CSV like this...

....,6/7,...

but Excel assumes that it is a date and converts it to 6 Sep. If
however, we expressit as a formula and put it into the CSV like this...

....,="6/7",...

then Excel correctly displays it as Text. =D



All times are GMT +1. The time now is 08:46 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com