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
- 10.7K Get Help
- 63 Global Discussions
- 68 Industry Talk
- 385 Announcements
- 3.5K Ideas & Feature Requests
- 55 Brandfolder
- 125 Just for fun
- 50 Community Job Board
- 464 Show & Tell
- 40 Member Spotlight
- 44 Power Your Process
- 28 Sponsor X
- 234 Events
- 7.3K Forum Archives