if and blank
Hi,
I have a date that a survey was completed and a date that someone has contacted a customer and I'm looking to create a formula that highlights if the response date was over 3 days ago AND there has not been a successful call (the contact date column will be blank) then mark this as red, if the response data was over 3 days ago and there has been a successful call (the contact date column will have a date) mark it as green.
I have tried:
=IF(AND([Survey Response Date]@row >TODAY(+3) , [Successful Contact Date]@row = ""), "Red", "Green")
Best Answer
-
You are very close. Try switching your date argument up a little...
=IF(AND([Survey Response Date]@row < TODAY(-3), [Successful Contact Date]@row = ""), "Red", "Green")
It helps me to think of dates as numbers with TODAY() being zero. Yesterday would be -1. The day before would be -2. So on and so forth. So more than 3 days in the past would be "less than today minus three".
Answers
-
Hi @Sophie Humphrey
Hope you are fine, please add a column to check How many days have passed since the Survey Response Date use this formula to calculate
=TODAY() - [Survey Response Date]@row
then ad conditional formating as in the following screenshot
bassam.khalil2009@gmail.com
☑️ Are you satisfied with my answer to your question? Please help the Community by marking it as an ( Accepted Answer), and I will be grateful for your "Vote Up" or "Insightful"
-
Hi,
I am well, thank you. I hope you are too.
Thank you for your help, that's working perfectly!
Thanks,
Sophie
-
You are very close. Try switching your date argument up a little...
=IF(AND([Survey Response Date]@row < TODAY(-3), [Successful Contact Date]@row = ""), "Red", "Green")
It helps me to think of dates as numbers with TODAY() being zero. Yesterday would be -1. The day before would be -2. So on and so forth. So more than 3 days in the past would be "less than today minus three".
-
Thanks @Paul Newcome! I has suspected that was the issue but couldn't quite get it there. Thank you for your helpful explanation!
-
Happy to help. 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.3K Get Help
- 423 Global Discussions
- 221 Industry Talk
- 462 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 144 Just for fun
- 59 Community Job Board
- 463 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 300 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!