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
-
Try something like This.
=IF(OR(GLP@row = "", [Expiration Date]@row = ""), "",IF(GLP@row <> "YES", IF([Expiration Date]@row < TODAY(), "YES", "NO"), IF([Expiration Date]@row < TODAY(-365), "YES", "NO")
Did that work?
I hope that helps!
Be safe and have a fantastic weekend!
Best,
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
✅Did my post(s) help or answer your question or solve your problem? Please help the Community by marking it as the accepted answer/helpful. It will make it easier for others to find a solution or help to answer!
SMARTSHEET EXPERT CONSULTANT & PARTNER
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35
Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.
Answers
-
Try something like This.
=IF(OR(GLP@row = "", [Expiration Date]@row = ""), "",IF(GLP@row <> "YES", IF([Expiration Date]@row < TODAY(), "YES", "NO"), IF([Expiration Date]@row < TODAY(-365), "YES", "NO")
Did that work?
I hope that helps!
Be safe and have a fantastic weekend!
Best,
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
✅Did my post(s) help or answer your question or solve your problem? Please help the Community by marking it as the accepted answer/helpful. It will make it easier for others to find a solution or help to answer!
SMARTSHEET EXPERT CONSULTANT & PARTNER
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35
Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.
-
Hi Andréé,
It works great, brilliant!
Thank you so much for you help! I really appreciate it :)
Have a great weekend as well!
Megan
-
SMARTSHEET EXPERT CONSULTANT & PARTNER
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35
Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.2K Get Help
- 419 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 142 Just for fun
- 58 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 299 Events
- 38 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!