ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Workdays Function (https://www.excelbanter.com/excel-worksheet-functions/104073-workdays-function.html)

KeyMike

Workdays Function
 
How can I create a formula that will look at a date, such as today's date,
count the number of workdays from the 1st of the month, and return a date
that is the same number of workdays from the 1st of the previous month?
Thanks in advance for your help.

Bob Phillips

Workdays Function
 
=WORKDAY(DATE(YEAR(A1),MONTH(A1)-1,1),NETWORKDAYS(DATE(YEAR(A1),MONTH(A1),1)
,A1))

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"KeyMike" wrote in message
...
How can I create a formula that will look at a date, such as today's date,
count the number of workdays from the 1st of the month, and return a date
that is the same number of workdays from the 1st of the previous month?
Thanks in advance for your help.





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

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