Solved

Excel 2007 - date from export

Posted on 2011-03-01
3
283 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

INDEX and MATCH can be used to great effect to replace HLOOKUP and VLOOKUP as it does not have the limitation of needing the data to be sorted so that the reference value is in the first column or row. It also has the ability to perform a bi-directi…
Introduction This Article is a follow-up to my Mappit! Addin Article (http://www.experts-exchange.com/A_2613.html), it was inspired by an email posting I made to EUSPRIG (http://www.eusprig.org/index.htm), I will briefly cover: 1) An overvie…
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

911 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now