[mso] Re: Access Date Comparisons & Formatting :VSMail mx3

  • From: James LaBorde <jlaborde@xxxxxxxxx>
  • To: "'mso@xxxxxxxxxxxxx'" <mso@xxxxxxxxxxxxx>
  • Date: Fri, 22 Aug 2003 09:22:30 -0700

Glenda,

Ray's got the answer for you.  Just remember though that a zero length
string is not the same as a null if you do any searching on it later.

James

-----Original Message-----
From: Ray Blake [mailto:ray@xxxxxxxxx]
Sent: Thursday, August 21, 2003 11:29 AM
To: mso@xxxxxxxxxxxxx
Subject: [mso] Re: Access Date Comparisons & Formatting :VSMail mx3


Yes, this is pretty straightforward. Your formula for C1 is:

=IF (B1<A1,2377,"")

Note that I've put 2377 there because it's not immediately clear where
this number is coming from. It could be replaced in the formula by a
cell reference or some sort of calculation. Also note that at the end we
have two sets of double quotes with nothing in between.

For formula D1, you need:

=YEAR (B1)

Or, you could just format the cell to hold the full date (=B1) but to
only show the year element. If you want to do that, make the formula:

=B1

and apply a custom format, like this: from the Format menu, select
Cells, go to the Number tab and select 'custom'. In the box on the right
enter:

yyyy

Done!

Ray Blake



_____________

This email is from Ray Blake, Head of Software Design, GR Business
Process Solutions. It is confidential and intended for the addressee
only. The contents are private and may be legally privileged. If you
receive this email in error we would be grateful if you would advise the
sender and delete the email from your system.

For more information on the services that we offer please visit us at
our website: - www.grbps.com 


-----Original Message-----
From: mso-bounce@xxxxxxxxxxxxx [mailto:mso-bounce@xxxxxxxxxxxxx] On
Behalf Of Glenda Wells
Sent: 21 August 2003 18:46
To: mso@xxxxxxxxxxxxx
Subject: [mso] Access Date Comparisons & Formatting

Hi.

This may not be as complex as I'm thinking it is.  I need to compare the
date in fields A and B.  If field B date is less than the value in field
A then I need to display a numeric value in field C.  If field B date is
greater than the value in field A then field C displays nothing.  Also,
I need to format the value of field B in Field D as year. Fields A, B
and C can be in the same table.

A                       B                               C
D
8/15/2003               8/12/2003                       2,377
2003
8/10/2002               7/8/2003                        -----
2002
7/11/2002               7/11/2002                       512
2002



*************************************************************
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
*************************************************************
*************************************************************
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:

  • » [mso] Re: Access Date Comparisons & Formatting :VSMail mx3