If Statements
Hi everyone,
I hope this is an easy answer, but I am having trouble finding it despite checking the forums. I have a sheet where there are two columns. Column 1 is a Yes/No and the second is a date. What I am trying to do is create an IF statement where if Column 1 is Yes and the second is not a date that is past, it will return a "Yes." However, if either of the conditions are not met, it will return a "No."
The problem I am having is that when the first check (Column 1) has "No", it doesn't return any value. I am not sure if it it should be an IF(AND or something different.
Thank you!
Best Answer
-
Hey @Whalstead1,
IF(AND()) is what you'll want to use:
=IF(AND([Column 1]@row = "Yes", [Column 2]@row > TODAY()), "Yes", "No")
Hope this helps!
If my response was helpful in any way (or answered your question) please be sure to upvote it, mark it as awesome, or mark it as the accepted answer!
I'm always looking to connect with other industry professionals, feel free to connect with me on LinkedIn as well!
Answers
-
Hey @Whalstead1,
IF(AND()) is what you'll want to use:
=IF(AND([Column 1]@row = "Yes", [Column 2]@row > TODAY()), "Yes", "No")
Hope this helps!
If my response was helpful in any way (or answered your question) please be sure to upvote it, mark it as awesome, or mark it as the accepted answer!
I'm always looking to connect with other industry professionals, feel free to connect with me on LinkedIn as well!
-
Thank you! That worked perfectly. I must have had a typo somewhere. Thank you!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.8K Get Help
- 376 Global Discussions
- 207 Industry Talk
- 440 Announcements
- 4.5K Ideas & Feature Requests
- 139 Brandfolder
- 129 Just for fun
- 130 Community Job Board
- 449 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 284 Events
- 33 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!