Is there a way to use SumIF to add values in a column that match a specific text string in adjacent

We are building estimate sheets using a hierarchy based on Construction Specifications Institute's organizational coding system. I have rows nested using multiple parent / children. The top level is the CSI Division, which has children rows with specific categories within that Division, and each Category line has nested rows with more specific rows breaking that item down into more granular detail. I'm using conditional formatting and =sum(children) functions to roll up totals up the hierarchy. This works well as it's easy to add rows at any level of the hierarchy and easy to set up filters to see the sheet with rows visible by level of parent / child hierarchy.
I want to pull values from a "Quantity" column where the cell contains a number (or a formula that produces a number). A cell in the adjacent column "Unit" on the row contains a text string such as "Shr" for superintendent hour or "Chr" for carpenter hour. The quantity cell is a vlookup formula that pulls a billable hourly rate from another sheet.
I cannot figure out how to create a formula that will sum the total hours in the Quantity column that match a specific text entry in the "Unit" column.
Comments
-
Andrée Starå ✭✭✭✭✭✭
Hi Burt,
Can you describe your process in more detail and maybe share the sheet(s) or some screenshots? That would make it easier to help. (share too,[email protected])
Have a fantastic weekend!
Best,
Andrée Starå
Workflow Consultant @ Get Done Consulting
SMARTSHEET EXPERT CONSULTANT & PARTNER
Andrée Starå| Workflow Consultant / CEO @WORK BOLD
W:www.workbold.com| E:[email protected]| P: +46 (0) - 72 - 510 99 35
Feel free to contact me about help with Smartsheet, integrations, general workflow advice, or something else entirely.
-
Paul Newcome ✭✭✭✭✭✭
=SUMIFS(Quantity:Quantity, Unit:Unit,@cell= "text")
Help Article Resources
Categories
You can try this formula for your condition- <\/p>
=IF(AND([Materials in Rigotec\/Talad]@row = true, [Materials in CR]@row = true, [HC in Place]@row = true, [QA\/QC done before install]@row = true), \"Green\", IF(AND([Materials in Rigotec\/Talad]@row = false, [Materials in CR]@row = false, [HC in Place]@row = false, [QA\/QC done before install]@row = false), \"//www.santa-greenland.com/community/discussion/43606/\", IF(OR([Materials in Rigotec\/Talad]@row = false, [Materials in CR]@row = false, [HC in Place]@row = false, [QA\/QC done before install]@row = false), \"Red\"))) <\/p>
Hope this will work for you <\/p>"},{"commentID":389689,"body":"
Cool, many thanks Kaveri, working as watch, just copy and paste, perfect<\/p>
Yuval<\/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":108670,"type":"question","name":"Counting options selected in Multi-Select Column","excerpt":"Is there a way to count the number of options selected in a multi-select column in another column? Column3 here has the result we are looking for.","snippet":"Is there a way to count the number of options selected in a multi-select column in another column? Column3 here has the result we are looking for.","categoryID":322,"dateInserted":"2023-08-08T16:37:06+00:00","dateUpdated":null,"dateLastComment":"2023-08-08T17:15:22+00:00","insertUserID":164753,"insertUser":{"userID":164753,"name":"DuayneB","title":"IT","url":"https:\/\/community.smartsheet.com\/profile\/DuayneB","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-08-08T17:14:37+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"updateUserID":null,"lastUserID":164753,"lastUser":{"userID":164753,"name":"DuayneB","title":"IT","url":"https:\/\/community.smartsheet.com\/profile\/DuayneB","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-08-08T17:14:37+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":2,"countViews":35,"score":null,"hot":3383028748,"url":"https:\/\/community.smartsheet.com\/discussion\/108670\/counting-options-selected-in-multi-select-column","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/108670\/counting-options-selected-in-multi-select-column","format":"Rich","lastPost":{"discussionID":108670,"commentID":389569,"name":"Re: Counting options selected in Multi-Select Column","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/389569#Comment_389569","dateInserted":"2023-08-08T17:15:22+00:00","insertUserID":164753,"insertUser":{"userID":164753,"name":"DuayneB","title":"IT","url":"https:\/\/community.smartsheet.com\/profile\/DuayneB","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-08-08T17:14:37+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\/FI9I5AGQT2FT\/image.png","urlSrcSet":{"10":"","300":"","800":"","1200":"","1600":""},"alt":"image.png"},"attributes":{"question":{"status":"accepted","dateAccepted":"2023-08-08T17:14:36+00:00","dateAnswered":"2023-08-08T16:49:56+00:00","acceptedAnswers":[{"commentID":389560,"body":"
I hope you're well and safe!<\/p>
Edited because I was thinking of a cross-sheet range.<\/p>
Be safe, and have a fantastic week!<\/p>
Andrée Starå<\/strong><\/a> | Workflow Consultant \/ CEO @ WORK BOLD<\/strong><\/a><\/p>