HAS Functions Returning 0
Hi Smartsheet Users,
I am struggling with the formula HAS with multiple selection drop down values and hoping I could get some guidance here.
Here, i would like to count how many "swimming" classes I have in a week.
The expected result is 3.
In the sheet summary, I have the formula written as
=COUNTIFS(Activities:Activities, HAS(Activities:Activities, "Swimming")). This gives me a "0" value result.
If I did a formula of COUNTIF without HAS, as below, it gives me a "1" value result.
=COUNTIF(Activities:Activities, "Swimming")
What did I do wrong?
Thanks
Syed
Best Answer
-
Hi all - this is good now. I needed to insert @cell in the formula and it works.
=COUNTIFS(Activities:Activities, HAS(@cell, "Swimming"))
Syed
Answers
-
Hi all - this is good now. I needed to insert @cell in the formula and it works.
=COUNTIFS(Activities:Activities, HAS(@cell, "Swimming"))
Syed
-
Excellent!
Glad you got it working!
Be safe and have a fantastic week!
Best,
Andrée Starå
Workflow Consultant / CEO @ WORK BOLD
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.
-
Thanks @Andrée Starå . Feels so good when I got it worked at the end! Not so great the first few hours trying to figure it out though LOL. Hope you are doing well and keeping safe too!
-
Yes, I can imagine the feeling!
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
- Customer Resources
- 64.5K Get Help
- 424 Global Discussions
- 136 Industry Talk
- 465 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 146 Just for fun
- 63 Community Job Board
- 465 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 301 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!