PC Review


Reply
Thread Tools Rate Thread

corrupted date conversion

 
 
namsilat
Guest
Posts: n/a
 
      25th May 2007
I have an excel file that was somehow corrupted. After Excel repaired
the file, almost everything was ok, except the dates. They were
somehow converted into numeric form. For example, May 18, 2007 was
displayed as "39220". Can someone suggest a quick macro that can
convert all the numbers back to the original date entry?

 
Reply With Quote
 
 
 
 
Ron Rosenfeld
Guest
Posts: n/a
 
      25th May 2007
On Thu, 24 May 2007 20:53:40 -0400, namsilat <(E-Mail Removed)> wrote:

>I have an excel file that was somehow corrupted. After Excel repaired
>the file, almost everything was ok, except the dates. They were
>somehow converted into numeric form. For example, May 18, 2007 was
>displayed as "39220". Can someone suggest a quick macro that can
>convert all the numbers back to the original date entry?


If you format those cells as date (format/cells/number/date) they will display
properly.
--ron
 
Reply With Quote
 
=?Utf-8?B?QmFyYiBSZWluaGFyZHQ=?=
Guest
Posts: n/a
 
      25th May 2007
This is an easy fix. Try Format -> Cells -> Date.

HTH,
Barb Reinhardt

"namsilat" wrote:

> I have an excel file that was somehow corrupted. After Excel repaired
> the file, almost everything was ok, except the dates. They were
> somehow converted into numeric form. For example, May 18, 2007 was
> displayed as "39220". Can someone suggest a quick macro that can
> convert all the numbers back to the original date entry?
>
>

 
Reply With Quote
 
Gord Dibben
Guest
Posts: n/a
 
      25th May 2007
For clarification..............

Excel treats all dates as serial numbers starting at Jan 0, 1900

For more on this see Chip Pearson's site.

http://www.cpearson.com/excel/datetime.htm#SerialDates


Gord Dibben MS Excel MVP

On Thu, 24 May 2007 20:53:40 -0400, namsilat <(E-Mail Removed)> wrote:

>I have an excel file that was somehow corrupted. After Excel repaired
>the file, almost everything was ok, except the dates. They were
>somehow converted into numeric form. For example, May 18, 2007 was
>displayed as "39220". Can someone suggest a quick macro that can
>convert all the numbers back to the original date entry?


 
Reply With Quote
 
Don Franco
Guest
Posts: n/a
 
      25th May 2007
But you should be aware that there is also the optiion to use the 1904
format. This can complicate things.....especially using modules or so.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Date Conversion Solar date to Gregorian Mohammad Mobin Microsoft Access Forms 2 4th Jan 2010 06:22 PM
Date Conversion from General Date to Short Date =?Utf-8?B?QnJpYW4gQw==?= Microsoft Access Queries 3 12th Jun 2007 05:03 PM
Date conversion -- what date is B04FC6954E6BC501D9? =?Utf-8?B?RGF2aWQgTW9zcw==?= Microsoft Access VBA Modules 3 7th Nov 2006 12:14 PM
User Control references corrupted in conversion from 1.1 to 2.0 =?Utf-8?B?QW5kcmUgUmFuaWVyaQ==?= Microsoft ASP .NET 0 6th Oct 2005 10:47 PM
Date conversion, hijri date jmassry Microsoft Access Form Coding 1 24th Jun 2004 10:46 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:48 PM.