[mso] Re: Custom Date difference

  • From: "Robert Carneal" <carnealre@xxxxxxxxxxxx>
  • To: <mso@xxxxxxxxxxxxx>
  • Date: Wed, 21 Jul 2004 14:22:03 -0500

I am aware valid dates in Excel begin 1900-01-01 (Jan 1, 1900), but can
anyone explain this?

In cell A2, formatted as Text, is the date 1801-07-02. I would have
thought my formula to convert that from text to a real date would fail,
but it changed it to 3741-07-02 !!

I am not picking on Wilson, but I am making use of his formula with one
difference. He had:
---copy---
=IF(AND(ISNUMBER(VALUE(LEFT(A1,4))),ISNUMBER(VALUE(MID(A1,6,2)));ISNUMBE
R(VALUE(RIGHT(A1,2)))),DATE(LEFT(A1,4),MID(A1,6,2),RIGHT(A1,2)),0)
---End---

I changed it to:
=IF(AND(ISNUMBER(VALUE(LEFT(A1,4))),ISNUMBER(VALUE(MID(A1,6,2)),ISNUMBER
(VALUE(RIGHT(A1,2)))),DATE(LEFT(A1,4),MID(A1,6,2),RIGHT(A1,2)),0)

(I took the semi-colon out and used a comma.) Would my change be
responsible for this date changing?

I am using Excel XP.

Thank you.

Robert


*************************************************************
You are receiving this mail because you subscribed to mso@xxxxxxxxxxxxx or 
MicrosoftOffice@xxxxxxxxxxxxxxxx

To send mail to the group, simply address it to mso@xxxxxxxxxxxxx

To Unsubscribe from this group, send an email to 
mso-request@xxxxxxxxxxxxx with the word "unsubscribe" (without the quotes) in 
the subject line.

Or, visit the group's homepage and use the dropdown menu.  This will also allow 
you to change your email settings to digest or vacation (no mail).
//www.freelists.org/webpage/mso

To be able to use the files section for sharing files with the group, send a 
request to mso-moderators@xxxxxxxxxxxxx and you will be sent an invitation with 
instructions.  Once you are a member of the files group, you can go here to 
upload/download files:
http://www.smartgroups.com/vault/msofiles
*************************************************************

Other related posts: