[mso] Re: Excel Function - Explanation needed

  • From: "Ray Blake" <ray@xxxxxxxxx>
  • To: <mso@xxxxxxxxxxxxx>
  • Date: Mon, 29 Dec 2003 16:45:35 -0000

Johan,

My teacher always used to say, "Never apologise for asking a question."
Good advice.

As I understand it, you have today's date in cell L9 and have to put
your result in cell A4.

If that's the case, try this in A4:

=DAY(L9+CHOOSE(WEEKDAY(L9),1,7,6,5,4,3,2))&" -
"&DAY(L9+CHOOSE(WEEKDAY(L9),1,7,6,5,4,3,2))+4&"
"&CHOOSE(MONTH(L9+CHOOSE(WEEKDAY(L9),1,7,6,5,4,3,2)),"January","February
","March","April","May","June","July","August","September","October","No
vember","December")&" "&YEAR(L9+CHOOSE(WEEKDAY(L9),1,7,6,5,4,3,2))

It's a bit of a monster, but it does the job. If today is a Monday, the
formula will automatically go to NEXT Monday. If you want it to use the
present date instead, change all the 7s to zeros.

Ray

_____________

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 Johan Louw (JG)
Sent: 29 December 2003 16:21
To: mso@xxxxxxxxxxxxx
Subject: [mso] Re: Excel Function - Explanation needed


Hi Ray & Haldun

Thank you very, very much for this dearly appreciated Information.

Now, if I may stretch the envelope just a little further, <smile>

In a weekly report, I use cell "A4" for the reports duration dates
e.g. "01 - 05 January 2003" where the start date always will be on a
Monday and end date on a Friday.

I know I can Use the formula you've so kindly helped me with in e.g.
"A2" and the "-" in "A3" and use a similar formula in  "A5,A6 and "A7"
to get the desired date format as above, with just changing each
cell's custom formatting, because in cell "L9" I have the formula
"-TODAY()", to refer my new formula to.=20

However in this template I can only use "A4" for this purpose.=20

Would there possibly be some way of using this formula to get the
desired result in only one Cell?

With Kind Regards

Johan




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