COUNTIFS in different sheet totaling values from two columns
Hey there,
I would appreciate some help. I've tried multiple formulas and can't get it right and hope you can help.
I have a summary sheet which i am referencing a sheet to gather the total active projects for a department. There is a dept column and a status column. I created Dept_Ref where both those columns are selected.
I know that one department only has 1 project in 'on hold' status and I am using this as my first validation.
When I use
=COUNTIFS ({Dept_Ref},"Analytics",{Status_Ref},"On Hold")
I get the correct calculated result = 1
I then tried to add more status values and get the wrong result:
=COUNTIFS ({Dept_Ref},"Analytics",{Status_Ref},"On Hold","Under Development")
This returns a calculated result = 0. It should still be 1.
Can someone help me understand what I have incorrect in the second formula?
Best Answer
-
Unfortunately, this: =COUNTIFS({Dept_Ref}, "Analytics", {Status_Ref}, "On Hold") + =COUNTIFS({Dept_Ref}, "Analytics",{Status_Ref}, "Under Development")
returns = Invalid Operation
The second one though - WORKED!!! Thank you Genevieve. :)
Answers
-
In your second formula, you're asking it to look for one cell that contains both values, both "On Hold" and "Under Development".
Try adding together two separate COUNTIF statements instead, like so:
=COUNTIFS({Dept_Ref}, "Analytics", {Status_Ref}, "On Hold") + COUNTIFS({Dept_Ref}, "Analytics",{Status_Ref}, "Under Development")
You could also add in an OR statement:
=COUNTIFS({Dept_Ref}, "Analytics", {Status_Ref}, OR(@cell = "On Hold", @cell = "Under Development"))
Let me know if either of these worked for you!
Cheers,
Genevieve
Need more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
-
Unfortunately, this: =COUNTIFS({Dept_Ref}, "Analytics", {Status_Ref}, "On Hold") + =COUNTIFS({Dept_Ref}, "Analytics",{Status_Ref}, "Under Development")
returns = Invalid Operation
The second one though - WORKED!!! Thank you Genevieve. :)
-
Oops, my apologies! there was an extra = in my first formula... 🤦♀️
Glad the second one worked!
Cheers,
Genevieve
Need more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 496 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!