Saving Some Numbers As CSV Changes To Dates

Dazzawm

Well-known Member
Joined
Jan 24, 2011
Messages
3,775
Office Version
  1. 365
Platform
  1. Windows
I have some numbers in a normal excel sheet, but when I save as CSV it changes them to dates. How do I get round this please? Thanks.

For example

9-3 changes to 09-Mar
9-5 changes to 09-May
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
I think you will find that they aren't dates in the csv if you open it in Notepad. But they get converted to dates when you open the csv in Excel. To avoid that save the file as txt and use the Text Import Wizard to specify the column's data type when you open it in Excel.
 
Upvote 0
But the file needs to be saved as CSV as it will be uploaded to a program.
 
Upvote 0
If I do as you say and save the excel as text then import and select the column as text, when I save and close as csv it happens again. The file must be csv to be entered into the program and those particular cells must be 9-3 etc...
 
Upvote 0
If I do as you say and save the excel as text then import and select the column as text, when I save and close as csv it happens again. The file must be csv to be entered into the program and those particular cells must be 9-3 etc

First, there is no need to save as TXT. You can save a CSV.

But the point is: when you want to "open" the file later in Excel, you must always use Get External Data > From Text. And you must select Text for the (input) column data. That's just the way Excel works. :-(
 
Upvote 0

Forum statistics

Threads
1,222,102
Messages
6,163,937
Members
451,866
Latest member
cradd64

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top