To get the end of the month based on the date in column A use:
Then to get the number of days between you can either use:![]()
=IF(WEEKDAY(DATE(YEAR(A4),MONTH(A4)+1,1)-1,2)>6,DATE(YEAR(A4),MONTH(A4)+1,1)-3,IF(WEEKDAY(DATE(YEAR(A4),MONTH(A4)+1,1)-1,2)>5,DATE(YEAR(A4),MONTH(A4)+1,1)-2,DATE(YEAR(A4),MONTH(A4)+1,1)-1))
or:![]()
=D4-A4
![]()
=NETWORKDAYS(A4,D4)
Bookmarks