find variable, auto sum column

jan21

New Member
Joined
May 29, 2019
Messages
4
[TABLE="width: 500"]
<tbody>[TR]
[TD]A
[/TD]
[TD]B
[/TD]
[TD]C
[/TD]
[TD]D
[/TD]
[TD]E
[/TD]
[TD]F
[/TD]
[TD]Multiplier
[/TD]
[/TR]
[TR]
[TD]Z
[/TD]
[TD]10
[/TD]
[TD][/TD]
[TD][/TD]
[TD]10
[/TD]
[TD][/TD]
[TD]1
[/TD]
[/TR]
[TR]
[TD]Y
[/TD]
[TD][/TD]
[TD]50
[/TD]
[TD]50
[/TD]
[TD][/TD]
[TD]10
[/TD]
[TD]2
[/TD]
[/TR]
[TR]
[TD]X
[/TD]
[TD]4
[/TD]
[TD][/TD]
[TD][/TD]
[TD]4
[/TD]
[TD]10
[/TD]
[TD]3
[/TD]
[/TR]
[TR]
[TD]W
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]10
[/TD]
[TD]4
[/TD]
[/TR]
</tbody>[/TABLE]

[TABLE="width: 500"]
<tbody>[TR]
[TD]Enter #
[/TD]
[TD]SUM
[/TD]
[/TR]
</tbody>[/TABLE]

When I write "B" in the field "Enter #", I want that it shows the sum of the named column, in this case sum=(10*1)+(4*3)=22. How can I do this?
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
If it doesnt work then you are not pointing to the correct cells. CODE(A6)-65 is being used to convert eg 'B' to a number. In this case 1 as its the first column of the INDEX.
 
Upvote 0
How about


Excel 2013/2016
ABCDEFG
1ABCDEFMultiplier
2Z10101
3Y5050102
4X44103
5W104
6
7Enter #B22
Names
Cell Formulas
RangeFormula
C7=SUMPRODUCT((B1:F1=B7)*(B2:F5)*(G2:G5))
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,223,704
Messages
6,173,984
Members
452,540
Latest member
haasro02

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