I have an expenses spreadsheet which I’d like to show the next due date for a bill due on the nth day of each month.
For example, assuming said bill is due on the 15th of each month:
=FOO(2014-02-14, 15) => 2014-02-15 =FOO(2014-02-15, 15) => 2014-02-15 =FOO(2014-02-16, 15) => 2014-03-15
I know of EOMONTH and EDATE but I’m not sure how to build a formula that does exactly what I need.
For any date in A1 this formula in
Excel gives you the
next 15th of the month
….so in your example if A1 is 14th Feb 2014 that will give you 15th Feb 2014, and the same with 15th Feb 2014, but when A1 is 16th Feb 2014 that formula will give you 15th
If A1 contains a Date and B1 contains a number, like 20, then in another cell enter:
and if you want to force this into the future, use:
The formula in
=DATE(YEAR($A1),IF(DAY($A1)<=15,MONTH($A1),MONTH($A1)+1),15). If you need to base your due dates off today’s date, just replace
TODAY(). Hope this helps.