Date function

william11

New Member
Joined
Aug 11, 2014
Messages
21
My date (J4) is 1/15/2014

If billing frequency (H4) is 1, I want formula to add 1 year, every year to 1/15/2014
If billing frequency (H4) is 2, I want formula to add 6 months, every 6 months to 1/15/2014
If billing frequency (H4) is 4, I want formula to add 3 months, every 3 months to 1/15/2014

thank you.
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
I don't know where your formulas are going, but the easiest place would be to put it in J5-J(whatever). Then the formula is:

Code:
=DATE(YEAR(J4),MONTH(J4)+(12/$H$4),DAY(J4))

And you can drag it down.
 
Upvote 0
I don't know where your formulas are going, but the easiest place would be to put it in J5-J(whatever). Then the formula is:

Code:
=DATE(YEAR(J4),MONTH(J4)+(12/$H$4),DAY(J4))

And you can drag it down.



I am sorry I thought a previous formula I had received on this site was messed up but it turns out my dates were incorrect.

=IF(J4>TODAY(),EDATE(J4,12/H4),EDATE(J4,DATEDIF(J4,TODAY(),"m")+12/H4-(MOD(DATEDIF(J4,TODAY(),"m"),12/H4))))

Is what I was trying to do for the record.
 
Last edited:
Upvote 0
In J5:
=IF(COUNT($J$4:J4)<=$H$4,EDATE(J4,12/$H$4),"")

Copy down to J8.
 
Upvote 0

Forum statistics

Threads
1,214,561
Messages
6,120,245
Members
448,952
Latest member
kjurney

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top