Combining If/then with date population
I am trying to figure out a way to auto-populate a date, but only IF a specific condition is met. (Screenshot below)
I used the formula =WORKDAY([1st Test Date] 1,6) to auto-populate the "Second Test Scheduling Date", but I would like this to only auto-populate if the column "1st Test Results" is "Positive".
Any tips? I'm definitely running up against a wall on this one!
Best Answer
-
Hi @Megan T,
you need to combine WORKDAY with IF
Logic is: IF the cell "1st Test Results" has the value "Positive", then use the WORKDAY formula, IF not, leave blank.
=IF([1st Test Results]@row = "Positive", WORKDAY([1st Test Date] 1,6), "")
Hope this helps
Stefan
Smartsheet Consulting, Solution Building, Training and Support.
Projects for Processes and for People.
Answers
-
Hi @Megan T,
you need to combine WORKDAY with IF
Logic is: IF the cell "1st Test Results" has the value "Positive", then use the WORKDAY formula, IF not, leave blank.
=IF([1st Test Results]@row = "Positive", WORKDAY([1st Test Date] 1,6), "")
Hope this helps
Stefan
Smartsheet Consulting, Solution Building, Training and Support.
Projects for Processes and for People.
-
Hi @Megan T
The new Healthcare Community Group is now live! This group is a space for all things Healthcare and your question sounds like a great use of a discussion post in the group. I encourage you to ask questions, share use cases and collaborate with others in your industry. We will also have some excited healthcare-related updates being announced in the Healthcare Community Group very shortly.
Please let me know if you have any questions about the new group!
-Brianne
Brianne Laird, Sponsorships & Brand Activations Program Manager
-
Thanks, all!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.1K Get Help
- 414 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 141 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!