Multiplying matrix with blanks - Formula help

Brad B

New Member
Joined
Jul 27, 2016
Messages
17
I'm not sure what to call the function I'm looking for, not even positive multiplying by a matrix is the correct name for what I want to do, but I'll describe below.

I have a table similar to this:

(Cell: A1)Components>CompACompBCompC
ProductsDemand
Prod150012
Prod210003
Prod320005

<tbody>
</tbody>


I need to find sum need for each component (Column)
I could write individual formulas in each cell below, ie:

blankblank=c3*b3=d5*b5=e3*b3
=e4*b4
=sum(c1:c4)=sum(d1:d4)=sum(e1:e4)

<tbody>
</tbody>

This very tedious manual version will work to get my desired result, but if would much prefer a formula, as the actual table contains over 100 columns and hundreds of rows.

I have seen some formulas involving index and match, and ways to find the nth non-blank value in a column, but it was a little over my head trying to adapt it to my situation in a way that I could quickly copy the formula across and down to get my desired results. (still not ideal to manually change a number in each formula for hundreds of columns/rows...)

Note: I do not necessarily need to know how many components will be needed for each part in the results, just how many total components are needed to meet the need for all products.

Any help would be greatly appreciated!
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Hello, if you just want to know the total demand of each comp then you can use this to find out the value:

{=SUM(IF(C2:C5<>"",$B$2:$B$5*C2:C5,0))}

This can then be copied over for each component.

**Keep in mind that this is an array formula. so type this into your cell:
=SUM(IF(C2:C5<>"",$B$2:$B$5*C2:C5,0))
Then double click into the cell and press Control+Shift+Enter and the brackets will then show up around the formula indicating it's an array formula.
 
Upvote 0
Looks like you can also use sum product to accomplish this too (I'm not sure why my mind went immediately to an array formula in the last post haha):

=SUMPRODUCT($B$3:$B$5,C3:C5)
 
Last edited:
Upvote 0
Sumproduct is a much simpler way to find the same result that I'm looking for. I was making it much harder than it had to be.

Thanks for your help - both formulas work perfectly!
 
Upvote 0

Forum statistics

Threads
1,215,326
Messages
6,124,263
Members
449,149
Latest member
mwdbActuary

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