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.9K Get Help
- 439 Global Discussions
- 138 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!