ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Weekday formula calculating to end of month (https://www.excelbanter.com/excel-worksheet-functions/101553-weekday-formula-calculating-end-month.html)

DebbieK

Weekday formula calculating to end of month
 

I have a timesheet that I have set the formula to calculate the dates
and days excluding weekends for a given month. How do I set the
formula to stop on the last day of the month?

My current formula for the first cell (H6) is as follows:
=IF(WEEKDAY(AB2-1)<=5,AB2,AB2+8-WEEKDAY(AB2-1))
Note - cell AB2 is the entry for the first workday of the month

My current formula is as follows for the cells thereafter:
=IF(WEEKDAY(H6-1)<5,H6+1,H6+3)


Thanks for any assistance!




--
DebbieK


All times are GMT +1. The time now is 12:41 PM.

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