Countifs formula: Counting "MacBook Pro" Instances
Hi there,
I need help with counting Asset Models by Keyword and by office location.
Goal: I want to sum all Asset drop-down options that include the term "MacBook Pro."
Metrics Sheet:
Reference sheet:
I'm currently getting a zero in the Austin column on my Metrics sheet for "MacBook Pro," even though it should show a count of 5.
.
Thanks in advance
Best Answer
-
COUNTIFS expects an exact match - and Smartsheet doesn't really play nice with the wildcards you used. The work around is to embed a bit more in the formula that will allow you to do the partial match you're after. There are multiple ways to accomplish this - you can use FIND (and then test if it returns a number or not), but I prefer this version:
=COUNTIFS({Office}, [Office Helper]@row, {Asset Model}, CONTAINS("MacBook Pro",@cell))If this answer resolves your question, please help the Community by marking it as an accepted answer. I'd also be grateful for your response - "Insightful"or "Awesome" reactions are much appreciated. Thanks!
Answers
-
COUNTIFS expects an exact match - and Smartsheet doesn't really play nice with the wildcards you used. The work around is to embed a bit more in the formula that will allow you to do the partial match you're after. There are multiple ways to accomplish this - you can use FIND (and then test if it returns a number or not), but I prefer this version:
=COUNTIFS({Office}, [Office Helper]@row, {Asset Model}, CONTAINS("MacBook Pro",@cell))If this answer resolves your question, please help the Community by marking it as an accepted answer. I'd also be grateful for your response - "Insightful"or "Awesome" reactions are much appreciated. Thanks!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.3K Get Help
- 423 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 143 Just for fun
- 59 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!