Forum Discussion
Help with SUMIF for good karma
The below formula isn't working and I think it's because the last argument is a range. Can anyone help me find a solution that will work please?
=SUM(('2024'!$S$2:$CH$255)*(--('2024'!$H$2:$H$255=Mappings!$C19)))*(--('2024'!$S$2:$CH$2=Mappings!$B$37:$B$50))
Sample data file - https://docs.google.com/spreadsheets/d/18YO5ctgJeCn_hX4S1St7VkKfOEWxwUY6/edit?gid=1003849218#gid=1003849218
16 Replies
- KhaledDardiriCopper ContributorThis post had me intrigued I had to download the file to know if really a redesign is required, and me too I have to recommend a redesign. A well-planned design is halfway to victory. This file looks like when someone is still not sure how to begin or arrange the flow of data.
Sure, at least some columns need to cut down here. This large number of columns screams out loud that something is going wrong here. The best way to do that, if not too many rows will have data in every single column of those, is to make a column (like "Request Type") which will have a different value for each team (in A2:A255). If one team requests more types, add more rows.
I also advise you to use tables which will retain a proper formatting and make formulae more understandable.
You may direct message me if you need more help.- mathetesGold Contributor
KhaledDardiri wrote A well-planned design is halfway to victory.
One might even say it's 3/4 of the way. Certainly without a well-planned design, the result will be challenging to maintain, even if it "works"
This file looks like when someone is still not sure how to begin or arrange the flow of data.
The file has all the markings of a process of tracking which was manually maintained on large ledger sheets, with the thought that one could just transfer that same format over to Excel. An understandable point of view, perhaps, but one that almost by definition fails to take advantage of Excel's remarkable abilities to manipulate data, slicing and dicing, extracting and arraying -- Excel's abilities to do "the heavy lifting". A manual process transferred directly to Excel still requires the user to find the box into which to put a check mark or date or quantity. Whereas listing the transactions which are consist of date, who, what, where, which, how much....is a sufficient database that Pivot Tables or some of the dynamic array functions can then process and summarize in those same "boxes".
- mathetesGold ContributorIt's kinda hard to help you without seeing what the formula is working with (i.e., seeing the cells to which it refers). Your hypothesis is a reasonable one. Why don't you proceed by testing that hypothesis? i.e., by making the last argument something other than a range. But you'd help us help you by posting a copy of the spreadsheet itself, not just the formula that somehow is failing to work as desired.
- SimoneC2220Copper Contributor
mathetes I appreciate your patience. I should have thought of that. I'm trying to do a few things. Datasheet is 2024. In the Mappings tab, I'm try to sum the cells with numeric values (2024 s2:ch255) based on multiple criteria. first is 2024, column h value, then columns s1:ch1 but instead of using individual columns when referencing values I need in 2024, I'd like to use a range in Mappings tab. For example, I would like sum of all cells in 2024 columns s1:ch255 where 2024 column h = "cd" and range s1:ch1 match Mappings tab b37:b50. Result to appear in Mappings e17.
File sent via Messages.
- Harun24HRBronze ContributorIt would be better if you share a sample here in post/comment via one-drive or google-drive so that other contributor can also put formula for you.