COUNTIFS with HAS/CONTAINS not working

Answers
-
I'm getting an unparseable on my formula below for picking up every instance of DME.
=COUNTIFS({Services}, CONTAINS([Description], $Description@row, {Created}, IFERROR(YEAR(@cell ), 0) = YEAR(TODAY()))
This one is not picking them all up. I tried to change Has to Contains, but still same #
=COUNTIFS({Services}, HAS(@ ), {Created}, YEAR(@cell ) = YEAR(TODAY()), {Services}, $Description@row)
-
Hi @Amy Swan,
You do want HAS for this:
=COUNTIFS({Services}, HAS(@cell, "DME"), {Created}, YEAR(@cell) = YEAR(TODAY()))
I'm not sure what the extra bit at the end of your formula is being used for here - if you are using the description row to put in the different options (e.g. DME) and then doing the formula based off that, then it would be something like this:
=COUNTIFS({Services}, HAS(@cell, Description@row), {Created}, YEAR(@cell ) = YEAR(TODAY()))Hope this helps, but if I've misunderstood something or you've still any problems/questions just let us know! 🙂
-
This worked! Thank you so much!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 67K Get Help
- 441 Global Discussions
- 154 Industry Talk
- 502 Announcements
- 5.4K Ideas & Feature Requests
- 85 Brandfolder
- 156 Just for fun
- 79 Community Job Board
- 512 Show & Tell
- 34 Member Spotlight
- 2 SmartStories
- 307 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!