find variable, auto sum column

jan21

New Member
Joined
May 29, 2019
Messages
4
A
B
C
D
E
F
Multiplier
Z
10
10
1
Y
50
50
10
2
X
4
4
10
3
W
10
4

<tbody>
</tbody>

Enter #
SUM

<tbody>
</tbody>

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

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Hi. Try this:

=SUMPRODUCT(INDEX($B$1:$F$4,,CODE($A$6)-65),$G$1:$G$4)
 
Upvote 0
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,215,580
Messages
6,125,654
Members
449,245
Latest member
PatrickL

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