COUNTIFS with OR included
Good Afternoon,
I've got a doozy of a formula that I just can't figure out. I've been on the phone with smartsheet and it is still not counting correctly.
Here is what I need it to count:
-Range 1=on or before 12/1/20
-Range 2: Consultant name listed in the row
-Range 3: Blank OR (on or after 1/1/21)
Here is the formula I wrote:
=COUNTIFS({Range 1}, <=DATE(2020, 12, 1), {Range 2}, Consultant@row) + COUNTIFS({Range 2}, Consultant@row, {Range 3}, ="", {Range 3}, >=DATE(2021, 1, 1))
The Problem:
I think it's the last part of the formula that isn't working. It is still counting when Range 3 contains a date of 12/1/20. I need it to only count if it is ON or AFTER 1/1/21
THANK YOU FOR YOUR HELP!
Best Answer
-
Try this rendition. You may have to recreate your ranges. I recommend naming those cross sheet ranges for clarity. Each cross sheet range should only be one column.
=COUNTIFS({Range 1}, <=DATE(2020, 12, 1), {Range 2}, Consultant@row, {Range 3}, OR(ISBLANK(@cell), @cell >= Date (2021, 1,1)))
Answers
-
Try this rendition. You may have to recreate your ranges. I recommend naming those cross sheet ranges for clarity. Each cross sheet range should only be one column.
=COUNTIFS({Range 1}, <=DATE(2020, 12, 1), {Range 2}, Consultant@row, {Range 3}, OR(ISBLANK(@cell), @cell >= Date (2021, 1,1)))
-
@Mike Wilday I think that worked!!! Thank you so much!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.3K Get Help
- 419 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 142 Just for fun
- 58 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 300 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!