Using IF, AND, OR to create a summary function
Hi team!
I'm trying to create a summary report that counts across 2 columns with various criterion the return a count.
Column 1 (Current status): drop down options - No impact; 75% capacity available; 50% capacity available; 25% capacity available; 0% available
Column 2 (Risk to Company): drop down options - Low risk; Med risk; High risk
So I need a formula that counts Med risk & High risk (column 2) plus has a current status (column 1) of "No impacts".
I can figure out the other counts after that first "status" is calculated.
I struggle with combining COUNTIFS with AND/OR functions.
Any help would be greatly appreciated.
Best Answers
-
Try something like this to exclude "Low Risk"...
=COUNTIFS([Current Status]:[Current Status], "No Impact", [Risk to Company]:[Risk to Company], @cell <> "Low Risk")
or this to specify "Med risk" or "High risk"...
=COUNTIFS([Current Status]:[Current Status], "No Impact", [Risk to Company]:[Risk to Company], OR(@cell = "Med Risk", @cell = "High Risk"))
-
Yes. @cell just tells the formula to evaluate the range on a cell by cell basis.
Answers
-
Try something like this to exclude "Low Risk"...
=COUNTIFS([Current Status]:[Current Status], "No Impact", [Risk to Company]:[Risk to Company], @cell <> "Low Risk")
or this to specify "Med risk" or "High risk"...
=COUNTIFS([Current Status]:[Current Status], "No Impact", [Risk to Company]:[Risk to Company], OR(@cell = "Med Risk", @cell = "High Risk"))
-
@Paul Newcome - does @cell work in a Summary Report?
-
Yes. @cell just tells the formula to evaluate the range on a cell by cell basis.
-
Thanks @Paul Newcome - that worked like a charm!
-
Happy to help! 👍️
-
This post helped me out, thanks guys!
I was trying to report back if a column had either yellow or red status and the formula @cell worked for me.
Thanks,
-Thai
-
@Thai La That's great! 👍️
It is always nice to know that multiple people are able to benefit from a single solution.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.1K Get Help
- 444 Global Discussions
- 141 Industry Talk
- 472 Announcements
- 5K Ideas & Feature Requests
- 83 Brandfolder
- 150 Just for fun
- 71 Community Job Board
- 489 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 301 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!