Date Formatting

abacon1960

New Member
Joined
Jul 28, 2014
Messages
49
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.
 

Some videos you may like

Excel Facts

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

Scott T

Well-known Member
Joined
Dec 14, 2016
Messages
2,615
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
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))
 

steve the fish

Well-known Member
Joined
Oct 20, 2009
Messages
8,110
Office Version
  1. 365
Platform
  1. Windows
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.
 

Watch MrExcel Video

Forum statistics

Threads
1,109,351
Messages
5,528,192
Members
409,807
Latest member
nicky736

This Week's Hot Topics

  • Change military grades into rank
    Afternoon all Need help with formula that will change military rank (i.e. 1, 2, 3 into Amn, A1C, SrA). Running IF formula that does not work...
  • VBA COUNTIF SOLUTION
    Hi The following are the errors spread across the several columns from E to Q ie. 13 columns across several sheets with more than 500 rows per...
  • INSERT ROW WITH SPECIFIS TEXT IN A COLUMN
    Hi All! How can identify that that the row to be inserted has to be inserted before 1st row with specific text in column F. If I record the...
  • Auto-Create a monthly Sign in sheet for preschool students
    The image below is what each page looks like. Above is space for the "Child Name" "Month" "Class" School days are obviously Monday-Friday but...
  • VBA vlookup multiple results
    Hi folks, Hopefully someone out there can help. I have a list to vlookup which works (ish). the lookup only picks up the first instance of the...
  • Extract values for earliest/latest times
    I am trying to put together a formula to get the earliest start time, the latest end time from column A for each person in Column B-F without the...
Top