DPChristman
Board Regular
- Joined
- Sep 4, 2012
- Messages
- 177
- Office Version
- 365
- Platform
- Windows
Essentially what I am trying to do is
Calculate number of years by subtracting entered date (T5) form original data (C5)
Currently, my formula reads =IF(T5="n/a","",YEAR(C5)-YEAR(T5))
As a result, if T5 contains n/a, the cell will return a blank field.
However, I would also like to add =IF(T5="","",YEAR(C5)-YEAR(T5)), so the same result is returned if the field is empty.
I have tried =IF(T5="n/a",",",IF(T5="","",YEAR(C5)-YEAR(T5)) With no success. Is there an easy way to do this?
Calculate number of years by subtracting entered date (T5) form original data (C5)
Currently, my formula reads =IF(T5="n/a","",YEAR(C5)-YEAR(T5))
As a result, if T5 contains n/a, the cell will return a blank field.
However, I would also like to add =IF(T5="","",YEAR(C5)-YEAR(T5)), so the same result is returned if the field is empty.
I have tried =IF(T5="n/a",",",IF(T5="","",YEAR(C5)-YEAR(T5)) With no success. Is there an easy way to do this?