Formula for IF THEN Date
Hi all,
I am trying to write a formula for an IF THEN situation but I am stuck. I need to make a formula to show a value per month only within the start date and end date. For example, below is a picture of a row on the sheet I'm working on. I need to create a formula below each month that would show the monthly production rate only if the product is within the start and end date. For example, Nov, Dec and Jan would have the monthly production rate of the price shown for this one project below but that price wouldn't show for Feb because it's not within the date range. (see first photo). But we want it to look like the second photo where it populates for the date range it is within and then shows $0 if it doesn't fall within that range.
(Currently looks like)
(Wants it to look like)
I hope that makes sense. If you need anything clarified, please let me know. Any help is much appreciated.
Thank you!
Answers
-
You will need to adjust the formula for each column, but the basic idea is
=IF(AND([End Date]@row >= DATE(2024, 11, 1), [Start Date]@row < DATE(2024, 12, 1)), [Monthly Production Rate]@row, 0)
-
That worked perfectly! Thank you, Paul!
-
Happy to help. 👍️
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!