Another proper and fast way of doing this is simply looping through each added day, while testing if we are dealing with a weekday, if so, add a day to compensate.
This function is preferred to using the weekday function,
because the weekday function is an Xl reference that not all Excel users have switched on. Note that you can replace vbSaturday and vbSunday by resp 6 and 7, depending on the date system used.
Example:
Function AddBussDays() As Long
For i = 1 To 5
If DateAdd("d", i + intWeekend, Date) = vbSaturday Or _
DateAdd("d", i + intWeekend, Date) = vbSunday Then
intWeekend = intWeekend + 1
End If
Next i
AddBussDays = DateAdd("d", i + intWeekend, Date)
End Function
This function includes the first day in the calculation, if you do not want this to happen, simply increase the loop to For i=1 to 6.
It's a simple!
Have Fun,
CookieMonster.