How to Count a value in a drop down / multi-selection list?
Hi,
I'm wanting to count the total amount time this value "VAVE" is being assigned to a drop down column. I'm using a summary sheet to collect this data using formulas.
So in the request type column(drop down list) I want the total in this sheet. I also want a total by the Brand.
I keep getting an incorrect number, like 48 or 0. The correct answer should be 6 total.
I've tried these formulas:
=COUNT({CPR Request Type}, "VAVE")
=COUNTIFS({CPR Request Type}, "VAVE")
Best Answers
-
Darren Mullen ✭✭✭✭✭✭
@Shawn_K2UGH I make a mistake. I copied your formula without looking at it close enough
try =COUNTIFS({CPR Request Type}, HAS(@cell, "VAVE"))
Darren Mullen "Smartsheet Guru", Member,Smart Consulting Services LLC
Get my7 Smartsheet tips here
Author of:Smartsheet Architecture Solutions
-
Darren Mullen ✭✭✭✭✭✭
=COUNTIFS({CPR Request Type}, HAS(@cell, "VAVE"), {CPR Brand}, HAS(@cell, "ING"))
Darren Mullen "Smartsheet Guru", Member,Smart Consulting Services LLC
Get my7 Smartsheet tips here
Author of:Smartsheet Architecture Solutions
Answers
-
Darren Mullen ✭✭✭✭✭✭
Try this:
=COUNT({CPR Request Type}, HAS(@cell, "VAVE"))
That assumes that {CPR Request Type} represents the entire column in the sheet that you are referencing.
Read more about HAS():https://help.smartsheet.com/function/has
Darren Mullen "Smartsheet Guru", Member,Smart Consulting Services LLC
Get my7 Smartsheet tips here
Author of:Smartsheet Architecture Solutions
-
Shawn_K2 ✭
Hey@Darren MullenIt is still counting too high. This came back with 48. The answer should be 6.
And yes {CPR Request Type} is the column.
-
Darren Mullen ✭✭✭✭✭✭
@Shawn_K2UGH I make a mistake. I copied your formula without looking at it close enough
try =COUNTIFS({CPR Request Type}, HAS(@cell, "VAVE"))
Darren Mullen "Smartsheet Guru", Member,Smart Consulting Services LLC
Get my7 Smartsheet tips here
Author of:Smartsheet Architecture Solutions
-
Shawn_K2 ✭
@Darren MullenThat worked! Thank you!
Now if I want to do the same formula but also sort by the Brand column?
-
Darren Mullen ✭✭✭✭✭✭
@Shawn_K2Add a 2nd criterion range and criterionhttps://help.smartsheet.com/function/countifs
Darren Mullen "Smartsheet Guru", Member,Smart Consulting Services LLC
Get my7 Smartsheet tips here
Author of:Smartsheet Architecture Solutions
-
Shawn_K2 ✭
@Darren MullenGetting the 0 again. I've tried to place the <> and I get 0 or errors.
=COUNTIFS({CPR Request Type}, HAS(@cell, {CPR Brand}, "ING"))
-
Darren Mullen ✭✭✭✭✭✭
=COUNTIFS({CPR Request Type}, HAS(@cell, "VAVE"), {CPR Brand}, HAS(@cell, "ING"))
Darren Mullen "Smartsheet Guru", Member,Smart Consulting Services LLC
Get my7 Smartsheet tips here
Author of:Smartsheet Architecture Solutions
Categories
=if([Column Name]@row=\"Value\",1,0)<\/p>"}]}},"status":{"statusID":3,"name":"Accepted","state":"closed","recordType":"discussion","recordSubType":"question"},"bookmarked":false,"unread":false,"category":{"categoryID":321,"name":"Smartsheet Basics","url":"https:\/\/community.smartsheet.com\/categories\/smartsheet-basics%2B","allowedDiscussionTypes":[]},"reactions":[{"tagID":3,"urlcode":"Promote","name":"Promote","class":"Positive","hasReacted":false,"reactionValue":5,"count":0},{"tagID":5,"urlcode":"Insightful","name":"Insightful","class":"Positive","hasReacted":false,"reactionValue":1,"count":0},{"tagID":11,"urlcode":"Up","name":"Vote Up","class":"Positive","hasReacted":false,"reactionValue":1,"count":0},{"tagID":13,"urlcode":"Awesome","name":"Awesome","class":"Positive","hasReacted":false,"reactionValue":1,"count":0}],"tags":[]},{"discussionID":107883,"type":"question","name":"Moving closed \"tickets\" to a second sheet","excerpt":"I have a sheet where we log our support as it comes in. I have a \"completed\" check box to check once it is finished. It also has a date created field. I setup a second copy of the sheet. On the first sheet I added automation to move any row that is \"completed\" and over 3 days old to the second sheet. This works well.…","snippet":"I have a sheet where we log our support as it comes in. I have a \"completed\" check box to check once it is finished. It also has a date created field. I setup a second copy of the…","categoryID":321,"dateInserted":"2023-07-20T20:03:02+00:00","dateUpdated":null,"dateLastComment":"2023-07-20T20:49:17+00:00","insertUserID":163730,"insertUser":{"userID":163730,"name":"TheoR74","title":"Manager","url":"https:\/\/community.smartsheet.com\/profile\/TheoR74","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-07-21T18:44:41+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"updateUserID":null,"lastUserID":163730,"lastUser":{"userID":163730,"name":"TheoR74","title":"Manager","url":"https:\/\/community.smartsheet.com\/profile\/TheoR74","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-07-21T18:44:41+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":2,"countViews":35,"score":null,"hot":3379770739,"url":"https:\/\/community.smartsheet.com\/discussion\/107883\/moving-closed-tickets-to-a-second-sheet","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/107883\/moving-closed-tickets-to-a-second-sheet","format":"Rich","tagIDs":[334],"lastPost":{"discussionID":107883,"commentID":386291,"name":"Re: Moving closed \"tickets\" to a second sheet","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/386291#Comment_386291","dateInserted":"2023-07-20T20:49:17+00:00","insertUserID":163730,"insertUser":{"userID":163730,"name":"TheoR74","title":"Manager","url":"https:\/\/community.smartsheet.com\/profile\/TheoR74","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-07-21T18:44:41+00:00","banned":0,"punished":0,"private":false,"label":"✭"}},"breadcrumbs":[{"name":"Home","url":"https:\/\/community.smartsheet.com\/"},{"name":"Get Help","url":"https:\/\/community.smartsheet.com\/categories\/get-help"},{"name":"Smartsheet Basics","url":"https:\/\/community.smartsheet.com\/categories\/smartsheet-basics%2B"}],"groupID":null,"statusID":3,"attributes":{"question":{"status":"accepted","dateAccepted":"2023-07-20T20:50:00+00:00","dateAnswered":"2023-07-20T20:14:12+00:00","acceptedAnswers":[{"commentID":386274,"body":"
=SUM({AAA Pet Services - Sign Ups Range 1}, {AAA Pet Services - Sign Ups Option 2 Range 1})<\/p>