I’m creating a spreadsheet that calculates data based on the current month and then 3 months out, 6 months out, 9 months out and 12 months out.
What I want to do is to write a formula so that my boss can enter in the date for the first day of the current month in the “Start-Date Current Month” cell and the last day of the month in the “End-Date Current Month” cell and have the other Start and End dates automatically fill in.
The Start-Dates were easy, as every month’s first day is “1”.
But how do I get the End Dates to fill as the 30th when appropriate or the 31st when appropriate?
This is the formula I wrote to result in the date 3 months/6 months hence, etc:
=DATE(YEAR($C4),MONTH($C4)+F8,DAY($C4))
I’m assuming that I need to do an IF function or a LOOKUP function, but that’s a bit beyond me.
How do I write a formula that will add 3/6/9/12 months to the current month entered and result in the correct last day of the month?