

I have tried doing WORKDAY formula but gives me incorrect dates if I keep the equations above. What I would like the formula to do is, if it lands on a Saturday subtract 1 and land on a Friday and if it lands on Sunday add 1 and land on Monday so the result would look like the following:

If in Column F for example is The Columns according to the equations above would equal: For example: If I have a dates in Column F and I have subtractions/additions in columns B-E The YEAR function returns the year based on the given date in a 4-digit serial number format.So my question is how do I subtract from a specific dates, while counting weekends and having the end result land on a weekday. The MONTH is used to get the month as integer number (1 to 12) from date.ĭAY function gets the day as a number (1 to 31) from a date

Test for specified conditions, then returns the corresponding values In this tutorial, it provides a formula for converting time to decimal minutes in Excel. Here provides a formula that converts time to decimal hours in Excel and explains how the formula works. Introducing formulas for convert text stored date to Excel standard date. This tutorial provides formulas to convert between Unix time and Excel time. For that we need to use the Weekday function. Convert Unix Timestamp to Excel Time or Vice Inverse RoundDown (DateDiff (StartDate.SelectedDate, EndDate.SelectedDate, Days) / 7, 0) And then the difference of the days not in the whole weeks.Take an instance, the weekends are Monday and Tuesday, now you can count days excluding weekends and holidays with below the formulas: =NETWORKDAYS.INTL(B3,C3,3,B6:B10) If you want to specify the custom weekends, you can use the NETWORKDAYS.INTL function as below: =NETWORKDAYS.INTL(start_date,end_date,) NETWORKDAYS function: gets the number of working days between two dates.īy default, the weekends indicate Saturday and Sunday. Press Enter key to get the counting result. In cell B3 and C3 are the start date and end date, in cell B6:B10 list the holidays, please use below formula to count days excluding weekends and holidays. Holiday: optional, the cell range that contains the holiday dates that you want to count days excluding. Syntaxt and Arguments Start_date, end_date: the date range that you want to count workdays from. Generic formula: NETWORKDAYS(start_date,end_date,)

If you want to follow along with this tutorial, please download the example spreadsheet. Generally, the DATEDIF function can count the days between two dates, but if you want to count the days between two dates but excluding weekends, which means to count workdays only in a date range in Excel, which formula can help you? Excel Formula: Count Days Between Two Dates Excluding Weekends
