Saving Some Numbers As CSV Changes To Dates

Dazzawm

Well-known Member
Joined
Jan 24, 2011
Messages
3,613
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

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce

Dazzawm

Well-known Member
Joined
Jan 24, 2011
Messages
3,613
Office Version
  1. 365
Platform
  1. Windows
Help please someone, need it for work!!
 
Upvote 0

Dazzawm

Well-known Member
Joined
Jan 24, 2011
Messages
3,613
Office Version
  1. 365
Platform
  1. Windows
Anyone?
 
Upvote 0

Andrew Poulsom

MrExcel MVP
Joined
Jul 21, 2002
Messages
73,092
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

Dazzawm

Well-known Member
Joined
Jan 24, 2011
Messages
3,613
Office Version
  1. 365
Platform
  1. Windows
But the file needs to be saved as CSV as it will be uploaded to a program.
 
Upvote 0

Dazzawm

Well-known Member
Joined
Jan 24, 2011
Messages
3,613
Office Version
  1. 365
Platform
  1. Windows
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

joeu2004

Banned user
Joined
Mar 2, 2014
Messages
3,080
Office Version
  1. 2010
Platform
  1. Windows
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,190,808
Messages
5,983,038
Members
439,815
Latest member
yoswosz

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
Top