I am trying to count the number of "failures" within a certain range of columns (about 67 columns) that also are specific to a cabin name "Agnis" (for example). I keep getting an incorrect argument or error on the formula.
This is the other sheet I am referencing:
The range of "failures" is columns starting at "Driveway sign rating" and extends over about 60+ more columns so I am trying to capture all those columns. Then, I want to only count them if the Cabin name is specific. For this example, it would be in the "Cabin Name" column.
I am having trouble with the ranges I select and it returns an error. Note that this example is a form entry sheet.
You are going to need a helper column on your source sheet with a COUNTIFS to output the number of Failures on each row. Then you would SUM this helper column on your metrics sheet.
If you want to also do this for the other ratings, you would need to add a helper column for each rating.
The only way I know to do it is to add multiple countifs formulas. The range of more than one column doesn't seem to work with the countifs formula. It works with countif but not countifs.
Example
=COUNTIFS({Driveway Sign Rating},"Failure",{Cabin Name},"Agnis")+COUNTIFS({Driveway/Parking Spot Rating},"Failure",{Cabin Name},"Agnis") continue adding for each of your columns
@Hollie GreenThe reason the multi-column range isn't working is because all ranges within a function MUST be of the same shape/size. In the COUNTIF you only have one range. In the COUNTIFS you have two ranges. One is multiple columns and the other is single columns. If both were single columns or both were multiple columns (and the same number of columns) then it would work.
Generally speaking I do usually go with the COUNTIFS + COUNTIFS solution, but in this case that means stacking 67 individual COUNTIFS in there. That's why I went with the helper columns on the source sheet to get the totals for each score. 5 COUNTIFS is a lot easier to manage than 67 COUNTIFS.
但我希望它只数,如果cabi范围n type column is a specific identifier (ie 1B). This is because it is skewing the number of cells that it is adding, because some cells are only related to a certain type of cabin.
Try IF([payment voucher]@row=0,Sum([Parking Revenue Regular]@row:[Private boat parking revenue]@row),\"//www.santa-greenland.com/community/discussion/comment/\")<\/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":106883,"type":"question","name":"Needing some help with my current smartsheet project","excerpt":"So I'm coming across some issues with my workflows and functions with my current sheet, and I'm hoping somebody could help me out because I'm stumped. There are boxes I have set up on children rows that get checked manually to confirm a certain portion of the Main Task is complete. I'm currently in search of a way I can…","categoryID":322,"dateInserted":"2023-06-26T13:40:29+00:00","dateUpdated":null,"dateLastComment":"2023-06-26T20:13:57+00:00","insertUserID":162756,"insertUser":{"userID":162756,"name":"SarahI","title":"Sarah","url":"https:\/\/community.smartsheet.com\/profile\/SarahI","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-06-26T19:19:04+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-06-26T20:54:28+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭✭✭✭"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":8,"countViews":42,"score":null,"hot":3375602066,"url":"https:\/\/community.smartsheet.com\/discussion\/106883\/needing-some-help-with-my-current-smartsheet-project","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/106883\/needing-some-help-with-my-current-smartsheet-project","format":"Rich","lastPost":{"discussionID":106883,"commentID":382423,"name":"Re: Needing some help with my current smartsheet project","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/382423#Comment_382423","dateInserted":"2023-06-26T20:13:57+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-06-26T20:54:28+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-26T15:51:35+00:00","dateAnswered":"2023-06-26T15:23:39+00:00","acceptedAnswers":[{"commentID":382304,"body":"