Formula help, please!
Hi Smartsheet Wizards,
I need to create a formula for all assets completed in the fiscal year, by region - I have created the formula below and it works perfectly, but now I need to narrow it to count just a subset of asset types (from a multi-select column). I can add a single content type and the formula still works, but I would love to know if I can create a single formula to capture this data. Any thoughts on how to add that? I need to find "Blog", "Case Study" and "Video" within our list of asset types.
Here is the formula that is working (I am referencing another sheet to create a roll-up):
=COUNTIFS({Status}, "Completed", {Geo}, "APJ", {Fiscal Year}, "FY2020")
Thank you!!
Best Answer
-
Hi there, I figured it out - might not be the most elegant solution, but it worked. I wrote the formula for each asset type, and joined them with a "+" and it worked!
Answers
-
Hi @Alyson Harris ,
You'll need to add a HAS function to your COUTIFS.
=COUNTIFS({Status}, "Completed", {Geo}, "APJ", {Fiscal Year}, "FY2020", {insert asset type range}, HAS(@cell, "insert value you want counted")="True"))
For more on HAS look here:
https://help.smartsheet.com/function/has
Work?
Mark
I'm grateful for your "Vote Up" or "Insightful". Thank you for contributing to the Community.
-
Thanks Mark - I already have working formula to pull in a single asset type, but what I am trying to do is count 3 asset types (from a list of 8 or so). I am not sure how to do that. From the range, I want to count only "blog" or "case study" or "video".
Any thoughts?
-
Hi there, I figured it out - might not be the most elegant solution, but it worked. I wrote the formula for each asset type, and joined them with a "+" and it worked!
-
Glad you found a solution. Thanks for contributing to the Community.
Mark
I'm grateful for your "Vote Up" or "Insightful". Thank you for contributing to the Community.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.3K Get Help
- 445 Global Discussions
- 143 Industry Talk
- 477 Announcements
- 5K Ideas & Feature Requests
- 85 Brandfolder
- 150 Just for fun
- 72 Community Job Board
- 488 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 302 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!