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
- Smartsheet Customer Resources
- 64.2K Get Help
- 419 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 141 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!