Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / February 2008

Tip: Looking for answers? Try searching our database.

Imported Date Format

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Lee - 16 Feb 2008 16:04 GMT
I have imported data from an accounting program and the date format is
20070101 for January 1, 2007. I have looked at various sites that would use
Left(),Mid(),Right() to break the numbers and then put them back into
2007/01/01 but was wondering if anyone had a simpler solution.
Thanks,
Lee Coleman
Jim May - 16 Feb 2008 18:01 GMT
=DATE(LEFT(A1,4),MID(A1,5,2),RIGHT(A1,2))

Look familiar?

> I have imported data from an accounting program and the date format is
> 20070101 for January 1, 2007. I have looked at various sites that would use
> Left(),Mid(),Right() to break the numbers and then put them back into
> 2007/01/01 but was wondering if anyone had a simpler solution.
> Thanks,
> Lee Coleman
Matt Richardson - 18 Feb 2008 12:57 GMT
> I have imported data from an accounting program and the date format is
> 20070101 for January 1, 2007. I have looked at various sites that would use
> Left(),Mid(),Right() to break the numbers and then put them back into
> 2007/01/01 but was wondering if anyone had a simpler solution.
> Thanks,
> Lee Coleman

Highlight the cells.  Format cells > number tab > Select Custom from
the dropdown list

In the "Type:" box, type in the following:-

0000"/"00"/"00

And this will display it as you wish.  Excel wont treat it like a date
however, it is just formatted to look like one - the value will still
be 20070101.

If you do wish to use functions you can try the following:-

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

That is assuming that your date is in A1.

Hope this helps,
Matt Richardson
http://teachr.blogspot.com
Lee - 20 Feb 2008 05:52 GMT
Thanks to all for helping.
>I have imported data from an accounting program and the date format is
>20070101 for January 1, 2007. I have looked at various sites that would use
>Left(),Mid(),Right() to break the numbers and then put them back into
>2007/01/01 but was wondering if anyone had a simpler solution.
> Thanks,
> Lee Coleman
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.