Flag if DATE A > DATE B
I'm working on a formula for a project tracker in my organization. The request is to flag a row if "Received Date" is greater than "Actual Date" for 3 separate dates - PO Received, Start Date, and End Date. I currently have a formula that works only if all dates are filled out:
=IF(OR([PO Received Date]@row > [PO Needed by Date]@row), OR([Actual Start Date]@row > [Projected Start Date]@row, OR([Actual End Date]@row > [Projected End Date]@row, 1, 0)))
Since it's a working tracker, not all 6 cells will be filled out. I'm working on this formula to try to flag the row based on cells with dates:
=IF(OR(NOTBLANK([PO Received Date]@row > [PO Needed by Date]@row, (NOTBLANK([Actual Start Date]@row > [Projected Start Date]@row, (NOTBLANK([Actual End Date]@row > [Projected End Date]@row, 1, 0)))))))
Screen shot for reference:
Answers
-
I'm not sure I follow... Are you trying to flag the row if any one of the "Projected" dates is less than the corresponding "Actual" date or only the latest set of dates to be filled out?
-
Thanks for your quick response and I apologize for not being clear. I've been running around in circles with this sheet! I'm trying to flag the row if actual date is less than projected date for any of the 3 sets of dates.
-
Try this...
=IF(OR([PO Received Date]@row > [PO Needed by Date]@row, [Actual Start Date]@row > [Projected Start Date]@row, [Actual End Date]@row > [Projected End Date]@row), 1)
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!