MrExcel's Learn Excel #732 - Dates from Text to Columns

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 12, 2009.
Jonathan notices a problem when he uses the Text to Columns wizard. Baseball scores such as 4-3 are converted to dates. In Episode 732, we'll take a look at how to keep those scores from being converted.

This blog is the video 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.
Well it's baseball season here in the United States.
So we have a good baseball related question today. Jonathan sends this question and he's downloading this data from the web somewhere.
It has the date the opponent the @ of course means that it was an away game or no @ sign is a home game, and then the result they won and the score and Jonathan says.
When I do "Data" "Text to Columns" to break this win and the score in two separate columns, I'm having a problem. I'm getting a date as the second field.
So we'll use "Data" "Text to Columns" and just click finish and sure enough you see that all the scores are converted to dates. 7-3 becomes july third and 6-4 becomes June fourth.
So let me undo that and we'll go back to the original data.
What we have to do is we have to take some extra steps here in "Data" "Text to Columns" and pay attention in step 3. So in step one we say our data is delimited.
In step two is delimited by a space and then in step 3, we're going to click on the field that has the score and say that we want to import that as text.
Text says. Hey, we're not going to try and convert this to a number.
We're not going to get rid of the leading and trailing spaces and we're not going to try and convert it to a date and when we click finish, sure enough, you'll see that the scores come in as text instead of being converted to a date.
Anytime the "Text to Column" starts doing that to you converting values to either dates or something you dont want it to do, just choose text and you'll be good to go.
Thanks to Jonathan for sending in that question and thanks to you for stopping by.
Will see you next time for another netcast from MrExcel.
 

Forum statistics

Threads
1,214,653
Messages
6,120,748
Members
448,989
Latest member
mariah3

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