Date Formatting

abacon1960

Board Regular
Joined
Jul 28, 2014
Messages
54
I exported some financial data into a spread sheet that has the following in this format:

Col A Col B
Date $/Ton
2 14 2109 6,125.34
2 13 2019 6,345.45
etc.....

The dates are important as I want them to be used on a Chart so the formatting is important. As you can see the dates came in as 2 1 2109 with no backslashes or hyphens. I formatted the Col B to look like this 2-Feb-2019. Without manually retyping with the backslash each cell will not format.

Is there a way to highlight the column and have it format this way without manually retyping a thousand entries?

Thanks.
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
You can create the date in a separate column and then copy it to column A as value.

Code:
=DATE(RIGHT(A2,4),LEFT(A2,SEARCH(" ",A2)),MID(A2,SEARCH(" ",A2)+1,2))
 
Upvote 0
Try highlighting the column in question then pressing CTRL-H. Find what type a space. Replace with type a slash. Replace all. See if that works.
 
Upvote 0

Forum statistics

Threads
1,224,824
Messages
6,181,186
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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