COUNTIFS not working where one reference is a column with multiple drop downs...

=COUNTIFS({New RT - Priority}, [Column2]$28, {New RT - Platform}, "CASI")


This isn't working... I want a count for if the Priority is Critical (this is in [Column2]$28) and the Platform (from a drop down column) includes CASI. (There may be multiple entries in the drop down column). I know the answer is 1 but it's not returning that number...

HELP!!! Going mad here...

Best Answer

  • Paul Newcome
    Paul Newcome ✭✭✭✭✭✭
    Answer ✓

    If you are using a multi-select dropdown, you will want to include a HAS function like so:

    =COUNTIFS({New RT - Priority}, [Column2]$28, {New RT - Platform},HAS(@cell, "CASI"))

    thinkspi.com

Answers

  • Paul Newcome
    Paul Newcome ✭✭✭✭✭✭
    Answer ✓

    If you are using a multi-select dropdown, you will want to include a HAS function like so:

    =COUNTIFS({New RT - Priority}, [Column2]$28, {New RT - Platform},HAS(@cell, "CASI"))

    thinkspi.com

  • Awesome! Do I have to type each platform name or can I use a[email protected]code?

  • Paul Newcome
    Paul Newcome ✭✭✭✭✭✭

    You can use cell references, but keep in mind that column names that have a special character, number, and/or space need to be wrapped in [square brackets].

    =COUNTIFS({New RT - Priority}, [Column2]$28, {New RT - Platform}, HAS(@cell,[Column1]@row))

    =COUNTIFS({New RT - Priority}, [Column2]$28, {New RT - Platform}, HAS(@cell,[Column Name]@row))

    =COUNTIFS({New RT - Priority}, [Column2]$28, {New RT - Platform}, HAS(@cell,ColumnName@row))

    thinkspi.com

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the公式手册模板!
@MarkFX<\/a> <\/p>

I just replicated your workflow, and it works for me.<\/p>

Can you share some screenshots of the sheet so the columns are visible?<\/strong> (Delete\/replace any confidential\/sensitive information before sharing) That would make it easier to help.<\/p>

