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
- Customer Resources
- 66.6K Get Help
- 434 Global Discussions
- 153 Industry Talk
- 495 Announcements
- 5.3K Ideas & Feature Requests
- 85 Brandfolder
- 155 Just for fun
- 77 Community Job Board
- 508 Show & Tell
- 34 Member Spotlight
- 2 SmartStories
- 308 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!