Workday return a Saturday date

J

Jessie

Hi,

I used a workday function in my worksheet but the result returns a date on
Saturday... I don't know what I did wrong. I am using excel 2003.

I was trying to calculate the date before month end, say March 31, 2007
=workday(date(2007,3,31),0) and it returns 3/31/2007 which is a Saturday.
But I want 3/30/2007 as the last working date before the end of the month.

Can anyone help me?
 
N

Niek Otten

Hi Jessie,

=WORKDAY(DATE(2007,4,1),-1)

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

| Hi,
|
| I used a workday function in my worksheet but the result returns a date on
| Saturday... I don't know what I did wrong. I am using excel 2003.
|
| I was trying to calculate the date before month end, say March 31, 2007
| =workday(date(2007,3,31),0) and it returns 3/31/2007 which is a Saturday.
| But I want 3/30/2007 as the last working date before the end of the month.
|
| Can anyone help me?
|
| --
| Jessie
 
B

Bob Phillips

Maybe

=WORKDAY(DATE(2007,3,31)+1,-1)

if he wants today unless it is a weekend date

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top