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
- Smartsheet Customer Resources
- 63.5K Get Help
- 402 Global Discussions
- 213 Industry Talk
- 450 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 135 Just for fun
- 56 Community Job Board
- 454 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 296 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!