Solved

Excel 2007 - date from export

Posted on 2011-03-01
3
281 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
Comment Utility
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
Comment Utility
...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
Comment Utility
Perfect! Thanks
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Introduction While answering a recent question (http:/Q_27311462.html), I created an alternative function to the Excel Concatenate() function that you might find useful.  I tested several solutions and share the results in this article as well as t…
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…

771 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

11 Experts available now in Live!

Get 1:1 Help Now