Excel already knows when the month ends.
The EOMONTH function in Microsoft Excel returns the last day of a month in the past, the current month, or a month in the future. Whether you need to calculate end-of-month due dates, deadlines, ...
The DAYS function in Microsoft Excel returns the number of days between two dates. The formula for the DAYS (end_date, start_date). The DAYS360 function returns the number of days between two dates ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results