Dynamic Sumproduct

Hrishi

Board Regular
Joined
Jan 25, 2017
Messages
56
Office Version
  1. 365
Platform
  1. Windows
Hello, following is the sample data for quick reference.
there are 4 towers, 5 types of material and 4 suppliers.
i need a formula linked to input cell of tower and vendor, wherein for any combination of tower and vendor , result should show sumproduct for all the list of material.
QTYQTYQTYQTYQTYVENDOR RATESVENDOR RATESVENDOR RATESVENDOR RATES
SR NOITEMTOWER1TOWER2TOWER3TOWER4TOTAL QTYABCDEFGHIJKL
1sand 10.00 32.00 22.00 42.00 106.00 50.00 55.00 65.00 45.00
2cement23.0041.0034.0034.00132.00300.00270.00300.00290.00
3steel35.0023.0052.0022.00132.0060.0055.0066.0058.00
4metal 125.0016.0055.0061.00157.0040.0038.0042.0037.00
5metal 216.0022.0012.0026.0076.0040.0038.0040.0039.00
TOTAL109.00134.00175.00185.00603.00

RESULT
SR NOTOWERVENDORAMOUNT
1TOWER1ABC11,140.00
TOTAL11,140.00

i have made dropdown list for tower and vendor, but unable to make formula dynamic.
pls help.
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Hi,

Have you tried to insert a Pivot Table ? :)
 
Upvote 0
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

Maybe
Fluff.xlsm
ABCDEFGHIJK
1QTYQTYQTYQTYQTYVENDOR RATESVENDOR RATESVENDOR RATESVENDOR RATES
2SR NOITEMTOWER1TOWER2TOWER3TOWER4TOTAL QTYABCDEFGHIJKL
31sand1032224210650556545
42cement23413434132300270300290
53steel3523522213260556658
64metal 12516556115740384237
75metal 2162212267640384039
8TOTAL109134175185603
9
10
11Tower1abc11140
12
Main
Cell Formulas
RangeFormula
F11F11=SUMPRODUCT(INDEX(C3:F7,,MATCH(B11,C2:F2,0)),INDEX(H3:K7,,MATCH(C11,H2:K2,0)))
 
Upvote 0
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

Maybe
Fluff.xlsm
ABCDEFGHIJK
1QTYQTYQTYQTYQTYVENDOR RATESVENDOR RATESVENDOR RATESVENDOR RATES
2SR NOITEMTOWER1TOWER2TOWER3TOWER4TOTAL QTYABCDEFGHIJKL
31sand1032224210650556545
42cement23413434132300270300290
53steel3523522213260556658
64metal 12516556115740384237
75metal 2162212267640384039
8TOTAL109134175185603
9
10
11Tower1abc11140
12
Main
Cell Formulas
RangeFormula
F11F11=SUMPRODUCT(INDEX(C3:F7,,MATCH(B11,C2:F2,0)),INDEX(H3:K7,,MATCH(C11,H2:K2,0)))
PERFECT. THANKS
 
Upvote 0
You're welcome & thanks for the feedback.

Please also update you profile as requested.
 
Upvote 0

Forum statistics

Threads
1,223,898
Messages
6,175,272
Members
452,628
Latest member
dd2

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