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
- Customer Resources
- 64.9K Get Help
- 439 Global Discussions
- 138 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 67 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!