I need help with creating a formula using Countif or Countifs.
I am trying to pull data from one range that has mulitiple values. Does anyone know how to write a formula to not pull information from more than one range?
I am using the formula =countif(sheet reference data), (question ie: What do you enjoy most about your holiday party? @row.
This works for when the question isn't set up with multiple values. However I have the question from the picture that does have multiple values. How do I get it do count for example Dancing if it has the other values.
Can someone lead me in the right direction?
Best Answer
-
For multi-dropdowns, use HAS with @cell instead:
=COUNTIF({AC Holiday Party Survey Range 1}, HAS(@cell, "DJ/Music"))
Answers
-
@Alex Price you can use the contains function.
=COUNTIF([What do you enjoy most about your holiday party?]:[What do you enjoy most about your holiday party?], CONTAINS( "Dancing", @cell))
You just need to change the Dancing to whatever you want to count.
-
I think that this is getting me closer. However it is still giving me issues.
I am currenting using a sheet to compile all these equations in.
When I type in the formula, I am referencing another sheet that contains the raw data. How do I get it to count the values when I am referencing from the raw data sheet (AC Holiday Party Survey)?
When I have a simple question, yes or no, it will work.
Sorry I am very new to Smartsheet.
-
For multi-dropdowns, use HAS with @cell instead:
=COUNTIF({AC Holiday Party Survey Range 1}, HAS(@cell, "DJ/Music"))
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 495 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!