ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Setting up and Configuration of Excel (https://www.excelbanter.com/setting-up-configuration-excel/)
-   -   Workday return a Saturday date (https://www.excelbanter.com/setting-up-configuration-excel/135891-workday-return-saturday-date.html)

Jessie

Workday return a Saturday date
 
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

Niek Otten

Workday return a Saturday date
 
Hi Jessie,

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

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Jessie" wrote in message ...
| 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



Bob Phillips

Workday return a Saturday date
 
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)

"Niek Otten" wrote in message
...
Hi Jessie,

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

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Jessie" wrote in message
...
| 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






All times are GMT +1. The time now is 04:14 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com