[mso] Re: Excel Dates

  • From: "Tillotson, Robert N (US SSA)" <robert.tillotson@xxxxxxxxxxxxxx>
  • To: <mso@xxxxxxxxxxxxx>
  • Date: Tue, 15 Apr 2008 12:47:00 -0400

Larry,

If you are only interested in the month and want it to be a number =
instead of an abbreviation then try this:

=3DIF(A5<>"",IF(TYPE(A5)=3D1,MONTH(A5),MONTH(DATEVALUE("1-" & =
MID(A5,FIND("-",A5)+1,3) & "-1900"))),"Unknown")

It will require no modification to your data as Excel will treat the =
invalid dates as text anyway.  It simply pulls the month out of the =
invalid date ( type <> 1) and builds a valid date to confert to a month =
number.=20


Robert Tillotson
BAE-IT
Groton Field Office
860-441-2207

-----Original Message-----
From: mso-bounce@xxxxxxxxxxxxx [mailto:mso-bounce@xxxxxxxxxxxxx] On =
Behalf Of LarrysPCRemedies@xxxxxxx
Sent: Tuesday, April 15, 2008 12:13 PM
To: mso@xxxxxxxxxxxxx
Subject: [mso] Excel Dates

I have a spreadsheet of names with associated dates (dd-mmm-yyyy). Some =
of =20
the entries do not have dates associated and are blank.
=20
I have a column with the formula " =3Dif(f3<>"",month(f3),"Unknown")"  =
to=20
obtain the month number, if there is a date, or to display "Unknown", if =
a  date is=20
not present.=20
=20
As you must know, Microsoft, in their magnificence, has decided the =20
epoch-origin of calendar time to be January 1, 1900, and because some of =
 the dates in=20
my spreadsheet are pre-1900, instead of a month number, I  get a =
=3Dvalue!=20
error.
=20
Is there a way to configure Excel to adjust Excel's beginning of time  =
to,=20
say, January 1, 1800? Failing that, can someone suggest a technique I =
can  use=20
to successfully overcome the =3Dvalue! error?
=20
,,,,,,, Larry  Berlinski
=D4=BF=D4=AC=20


**************It's Tax Time! Get tips, forms and advice on AOL Money &=20
Finance.      (http://money.aol.com/tax?NCID=3Daolcmp00300000002850)

*************************************************************
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, visit the group's homepage and use the =
dropdown menu at the top.  This will allow you to unsubscribe your email =
address or change your email settings to digest or vacation (no mail).
//www.freelists.org/webpage/mso

To be able to share files with the group, you must join our Yahoo sister =
group.  This group will not allow for posting of emails, but will allow =
you to join and share problem files, templates, etc.:  =
http://tech.groups.yahoo.com/group/MicrosoftOffice . This group is for =
FILE SHARING ONLY.

If you are using Outlook and you see a lot of unnecessary code in your =
email messages, read these instructions that explain why and how to fix =
it:
http://personal-computer-tutor.com/abc3/v28/greg28.htm
*************************************************************
*************************************************************
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, visit the group's homepage and use the dropdown 
menu at the top.  This will allow you to unsubscribe your email address or 
change your email settings to digest or vacation (no mail).
//www.freelists.org/webpage/mso

To be able to share files with the group, you must join our Yahoo sister group. 
 This group will not allow for posting of emails, but will allow you to join 
and share problem files, templates, etc.:  
http://tech.groups.yahoo.com/group/MicrosoftOffice . This group is for FILE 
SHARING ONLY.

If you are using Outlook and you see a lot of unnecessary code in your email 
messages, read these instructions that explain why and how to fix it:
http://personal-computer-tutor.com/abc3/v28/greg28.htm
*************************************************************

Other related posts: