How to make the cell blank if the other cells used in my formula are blank?

Hi everyone,

I'm new to using formulas in SmartSheet.

I currently have a formula for one of my rows which works properly (thanks to the help of a member here!):


"=IF(GLP@row <> "YES", IF([Expiration Date]@row < TODAY(), "YES", "NO"), IF([Expiration Date]@row < TODAY(-365), "YES", "NO"))"


(Basically, the cell marks "YES" if a product is not "GLP" and the "expiry date" is expired, but if the product is "GLP" it will mark "NO", until one year after "expiry date").


Anyway, the problem is: when there are no values in the "GLP" cell and/or in the "Expiry Date" Cell (ie. the 2 cells are empty), the cell will by default mark "YES".


But I would like this cell to be empty if the "GLP" and "Expiry Date" cells are empty. (And not mark "YES" by default).


What could I add to my formula in order to obtain this? (I have tried adding various "ISBLANK" statements, but they don't seem to fit in).


I really would appreciate any advice.


Thank you in advance!


Megan

Best Answer

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!