Trying to count values based on variables
Hi there - first question ever! Also - not great at using the right language so sorry if it's a bit confusing!
I am currently trying to use a formula to count if a certain condition is met in column a - and in column b - to count it. so for example
Column A (Role)
Manager
Assistant
Officer
Column B (Off Work)
Yes
No
Yes
So the solution I'd like is from the information above - to find out how many people with the role Manager are currently off work?
I tried the following formulas and it keeps returning unparseable. Any suggestions?
=Countifs(Role:Role, "Manager", [Off Work:Off Work, "Yes"])
=COUNTIFS(Role:Role, “Manager”, Off Work:Off Work, "Yes")
The first half of the formula works and will count the number of managers in the column - but it doesn't like it after that!
Any help would be greatly appreciated.
thanks
Emma
Best Answer
-
You were close!
Because your column name is two words, you need to put it in brackets:
=Countifs(Role:Role, "Manager", [Off Work]:[Off Work], "Yes")
that should work
Answers
-
You were close!
Because your column name is two words, you need to put it in brackets:
=Countifs(Role:Role, "Manager", [Off Work]:[Off Work], "Yes")
that should work
-
That's amazing - thank you - and one more thing - if I wanted to count multiple roles using this how would I do that?
So say I wanted Manager AND Assistant in the same count....?
THANK YOU😊
-
Hi Emma,
Do you want to count cells where both Manager and Assistant is selected or rows where either one is selected?
I hope that helps!
Be safe and have a fantastic weekend!
Best,
Andrée Starå
Workflow Consultant / CEO @ WORK BOLD
✅Did my post help or answer your question or solve your problem? Please help the Community by marking it as the accepted answer/helpful. It will make it easier for others to find a solution or help to answer!
SMARTSHEET EXPERT CONSULTANT & PARTNER
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35
Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.2K 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
- 299 Events
- 38 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!