Issue with CountIFS OR
Hi all,
I am running into some trouble iterating on this formula which was a countifs with an "AND." I am now trying to add an "OR" to the first part. I want to see if the Range 1 contains "Zebra" or "Lion" and was entered in the last 90 days. After scanning these communities, I have tried this three different ways and keep getting invalid operation errors.
=COUNTIFS({External Range1}, "Zebra", OR (@cell = "Lion"), {External Range 5}, < TODAY(90))
I then also read a suggestion to create separate statements, but that has also produced the same error:
=COUNTIFS({External Range 1}, "Zebra", {External Range 5}, <TODAY(90)) + =COUNTIFS({External Range 1}, "Lion", {External Range 5}, <TODAY(90))
Thanks in advance for any help.
Comments
-
1. TODAY(90) is 90 days in the future, not the past. Use TODAY(-90) > DATE
If you need to worry about the future, then add another check for < TODAY()
2. Use OR( criterion1, criterion2)
=COUNTIFS({ref1}, OR(@cell = "Zebra", @cell = "Lion"), {dateref}, >TODAY(-90))
should be what you are looking for.
Craig
-
Hi Craig,
That worked perfectly. Thanks so much for your help.
Matt
-
I am pleased.
Craig
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 439 Global Discussions
- 138 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 488 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives