Forum Discussion
JohnG768
Nov 29, 2023Copper Contributor
Sum If Different Cell Matches Criteria
In the example shown here, I have 3 changes assigned to various Cost Codes. I need to find the total for each cost code at the bottom, but the codes won't always be in the same order, could appear multiple times, or not at all.
So, for example, in the first section, I need Excel to see "ELE-Electrical" in B6 and add what's in B4, but I also need it to see what's in B12 and see it's "CAB-Cabinetry" and ignore B10. Then also include B16 because "ELE-Electrical" is in B18.
I was thinking I may need to rearrange the data elsewhere on the sheet and do any calculations somewhere else, but before I go down that route I wanted to see what other options are out there. There are 25+ different cost codes and I'm evaluating 144 different changes so doing it manually is a daunting task.
- OliverScheurichGold Contributor
- JohnG768Copper Contributor
Thank you. At first, I couldn't understand why that worked, but I believe I figured it out. I appreciate the help.