Formulas not working after adding year?

I'm getting one of our dashboards updated for the new year but the previous year didn't have the year part of the formula. I've gotten it added for most but I've run into a couple where when I add the year piece I can't seem to get it to work:
=COUNTIFS({Relevant #}, 1, {Submission Date}, IFERROR(YEAR(@cell ) = 2025))
=AVG(COLLECT({Sat Helper}, {Training}, FIND("Supervisor Training - Q2", @cell) > 0, {Submission Date}, IFERROR(AND(YEAR(@cell ), 0) = 2025)))
Any insights on either of these would be great as I've been staring at them throughout the day. Even the AI tools have given me similar formulas and none of them have worked.
Answers
-
It doesn't look like you have enough parts in your IFERROR. There is nothing to return if there is an error. Try this
=COUNTIFS({Relevant #}, 1, {Submission Date}, IFERROR(YEAR(@cell ) = 2025, ""))
-
That did help, such a simple thing!
Would you have any ides on the 2nd formula?
=AVG(COLLECT({Sat Helper}, {Training}, FIND("Supervisor Training - Q2", @cell) > 0, {Submission Date}, IFERROR(AND(YEAR(@cell ), 0) = 2025)))
-
You do not need the AND function or the accompanying set of parenthesis.
-
You can make the same change to the AVG COLLECT as you made to the COUNTIFS
Remove the part in bold:
=AVG(COLLECT({Sat Helper}, {Training}, FIND("Supervisor Training - Q2", @cell) > 0, {Submission Date}, IFERROR(AND(YEAR(@cell ), 0) = 2025)))
Replace it with this part in bold:
=AVG(COLLECT({Sat Helper}, {Training}, FIND("Supervisor Training - Q2", @cell) > 0, {Submission Date}, IFERROR(YEAR(@cell ) = 2025, "")))
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 67.5K Get Help
- 468 Global Discussions
- 156 Industry Talk
- 511 Announcements
- 5.5K Ideas & Feature Requests
- 87 Brandfolder
- 156 Just for fun
- 81 Community Job Board
- 520 Show & Tell
- 35 Member Spotlight
- 3 SmartStories
- 307 Events
- 35 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!