Within the last 12 months
I can't get my formula to pull violations reported only within the last 12 months. Can someone see what I am missing?
=COUNTIFS({Compliance Master File V2 EE-number}, [EE Number]@row, {Compliance Master File - Compliance Category}, "Reinstatement"), AND({Compliance Master File V2 Violation Date}<=[Today]@row, @{Compliance Master File V2 Violation Date}>= TODAY(-365)))
I have my historical count and I added a "today" column, if that is not needed - would love to remove it.
My working formula:
=COUNTIFS({Compliance Master File V2 EE-number}, [EE Number]@row, {Compliance Master File V2 - Compliance Category}, "Reinstatement")
Best Answer
-
I simplified your cross-sheet ref names for demonstration, but does this get you the data you are looking for:
=COUNTIFS({Master_EE}, [EE Number]@row, {Master_Category}, "Reinstatement", {Master_ViolationDate}, >=TODAY(-365))
Answers
-
Try this instead:
=COUNTIFS({Compliance Master File V2 EE-number}, [EE Number]@row, {Compliance Master File - Compliance Category}, "Reinstatement", {Compliance Master File V2 Violation Date}, AND(@cell <= TODAY(), @cell >= TTODAY(-365)))
-
I simplified your cross-sheet ref names for demonstration, but does this get you the data you are looking for:
=COUNTIFS({Master_EE}, [EE Number]@row, {Master_Category}, "Reinstatement", {Master_ViolationDate}, >=TODAY(-365))
-
That worked, thanks so much!!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65K Get Help
- 441 Global Discussions
- 140 Industry Talk
- 472 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 69 Community Job Board
- 497 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!