COUNTIFS Formula
Good morning,
I am trying to do a COUNTIFS formula and getting a #Unparseable error here is the formula I am trying to set up.
=COUNTIFS([Date]:[Date],(IFERROR(YEAR(@cell), 0) = 2022, IFERROR(MONTH(@cell), 0) = 12),([Exception Category]:[Exception Category], "TILA/RESPA"))
Thanks for your help.
Best Answer
-
@Ivan Perez You need the conditional equation in your iferror statement. It also always follows criteria range, then criteria for each set.
=COUNTIFS([Date]:[Date], IFERROR(YEAR(@cell) = 2022, 0), [Date]:[Date], IFERROR(MONTH(@cell) = 12, 0), [Exception Category]:[Exception Category], "TILA/RESPA")
if you wanted year and month combined, you could do that with the and function.
=COUNTIFS([Date]:[Date], and(IFERROR(YEAR(@cell) = 2022, 0), IFERROR(MONTH(@cell) = 12, 0)), [Exception Category]:[Exception Category], "TILA/RESPA")
Let me know if that works.
Answers
-
@Ivan Perez You need the conditional equation in your iferror statement. It also always follows criteria range, then criteria for each set.
=COUNTIFS([Date]:[Date], IFERROR(YEAR(@cell) = 2022, 0), [Date]:[Date], IFERROR(MONTH(@cell) = 12, 0), [Exception Category]:[Exception Category], "TILA/RESPA")
if you wanted year and month combined, you could do that with the and function.
=COUNTIFS([Date]:[Date], and(IFERROR(YEAR(@cell) = 2022, 0), IFERROR(MONTH(@cell) = 12, 0)), [Exception Category]:[Exception Category], "TILA/RESPA")
Let me know if that works.
-
Hello Samuel,
Thank you for taking the time to respond to my post. Your solution worked perfectly.
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
- 496 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!