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