How do I add a third argument to countifs formula?
I am trying to only show dashboard data from the sheet IF the submitted date is from the current year - we do have a helper column for the submitted year but I am unsure how to incorporate it within my formula below.
I am trying to count if the status is Working, Next up- top opportunities, Pilot/implemented, Monitor/check, and Technology, Submitted by Zone 1, and the submission date is current year (so in this case 2023)
Any guidance would be very helpful ! Thank you
=COUNTIFS({APD CI Tracker Range 5}, "Working", {APD CI Tracker Range 8}, "Zone 1") + COUNTIFS({APD CI Tracker Range 5}, "Next up - Top Opportunities", {APD CI Tracker Range 8}, "Zone 1") + COUNTIFS({APD CI Tracker Range 5}, "Pilot/ Implemented", {APD CI Tracker Range 8}, "Zone 1") + COUNTIFS({APD CI Tracker Range 5}, "Monitor/ Check", {APD CI Tracker Range 8}, "Zone 1") + COUNTIFS({APD CI Tracker Range 5}, "Technology", {APD CI Tracker Range 8}, "Zone 1")
Best Answer
-
Jeff Reisman ✭✭✭✭✭✭
你的公式是运行多个故事ntifs and adding the results. So you wanted all rows with a status of "Working" and a Zone of "Zone 1", plus all rows with a status of "Next up - Top Opportunities" and a Zone of "Zone 1", etc.
Using OR does the same thing, except it does it all in a single COUNTIFS function. It sayscount all the rowswhere theStatus is one of these values("Working", "technology", etc), and where theZone is "Zone 1", and where thesubmission year is equal to the current year.
Here it is at work in a test sheet. See that it counts the rows where the value is one of those listed in the OR, and doesn't count the others:
Regards,
Jeff Reisman,IT Business Analyst & Project Coordinator,Mitsubishi Electric Trane US
链接:Smartsheet Functions Help Pages链接:Smartsheet Formula Error Messages
If my answer helped solve your issue, please mark it as accepted so that other users can find it later. Thanks!
Answers
-
Mike TV ✭✭✭✭✭✭
I would provide you with a working formula possibly but what you've got above is confusing to me without seeing your sheet and what the ranges you've mapped are set to. Hopefully the help sheet will set you on the path.
-
Does this help ?@Mike TV
There are several status's, zones, and submission years generated from the intake form
for the dashboard I am only trying to show those status's, "Zone 1", and current year submission
-
Jeff Reisman ✭✭✭✭✭✭
@PaigeKuczlet's simplify this a whole bunch by implementing anOR functionin there, allowing us to use just a single COUNTIFS, plus add the year criteria.
=COUNTIFS({APD CI Tracker Range 5},OR(@cell = "Working", @cell = "Next up - Top Opportunities", @cell = "Pilot/ Implemented", @cell = "Monitor/ Check", @cell = "Technology"), {APD CI Tracker Range 8}, "Zone 1",{Create Ref to APD CI Tracker Submission year column}, @cell = YEAR(TODAY()))
In English, count all the rows where the value in range 5 is one of these values ("Working", "technology", etc), and where the value in Range 8 is "Zone 1", and where the value in submission year is equal to the current year.
Regards,
Jeff Reisman,IT Business Analyst & Project Coordinator,Mitsubishi Electric Trane US
链接:Smartsheet Functions Help Pages链接:Smartsheet Formula Error Messages
If my answer helped solve your issue, please mark it as accepted so that other users can find it later. Thanks!
-
@Jeff Reismanthe purpose of the dashboard is to show a count of any opportunity with that status, Zone 1, and submitted this year - will the OR formula cause it to only count one status or the other?
-
Jeff Reisman ✭✭✭✭✭✭
你的公式是运行多个故事ntifs and adding the results. So you wanted all rows with a status of "Working" and a Zone of "Zone 1", plus all rows with a status of "Next up - Top Opportunities" and a Zone of "Zone 1", etc.
Using OR does the same thing, except it does it all in a single COUNTIFS function. It sayscount all the rowswhere theStatus is one of these values("Working", "technology", etc), and where theZone is "Zone 1", and where thesubmission year is equal to the current year.
Here it is at work in a test sheet. See that it counts the rows where the value is one of those listed in the OR, and doesn't count the others:
Regards,
Jeff Reisman,IT Business Analyst & Project Coordinator,Mitsubishi Electric Trane US
链接:Smartsheet Functions Help Pages链接:Smartsheet Formula Error Messages
If my answer helped solve your issue, please mark it as accepted so that other users can find it later. Thanks!
-
@Jeff ReismanYOU ARE THE MAN!!! THANK YOU
Help Article Resources
Categories
If I understand correctly, this may help.<\/p>
=AVERAGEIF({date of request}, MONTH(@cell) = 2, {Ack SLA})<\/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"}]},{"discussionID":107116,"type":"question","name":"I'd like to create a column formula that references a specific cell with acceptable syntax","excerpt":"I have a sheet that has a column of dates that autofill based on another date. Specifically, each row has target end dates based on weeks ahead of the date that I want to reference. This is to make sure tasks are started on time in relation to the overall start date. My formula is currently: =[Target End Date]1 - ([Task…","snippet":"I have a sheet that has a column of dates that autofill based on another date. Specifically, each row has target end dates based on weeks ahead of the date that I want to…","categoryID":322,"dateInserted":"2023-06-29T23:48:12+00:00","dateUpdated":null,"dateLastComment":"2023-06-30T22:48:54+00:00","insertUserID":163028,"insertUser":{"userID":163028,"name":"jcabaniss","url":"https:\/\/community.smartsheet.com\/profile\/jcabaniss","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-07-01T02:58:52+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"updateUserID":null,"lastUserID":129958,"lastUser":{"userID":129958,"name":"Lucas Rayala","title":"Program Manager","url":"https:\/\/community.smartsheet.com\/profile\/Lucas%20Rayala","photoUrl":"https:\/\/aws.smartsheet.com\/storageProxy\/image\/images\/u!1!3C9S_9DsC3w!XMDTX-y-BOY!7HVumwhOGBb","dateLastActive":"2023-07-01T15:43:12+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭✭✭"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":3,"countViews":35,"score":null,"hot":3376249626,"url":"https:\/\/community.smartsheet.com\/discussion\/107116\/id-like-to-create-a-column-formula-that-references-a-specific-cell-with-acceptable-syntax","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/107116\/id-like-to-create-a-column-formula-that-references-a-specific-cell-with-acceptable-syntax","format":"Rich","lastPost":{"discussionID":107116,"commentID":383416,"name":"Re: I'd like to create a column formula that references a specific cell with acceptable syntax","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/383416#Comment_383416","dateInserted":"2023-06-30T22:48:54+00:00","insertUserID":129958,"insertUser":{"userID":129958,"name":"Lucas Rayala","title":"Program Manager","url":"https:\/\/community.smartsheet.com\/profile\/Lucas%20Rayala","photoUrl":"https:\/\/aws.smartsheet.com\/storageProxy\/image\/images\/u!1!3C9S_9DsC3w!XMDTX-y-BOY!7HVumwhOGBb","dateLastActive":"2023-07-01T15:43:12+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭✭✭"}},"breadcrumbs":[{"name":"Home","url":"https:\/\/community.smartsheet.com\/"},{"name":"Formulas and Functions","url":"https:\/\/community.smartsheet.com\/categories\/formulas-and-functions"}],"groupID":null,"statusID":3,"attributes":{"question":{"status":"accepted","dateAccepted":"2023-06-30T15:52:25+00:00","dateAnswered":"2023-06-30T00:15:36+00:00","acceptedAnswers":[{"commentID":383245,"body":"