MrExcel's Learn Excel #947 - Wrong Date Format

If you like this content, please consider visiting the video on YouTube and subscribe to the MrExcel Channel to show your support!
This video has been published on Feb 10, 2009.
You get a CSV file from an International branch of your company and the dates are in M/D/Y when you use D/M/Y or vice versa. There is an easy solution. Episode 947 shows you how.

This video is the podcast companion to the book, Learn Excel 97-2007 from MrExcel. Download a new two minute video every workday to learn one of the 377 tips from the book!
maxresdefault.jpg


Transcript of the video:
Hey, welcome back to the MrExcel netcast. I'm Bill Jelen.
Basically we start out with massive amounts of data.
So how are we going to analyze, as well plus fire up a pivot table.
Lets see if you can solve this problem.
Hey, Welcome back to the MrExcel netcast. I'm Bill Jelen.
Today a question about CSV files that have dates in the other format.
So whether you use day month year or month day year.
Someone from another subsidiary and other country sent you as CSV file and the dates are in the wrong format.
So for me since I'm here in the united states, the wrong format is day month year.
If you're somewhere else, just pretend it's reversed.
So we have Podcast947.csv.
If I would open that in excel.
It automatically imports it using default settings and those dates are not real dates.
If I try and format this you'll see that unless it happened that the date that was less than a month.
You know we do not have real dates that are formatable let's say or that we can creat calculations from.
[ Inaudiable ] in but those are all wrong.
Real pain, well the person who sent in this question said, you know, hey is it possible to change the international settings before you open this and have it open correctly and so forth, hey really, I think that's not the right way to go.
The faster way to go is just come back here at a "Windows explorer" and Find your file.
Rename the file to a text file.
When you have a CSV, microsoft just kind of takes control and they say, hey, we're going to use all the default settings.
But instead if you use excel to open a text file, it will then take you through the wizard and in the wizard, in step 3, we can declare what type of a date we have.
So here I'm going to say that my day is in day month year and click finish, and then it all gets imported correctly.
Boy, that's a great little dialog box really handy to solve this problem without changing your international settings.
The trick is you have to change it from a csv file because you have a csv file, you're never going to get to go through that dialogue.
They're just going to use their defaults, which in this case don't work at all.
Well there you have it.
Thanks for stopping by and we'll see you next time for another netcast from MrExcel.
Thanks, you starfire. We'll see you next time for another Deck hands Mr.. Itself you
 

Forum statistics

Threads
1,213,506
Messages
6,114,024
Members
448,543
Latest member
MartinLarkin

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