Rolling 12 Months using AVG COLLECT formula help
![Tina Davis](https://us.v-cdn.net/6031209/uploads/defaultavatar/nWRMFRX6I99I6.jpg)
Hi, I am looking for some help. I am using the above SUMIFS, however doing an AVG COLLECT with two criteria. I can get the above formula to work for 6 months, however I am at a loss to get it to work for 12 months in the past. Below is my current formula and would appreciate any help.
=ROUND(AVG(COLLECT({Data days from requested to received}, {Data test fit received}, AND(@cell <= IFERROR(DATE(YEAR(TODAY()), MONTH(TODAY()) + 1, 1), DATE(YEAR(TODAY()) + 1, 1, 1)) - 1, @cell >= IFERROR(DATE(YEAR(TODAY()), MONTH(TODAY()) - 6, 1), DATE(YEAR(TODAY()) - 1, MONTH(TODAY()) + 6, 1))), {Data design resource used}, "SDCM", {Data test fit approval status}, "Approved")), 1)
Best Answer
-
I provided a link in my last comment. Is it not working?
Basically I suggested that you use 365 days (or -183 to +183) instead of trying to use dates.
AND(@cell>= TODAY(-183), @cell<= TODAY(183))
Answers
-
Did you see my comment on the other thread from earlier today?
-
Hi Paul, I don't see it. Can you direct me to it?
-
I provided a link in my last comment. Is it not working?
Basically I suggested that you use 365 days (or -183 to +183) instead of trying to use dates.
AND(@cell>= TODAY(-183), @cell<= TODAY(183))
-
Thank you, I will give it a try!
-
It worked perfectly, thank you so much and I am so sorry I didn't see the early post:)
-
Happy to help. 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.3K Get Help
- 445 Global Discussions
- 144 Industry Talk
- 477 Announcements
- 5K Ideas & Feature Requests
- 85 Brandfolder
- 151 Just for fun
- 72 Community Job Board
- 488 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 302 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!