If/Then formula with two options based on a date?
Hi all,
While I am getting the hang of Smartsheet, I'm still a novice with formula. I currently have a column formula
=[Record Entry Date]@row + 8
This adds 8 days to the "Record Entry Date" to create an "Archive Date" for each row.
However, I now need to adjust the formula to be either 8 days or 30 days, depending on the entry in the "Audience Campaign Status" column.
-- If the Audience Campaign Status is "Inactive," then I need to make the Archive Date 30 days after the Record Entry Date.
-- If the Audience Campaign Status is "Active," then I need to make the Archive Date 8 days after the Record Entry Date.
This has me stumped, as I'm still figuring out nested formulas. Does anyone have any advice?
Thank you!
Best Answer
-
@jmhoward You can use and IF function for what you're trying to do. Assuming Active and Inactive are the only options, the below formula should work.
=IF([Audience Campaign Status]@row = "Active", [Record Entry Date]@row + 8, [Record Entry Date]@row + 30)
Answers
-
@jmhoward You can use and IF function for what you're trying to do. Assuming Active and Inactive are the only options, the below formula should work.
=IF([Audience Campaign Status]@row = "Active", [Record Entry Date]@row + 8, [Record Entry Date]@row + 30)
-
This is perfect! Thank you so much, @sharkasits!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.5K Get Help
- 424 Global Discussions
- 136 Industry Talk
- 465 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 146 Just for fun
- 63 Community Job Board
- 465 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 301 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!