Solved

Excel 2007 - date from export

Posted on 2011-03-01
3
284 Views
Last Modified: 2012-05-11
I am using a program that exports to Excel. The file exported has the date in the format of yyyymmdd (e.g. 20110301). When I go to Format the cell, I choose Date and then the format that I want (mm/dd/yyyy) but nothing happens, it just remains as 20110301.

I then tried using the DATEVALUE funtion in a new cell and it retuns #VALUE. I don't have access to the query that the program uses, all I have access to is the Excel sheet once it is exported.

What is the quickest and easiest way to get this column of values from it's current exported format (20110301) to the desired format (03/01/2011)?

Thanks,
Joe
0
Comment
Question by:NursingCorp
  • 2
3 Comments
 
LVL 50

Accepted Solution

by:
barry houdini earned 500 total points
ID: 35011365
Hello Joe you can convert using "Text to columns"

Select column of dates

Data > Text to columns > Next > Next > at step 3 choose "Date" under "column data format", then "YMD" from dropdown > Finish

Now you can format dates as required

regards, barry
0
 
LVL 50

Expert Comment

by:barry houdini
ID: 35011381
...You could also use a formula in another cell, e.g. with date in A1 use this formula in B1

=TEXT(A1,"0000-00-00")+0

barry
0
 

Author Closing Comment

by:NursingCorp
ID: 35011390
Perfect! Thanks
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Improved? Move/Copy Add-in Replacement - How to avoid the annoying, “A formula or sheet you want to move or copy contains the name XXX, which already exists on the destination worksheet.” David Miller (dlmille)  It was one of those days… I wa…
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

831 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