need help including =EDATE in a nested if statement

excvtr

New Member
Joined
Oct 28, 2013
Messages
3
i have a formula that i want to increase the typed in date by a week, month, or year, but am having trouble putting in the "edate function

my formula is as follows:

=IF(F8="WEEKLY",I8+6,=IF(F8="MONTHLY",I8+30,=IF(F8="YEARLY",I8+365,"")))

i want to replace the +30, and the +365 with and edate function

any help would be greatly appreciated
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Try this...

=IF(F8="WEEKLY",I8+6,IF(F8="MONTHLY",EDATE(I8,1),IF(F8="YEARLY",EDATE(I8,12),"")))
 
Upvote 0
when you say I8+30, if you want a month after I8, then you can use maybe =edate(I8,1), the "1" indicates 1 month and for that of 365, =edate(I8,12) where 12months is equiv to 365days
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,849
Members
452,361
Latest member
d3ad3y3

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