Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Function DaysPerMonthDIFF(d1 As Date, d2 As Date)
Dim d As Date, dEND As Date
d = d1
Do
dEND = DateSerial(Year(d), Month(d) + 1, 0)
If dEND > d2 Then
DaysPerMonthDIFF = DaysPerMonthDIFF & Format(d, "mmm") & ":" & d2 - d + 1 & ","
Exit Do
Else
DaysPerMonthDIFF = DaysPerMonthDIFF & Format(d, "mmm") & ":" & dEND - d + 1 & ","
End If
d = dEND + 1
Loop
DaysPerMonthDIFF = Left(DaysPerMonthDIFF, Len(DaysPerMonthDIFF) - 1)
End Function