Problem adding countifs

KWright84
KWright84
edited 12/09/19 inSmartsheet Basics

I'm trying to count projects that have either a four or five priority and this formula works:

=SUM(COUNTIF({PLT Project Roadmap Range 17}, "Four"), COUNTIF({PLT Project Roadmap Range 17}, "Five"))

I want to count projects with either a four or five priority that start either today or in the past and this formula doesn't work:

=SUM(COUNTIFS({PLT Project Roadmap Range 17}, "Four", {PLT Project Roadmap Range 20} <= TODAY()), COUNTIFS({PLT Project Roadmap Range 17}, "Five", {PLT Project Roadmap Range 20} <= TODAY()))

I'm getting #INVALID OPERATION and I'm not understanding why. Does anyone have any idea?

This COUNTIFS formula is working:

=SUM(COUNTIFS({PLT Project Roadmap Range 17}, "Four", {PLT Project Roadmap Range 14}, >31), COUNTIFS({PLT Project Roadmap Range 17}, "Five", {PLT Project Roadmap Range 14}, >31))

I don't understand why I can't add the <=TODAY() as an additional IF.

Comments

Right click on the cell, select \"Hyperlink\", select \"Link to other Smartsheet\", click on \"select sheet>\", then select the dashboard to want to create the hyperlink to. You can also adjust the displayed text if needed.<\/p>"}]}},"status":{"statusID":3,"name":"Accepted","state":"closed","recordType":"discussion","recordSubType":"question"},"bookmarked":false,"unread":false,"category":{"categoryID":343,"name":"Add Ons and Integrations","url":"https:\/\/community.smartsheet.com\/categories\/apps-and-integrations","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":107019,"type":"question","name":"Data Mesh Run Immediately","excerpt":"I saw a post from 2019 stating that the Run Immediately wasn't working and someone responded that there were issues. Was this resolved? I see the original question is from 2019 but when I tried using \"Immediately\" today it doesn't seem to run either. I was hoping to use \"Immediately\" as a run time since the person who owns…","snippet":"I saw a post from 2019 stating that the Run Immediately wasn't working and someone responded that there were issues. Was this resolved? I see the original question is from 2019…","categoryID":343,"dateInserted":"2023-06-28T14:24:46+00:00","dateUpdated":"2023-06-28T14:53:46+00:00","dateLastComment":"2023-06-28T17:13:57+00:00","insertUserID":120231,"insertUser":{"userID":120231,"name":"Pamela Wagner","title":"","url":"https:\/\/community.smartsheet.com\/profile\/Pamela%20Wagner","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-06-28T17:01:11+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭✭✭✭"},"updateUserID":91566,"lastUserID":124290,"lastUser":{"userID":124290,"name":"Adriane Price","title":"","url":"https:\/\/community.smartsheet.com\/profile\/Adriane%20Price","photoUrl":"https:\/\/aws.smartsheet.com\/storageProxy\/image\/images\/u!1!BmjXAS9m9aY!oUjUqI9WkTY!3brbJb9YCMB","dateLastActive":"2023-06-28T17:17:33+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭✭✭"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":3,"countViews":25,"score":null,"hot":3375936523,"url":"https:\/\/community.smartsheet.com\/discussion\/107019\/data-mesh-run-immediately","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/107019\/data-mesh-run-immediately","format":"Rich","lastPost":{"discussionID":107019,"commentID":382913,"name":"Re: Data Mesh Run Immediately","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/382913#Comment_382913","dateInserted":"2023-06-28T17:13:57+00:00","insertUserID":124290,"insertUser":{"userID":124290,"name":"Adriane Price","title":"","url":"https:\/\/community.smartsheet.com\/profile\/Adriane%20Price","photoUrl":"https:\/\/aws.smartsheet.com\/storageProxy\/image\/images\/u!1!BmjXAS9m9aY!oUjUqI9WkTY!3brbJb9YCMB","dateLastActive":"2023-06-28T17:17:33+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭✭✭"}},"breadcrumbs":[{"name":"Home","url":"https:\/\/community.smartsheet.com\/"},{"name":"Using Smartsheet","url":"https:\/\/community.smartsheet.com\/categories\/using-smartsheet"},{"name":"Add Ons and Integrations","url":"https:\/\/community.smartsheet.com\/categories\/apps-and-integrations"}],"groupID":null,"statusID":3,"attributes":{"question":{"status":"accepted","dateAccepted":"2023-06-28T17:04:09+00:00","dateAnswered":"2023-06-28T16:59:56+00:00","acceptedAnswers":[{"commentID":382898,"body":"

@Pamela Wagner<\/a> - Hello<\/p>

The column mapping you setup in the DataMesh configuration is used to determine what information needs to link or copy and where it needs to go. The Execution Frequency<\/strong> is what tells the system when to run the DataMesh workflow.<\/p>

Execution Frequency: Scheduled execution frequency to update DataMesh values.<\/p>

The Update Immediately<\/em> execution frequency isn't supported when using a report as your source. If using a report this could be why you are not seeing updates immediately.<\/p>

As far as what triggers a workflow to run when \"Update Immediately\" is selected, DataMesh looks for matching cell values and these could come from manual entries, formulas, or cell links. When there is a successful mesh you can see the CONFIG LOGS by clicking the paper icon.<\/p>

\n
\n \n \"Screenshot<\/img><\/a>\n <\/div>\n<\/div>\n

After clicking the paper icon a CONFIG LOGS window will pop up showing a history of all the successful and errors.<\/p>

\n
\n \n \"image.png\"<\/img><\/a>\n <\/div>\n<\/div>\n

If it is unsuccessful the paper icon will be red or in the CONFIG LOGS it will show the error.<\/p>


<\/p>

If further investigation is needed I recommend to click here<\/a> to open a Smartsheet support ticket. If you do make sure you include any screenshots without personal or confidential information displayed.<\/p>"}]}},"status":{"statusID":3,"name":"Accepted","state":"closed","recordType":"discussion","recordSubType":"question"},"bookmarked":false,"unread":false,"category":{"categoryID":343,"name":"Add Ons and Integrations","url":"https:\/\/community.smartsheet.com\/categories\/apps-and-integrations","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":106986,"type":"question","name":"Orderable Charts","excerpt":"Good morning, I've done several searches here but now I'm going in circles. I have a sheet with records of usage of certain scripts we have. Each row has the user name, the script they used and the time they saved by using each script. My goal is to create a dashboard with two bar charts: user name vs total time savings…","snippet":"Good morning, I've done several searches here but now I'm going in circles. I have a sheet with records of usage of certain scripts we have. Each row has the user name, the script…","categoryID":321,"dateInserted":"2023-06-27T22:49:55+00:00","dateUpdated":null,"dateLastComment":"2023-06-28T23:17:46+00:00","insertUserID":162870,"insertUser":{"userID":162870,"name":"Floretti","title":"Mr","url":"https:\/\/community.smartsheet.com\/profile\/Floretti","photoUrl":"https:\/\/lh3.googleusercontent.com\/a\/AAcHTtepzFRISfVceGRfv0bCcNLArPYeXU7TR7XoUKYU-Q=s96-c","dateLastActive":"2023-06-29T05:51:10+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"updateUserID":null,"lastUserID":162870,"lastUser":{"userID":162870,"name":"Floretti","title":"Mr","url":"https:\/\/community.smartsheet.com\/profile\/Floretti","photoUrl":"https:\/\/lh3.googleusercontent.com\/a\/AAcHTtepzFRISfVceGRfv0bCcNLArPYeXU7TR7XoUKYU-Q=s96-c","dateLastActive":"2023-06-29T05:51:10+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":9,"countViews":45,"score":null,"hot":3375905861,"url":"https:\/\/community.smartsheet.com\/discussion\/106986\/orderable-charts","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/106986\/orderable-charts","format":"Rich","lastPost":{"discussionID":106986,"commentID":382983,"name":"Re: Orderable Charts","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/382983#Comment_382983","dateInserted":"2023-06-28T23:17:46+00:00","insertUserID":162870,"insertUser":{"userID":162870,"name":"Floretti","title":"Mr","url":"https:\/\/community.smartsheet.com\/profile\/Floretti","photoUrl":"https:\/\/lh3.googleusercontent.com\/a\/AAcHTtepzFRISfVceGRfv0bCcNLArPYeXU7TR7XoUKYU-Q=s96-c","dateLastActive":"2023-06-29T05:51:10+00:00","banned":0,"punished":0,"private":false,"label":"✭"}},"breadcrumbs":[{"name":"Home","url":"https:\/\/community.smartsheet.com\/"},{"name":"Using Smartsheet","url":"https:\/\/community.smartsheet.com\/categories\/using-smartsheet"},{"name":"Smartsheet Basics","url":"https:\/\/community.smartsheet.com\/categories\/smartsheet-basics%2B"}],"groupID":null,"statusID":3,"image":{"url":"https:\/\/us.v-cdn.net\/6031209\/uploads\/ZTQTKTUZ3MCG\/2023-06-28-08-45-55-smartsheet-com.png","urlSrcSet":{"10":"","300":"","800":"","1200":"","1600":""},"alt":"2023-06-28 08_45_55-Smartsheet.com.png"},"attributes":{"question":{"status":"accepted","dateAccepted":"2023-06-28T04:11:53+00:00","dateAnswered":"2023-06-28T03:42:08+00:00","acceptedAnswers":[{"commentID":382742,"body":"

I understand. Unfortunately, there is no other option that I see. One thing to make it easier for you to add the name is to have a helper column in the source sheet with a formula to identify duplicates. If there is a record with no duplicate (i.e., a new name added), you can get notified through a workflow and use that to add the name to your metric sheet.<\/p>"},{"commentID":382746,"body":"

You can use the below formula in a helper checkbox column. Using this formula, the helper column you create will be checked when there is no duplicate entry. You can then use the helper column being checked as the trigger to notify yourself to create the name in the metrics sheet.<\/p>


<\/p>

=IF(COUNTIF([User Name]:[User Name], [User Name]@row)>1, 0, 1)<\/p>"},{"commentID":382777,"body":"

Hi @Floretti<\/a> <\/p>

Try adding an @cell reference in your formula, this can sometimes help with COUNTIFS looking at a number\/text value:<\/p>

=IF(COUNTIF([User Name]:[User Name], @cell =<\/strong> [User Name]@row)>1, 0, 1)<\/p>

Let us know if that helped!<\/p>

Cheers,<\/p>

Genevieve<\/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":[]}],"initialPaging":{"nextURL":"https:\/\/community.smartsheet.com\/api\/v2\/discussions?page=2&categoryID=341&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":5423,"limit":3},"title":"Trending in Using Smartsheet","subtitle":null,"description":null,"noCheckboxes":true,"containerOptions":[],"discussionOptions":[]}">

Trending in Using Smartsheet