Module 9 · Dates and Times
Invoice due dates

Wei sends invoices. His clients pay at the end of the next month. Wei used to count the days on a paper calendar, in all three of his date formats. His contracts also renew after some months. Excel can find both dates for him.
Steps
Find the end of a month with EOMONTH
EOMONTH gives the last day of a month. The second value moves the month: 0 is the same month, 1 is the next month.
How to do it
- Select the cell for the result.
- Type =EOMONTH(
- Type the cell with the date, a comma, the number of months and a closing bracket.
- Press Enter.
- EOMONTH gives a number. Format the cell as a date to see the date. In this sheet, the cells already have a date format.
- EOMONTH(C5,0) gives the end of the same month.
=EOMONTH(C5,1)Task: Find the due date of the Pine Hotel invoice. Put the result in cell D7.
Add months with EDATE
EDATE adds a number of months to a date. The day stays the same if the month has it.
How to do it
- Click cell H5.
- Type =EDATE( and the cell with the date. Type a comma, the number of months and a closing bracket.
- Press Enter.
- A negative number goes back: EDATE(F5,-1) is one month before.
=EDATE(F5,G5)Task: Find the renewal date of the Pine Hotel contract. Put the result in cell H7.