Also, do you save after you make the change?<\/p>"}]}},"status":{"statusID":3,"name":"Accepted","state":"closed","recordType":"discussion","recordSubType":"question"},"bookmarked":false,"unread":false,"category":{"categoryID":322,"name":"Formulas and Functions","url":"https:\/\/community.smartsheet.com\/categories\/formulas-and-functions","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":107881,"type":"question","name":"Formula to show duration days in Months, Weeks, and Days","excerpt":"I have a duration in days column and I need to show what that duration is in months, weeks and days. Assuming a month is 30 days and a week is 7 days. The attached blue columns are what I want to calculate with a formula (manually entered now to show what I want to see). For example, if something is 38 days, I want it to…","snippet":"I have a duration in days column and I need to show what that duration is in months, weeks and days. Assuming a month is 30 days and a week is 7 days. The attached blue columns…","categoryID":322,"dateInserted":"2023-07-20T19:40:32+00:00","dateUpdated":"2023-07-20T19:41:46+00:00","dateLastComment":"2023-07-21T00:25:42+00:00","insertUserID":139118,"insertUser":{"userID":139118,"name":"Kayla","url":"https:\/\/community.smartsheet.com\/profile\/Kayla","photoUrl":"https:\/\/aws.smartsheet.com\/storageProxy\/image\/images\/u!1!w4jS9-j6AyQ!-s9Rt9CEFHw!9QXda4h64Go","dateLastActive":"2023-07-21T00:24:05+00:00","banned":0,"punished":0,"private":false,"label":"✭✭"},"updateUserID":139118,"lastUserID":139118,"lastUser":{"userID":139118,"name":"Kayla","url":"https:\/\/community.smartsheet.com\/profile\/Kayla","photoUrl":"https:\/\/aws.smartsheet.com\/storageProxy\/image\/images\/u!1!w4jS9-j6AyQ!-s9Rt9CEFHw!9QXda4h64Go","dateLastActive":"2023-07-21T00:24:05+00:00","banned":0,"punished":0,"private":false,"label":"✭✭"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":2,"countViews":31,"score":null,"hot":3379782374,"url":"https:\/\/community.smartsheet.com\/discussion\/107881\/formula-to-show-duration-days-in-months-weeks-and-days","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/107881\/formula-to-show-duration-days-in-months-weeks-and-days","format":"Rich","tagIDs":[219,254,324],"lastPost":{"discussionID":107881,"commentID":386310,"name":"Re: Formula to show duration days in Months, Weeks, and Days","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/386310#Comment_386310","dateInserted":"2023-07-21T00:25:42+00:00","insertUserID":139118,"insertUser":{"userID":139118,"name":"Kayla","url":"https:\/\/community.smartsheet.com\/profile\/Kayla","photoUrl":"https:\/\/aws.smartsheet.com\/storageProxy\/image\/images\/u!1!w4jS9-j6AyQ!-s9Rt9CEFHw!9QXda4h64Go","dateLastActive":"2023-07-21T00:24:05+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":"Formulas and Functions","url":"https:\/\/community.smartsheet.com\/categories\/formulas-and-functions"}],"groupID":null,"statusID":3,"image":{"url":"https:\/\/us.v-cdn.net\/6031209\/uploads\/E719S9G7QZCH\/example.png","urlSrcSet":{"10":"","300":"","800":"","1200":"","1600":""},"alt":"Example.png"},"attributes":{"question":{"status":"accepted","dateAccepted":"2023-07-21T00:25:23+00:00","dateAnswered":"2023-07-20T20:20:50+00:00","acceptedAnswers":[{"commentID":386281,"body":"

Try something like this...<\/p>


<\/p>

Months:<\/p>

=INT([Duration Days]@row \/ 30)<\/p>


<\/p>

Weeks:<\/p>

=INT(([Duration Days]@row - (Months@row * 30)) \/ 7)<\/p>


<\/p>

Days:<\/p>

=[Duration Days]@row - ((Weeks@row * 7) + (Months@row * 30))<\/p>"}]}},"status":{"statusID":3,"name":"Accepted","state":"closed","recordType":"discussion","recordSubType":"question"},"bookmarked":false,"unread":false,"category":{"categoryID":322,"name":"Formulas and Functions","url":"https:\/\/community.smartsheet.com\/categories\/formulas-and-functions","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":[{"tagID":219,"urlcode":"Sheets","name":"Sheets"},{"tagID":254,"urlcode":"Formulas","name":"Formulas"},{"tagID":324,"urlcode":"community-platform","name":"Community Platform"}]},{"discussionID":107875,"type":"question","name":"IF Statement with multiple dates an count.","excerpt":"Hello, I have a large sheet that I am trying to calculate several dates to populate dependent on a Count in a row field (ie - a count of 0 would generate a date being pulled from one column, and a count of one generating a date from another column). Columns in Question: \"Was Rejected\" - this is a count on either it has…","snippet":"Hello, I have a large sheet that I am trying to calculate several dates to populate dependent on a Count in a row field (ie - a count of 0 would generate a date being pulled from…","categoryID":322,"dateInserted":"2023-07-20T18:16:53+00:00","dateUpdated":null,"dateLastComment":"2023-07-20T20:15:17+00:00","insertUserID":163694,"insertUser":{"userID":163694,"name":"Jivi3","title":"Project Manager","url":"https:\/\/community.smartsheet.com\/profile\/Jivi3","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-07-20T20:47:46+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"updateUserID":null,"lastUserID":45516,"lastUser":{"userID":45516,"name":"Paul Newcome","title":"","url":"https:\/\/community.smartsheet.com\/profile\/Paul%20Newcome","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/userpics\/082\/nQPUTVFKKWDJ2.jpg","dateLastActive":"2023-07-20T21:15:47+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭✭✭✭"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":3,"countViews":27,"score":null,"hot":3379762930,"url":"https:\/\/community.smartsheet.com\/discussion\/107875\/if-statement-with-multiple-dates-an-count","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/107875\/if-statement-with-multiple-dates-an-count","format":"Rich","tagIDs":[254],"lastPost":{"discussionID":107875,"commentID":386276,"name":"Re: IF Statement with multiple dates an count.","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/386276#Comment_386276","dateInserted":"2023-07-20T20:15:17+00:00","insertUserID":45516,"insertUser":{"userID":45516,"name":"Paul Newcome","title":"","url":"https:\/\/community.smartsheet.com\/profile\/Paul%20Newcome","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/userpics\/082\/nQPUTVFKKWDJ2.jpg","dateLastActive":"2023-07-20T21:15:47+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":"Formulas and Functions","url":"https:\/\/community.smartsheet.com\/categories\/formulas-and-functions"}],"groupID":null,"statusID":3,"attributes":{"question":{"status":"accepted","dateAccepted":"2023-07-20T20:13:37+00:00","dateAnswered":"2023-07-20T18:21:07+00:00","acceptedAnswers":[{"commentID":386241,"body":"

Make sure all three columns are set as date type columns.<\/p>"}]}},"status":{"statusID":3,"name":"Accepted","state":"closed","recordType":"discussion","recordSubType":"question"},"bookmarked":false,"unread":false,"category":{"categoryID":322,"name":"Formulas and Functions","url":"https:\/\/community.smartsheet.com\/categories\/formulas-and-functions","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":[{"tagID":254,"urlcode":"Formulas","name":"Formulas"}]}],"initialPaging":{"nextURL":"https:\/\/community.smartsheet.com\/api\/v2\/discussions?page=2&categoryID=322&includeChildCategories=1&type%5B0%5D=Question&excludeHiddenCategories=1&sort=-hot&limit=3&expand%5B0%5D=all&expand%5B1%5D=-body&expand%5B2%5D=insertUser&expand%5B3%5D=lastUser&status=accepted","prevURL":null,"currentPage":1,"total":10000,"limit":3},"title":"Trending in Formulas and Functions ","subtitle":null,"description":null,"noCheckboxes":true,"containerOptions":[],"discussionOptions":[]}">

Trending in Formulas and Functions