Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Convert Date Text to Regular Date Format

Posted on 2011-03-01
6
Medium Priority
?
221 Views
Last Modified: 2012-05-11
Hello:

I have a spreasheet that has text dates in Column A. I want to convert the dates so they look like this 11/13/2009, 12/07/2009, etc...

NOV 13 2009
DEC  7,2009
NOV 24,2009
DEC 14,2009
OCT  8,2009
OCT 21,2009
NOV  6,2009

I tried using this formula in Column B
 =DATEVALUE(MID(A1,4,2)&"/"&MID(A1,1,3)&"/"&MID(A1,7,4))
but I get the #Value Error.

Dan
0
Comment
Question by:RecipeDan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 33

Expert Comment

by:jppinto
ID: 35009807
You get the error because at the end of your formula you need to change the 4 by a 5, like this:

=DATEVALUE(MID(A1,4,2)&"/"&MID(A1,1,3)&"/"&MID(A1,7,5))

jppinto
0
 
LVL 33

Expert Comment

by:jppinto
ID: 35009816
But your formula doesn't work for the rest of the rows...just for row 1.
0
 
LVL 50

Expert Comment

by:barry houdini
ID: 35009868
I think you have some double spaces so that throws the formula out, try this version

=DATEVALUE(MID(A1,5,2)&"/"&LEFT(A1,3)&"/"&RIGHT(A1,4))

regards, barry
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 50

Accepted Solution

by:
barry houdini earned 1600 total points
ID: 35009931
I expect my suggestion above to work, but when I copied your dates from the board some of the characters are CHAR(160)s rather than spaces. I assume that's just Experts Exchange converting the data but if those are in your original data you might need this version

=DATEVALUE(SUBSTITUTE(LEFT(RIGHT(A1,7),2),CHAR(160),"")&"/"&LEFT(A1,3)&"/"&RIGHT(A1,4))

regards, barry
0
 
LVL 33

Assisted Solution

by:jppinto
jppinto earned 400 total points
ID: 35009935
I tryed with this:

=DATEVALUE(MID(A1,FIND(" ",A1,1),3) & "/" & LEFT(A1,3) &"/" & RIGHT(A1,4))

It works on most of the values you presented. Are the double spaces for real or are they just a typo?
0
 
LVL 1

Author Closing Comment

by:RecipeDan
ID: 35010286
Thanks both of you for your help. The double spaces are real. It was a spreadsheet that was given to me.
0

Featured Post

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

650 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question