Sum or sumproduct of multiple columns based on the text contents of a cell in the column.

jcoeng

New Member
Joined
May 11, 2011
Messages
15
Office Version
  1. 365
Platform
  1. Windows
  2. Web
Hello,

I have a spreadsheet of course where I list a bunch of products and their meta data, cost etc.

I then have columns at the end that represent packages and in those columns are select products with the quantity of that product that will be in the package. There are multiple of these "package" columns and they keep getting added on the end. The columns I want to sum up have heading "Qty" standing for the quantity of the product in that row to be included in the package.

I'm looking for a function/formula that will sum the contents (within a range of columns thats expandable as Packages get added) of all the individual rows in my sheet that have the text "Qty" in a specific row which is used as a header row.

The end result would be a column that has the total quantity of parts necessary to make all of the packages.

I can't just sum the individual rows because there is other data in there that would mess up the results.

Any suggestions would be greatly appreciated. If you need more info please let me know. Not sure how to upload a file but if I can I would.
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes

Forum statistics

Threads
1,224,518
Messages
6,179,248
Members
452,900
Latest member
LisaGo

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top