If then, date + 15yrs

Alphazulu

Board Regular
Joined
Oct 16, 2003
Messages
121
I'm trying to put together an formula (if/then?) that will do the following

Formula to be placed in Cell N3
If E3 = "Initial File"
Then return the date in cell L3 + 15 years


Thanks again -
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Try

=IF(E3="Initial File",DATE(YEAR(L3)+15,MONTH(L3),DAY(L3)),"")
 
Upvote 0
=IF(E3="Initial File",DATE(YEAR(L3)+15,MONTH(L3),DAY(L3)),"")

This worked perfectly! Can it do the same thing for multiple selections? For example, if Initial File or Original File, Final File, Old File, Missing File is in Cell E3 return L3+15yrs.

Or could I point the formula at a list of options that should return the L3 date + 15yrs result?
 
Upvote 0
Try

=IF(OR(E3={"Initial File","Original File","Final File","Old File","Missing File"}),DATE(YEAR(L3)+15,MONTH(L3),DAY(L3)),"")
 
Upvote 0
The exciting part is that I can see this working and am getting closer to making my life a lot easier thanks to your help.

Unfortunately, I keep finding new questions with every small win.

Now I need leave the cell blank if none of the matches (Initial File","Original File","Final File","Old File","Missing File) are found.

Thank you very much for all of your help
 
Upvote 0
Now I need leave the cell blank if none of the matches (Initial File","Original File","Final File","Old File","Missing File) are found.

Um - it does. Try entering "New File" in E3 - the date in N3 should disappear.
 
Upvote 0
aha.

How about if no date is entered into L3 to return blank. It currently returns 12/31/1914?
 
Upvote 0
Try

=IF(L3="","",IF(OR(E3={"Initial File","Original File","Final File","Old File","Missing File"}),DATE(YEAR(L3)+15,MONTH(L3),DAY(L3)),""))
 
Upvote 0

Forum statistics

Threads
1,222,068
Messages
6,163,720
Members
451,854
Latest member
Tiffany Smith

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