Using ISERROR and IS BLANK

jessebh2003

Board Regular
Joined
Feb 28, 2020
Messages
71
Office Version
  1. 365
Platform
  1. Windows
Hello! I'm writing a formula that if the cell to the left is blank or text will make the formula cell blank, otherwise if the cell to the left is numbers the nested formula will execute. I'm sure I'm missing something but can't figure out what. Appreciate any help! Thanks.

This is my current formula in F2.
Excel Formula:
=IFERROR(DATE(YEAR(E2)+3,MONTH(E2),DAY(E2)),"")

Here's what I've tried, which doesn't work.
Excel Formula:
=IF(ISERROR(OR(ISBLANK(E2),"",(DATE(YEAR(E2)+3,MONTH(E101),DAY(E2)),"")
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Try this:
Excel Formula:
=IF(ISNUMBER(E2),DATE(YEAR(E2)+3,MONTH(E2),DAY(E2)),"")
or more simply:
Excel Formula:
=IF(ISNUMBER(E2),EDATE(E2,36),"")
 
Upvote 0
Solution
Perhaps this will work.

=IF(OR(ISBLANK(E2),ISTEXT(E2)),"",DATE(YEAR(E2)+3,MONTH(E101),DAY(E2)))
 
Upvote 0
Try this:
Excel Formula:
=IF(ISNUMBER(E2),DATE(YEAR(E2)+3,MONTH(E2),DAY(E2)),"")
or more simply:
Excel Formula:
=IF(ISNUMBER(E2),EDATE(E2,36),"")
Joe4, the simple formula works perfectly!!! I was over complicating it. Thank you so much for your help!
 
Upvote 0
You are welcome!
Glad we were able to help.

Note that you may be able to make it even simpler by using the second formula I posted, which uses the "EDATE" function to add 36 months (3 years) to the date.
 
Upvote 0

Forum statistics

Threads
1,213,546
Messages
6,114,251
Members
448,556
Latest member
peterhess2002

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