Search Range of Cells and Sum Values

jirpel

New Member
Joined
Jan 28, 2019
Messages
9
Hi,

I was wondering if there is an easy way to search a group of values and sum the corresponding number listed in the ROW below it.

[TABLE="width: 384"]
<tbody>[TR]
[TD="class: xl69, width: 64"]COM[/TD]
[TD="class: xl67, width: 64"]BVILLE[/TD]
[TD="class: xl67, width: 64"]CUR[/TD]
[TD="class: xl67, width: 64"]CAP[/TD]
[TD="class: xl67, width: 64"]WV2P[/TD]
[TD="class: xl67, width: 64"]PAM[/TD]
[/TR]
[TR]
[TD="class: xl70"]40 [/TD]
[TD="class: xl65"]16[/TD]
[TD="class: xl65"]16[/TD]
[TD="class: xl65"]8[/TD]
[TD="class: xl65"]32[/TD]
[TD="class: xl65"]64[/TD]
[/TR]
[TR]
[TD="class: xl68"]MPB[/TD]
[TD="class: xl67"]ACB[/TD]
[TD="class: xl67"]TZ[/TD]
[TD="class: xl67"]I-84[/TD]
[TD="class: xl67"]Traf[/TD]
[TD="class: xl67"]BAL[/TD]
[/TR]
[TR]
[TD="class: xl65"]40[/TD]
[TD="class: xl65"]8[/TD]
[TD="class: xl65"]0[/TD]
[TD="class: xl65"]24[/TD]
[TD="class: xl65"]16[/TD]
[TD="class: xl65"]16[/TD]
[/TR]
[TR]
[TD="class: xl67"]MFE DM[/TD]
[TD="class: xl67"]MKT[/TD]
[TD="class: xl68"]219[/TD]
[TD="class: xl67"]I79[/TD]
[TD="class: xl68"]Ohl[/TD]
[TD="class: xl67"]PAM[/TD]
[/TR]
[TR]
[TD="class: xl65"]32[/TD]
[TD="class: xl65"]0[/TD]
[TD="class: xl65"]24[/TD]
[TD="class: xl65"]64[/TD]
[TD="class: xl65"]8[/TD]
[TD="class: xl65"]6[/TD]
[/TR]
[TR]
[TD="class: xl67"]PAM[/TD]
[TD="class: xl69"]COM[/TD]
[TD="class: xl67"]BVILLE[/TD]
[TD="class: xl67"]GT[/TD]
[TD="class: xl67"]ACB[/TD]
[TD="class: xl69"]COM[/TD]
[/TR]
[TR]
[TD="class: xl65"]40[/TD]
[TD="class: xl70"]40 [/TD]
[TD="class: xl65"]16[/TD]
[TD="class: xl65"]32[/TD]
[TD="class: xl65"]4[/TD]
[TD="class: xl70"]6 [/TD]
[/TR]
</tbody>[/TABLE]

For example, if I needed to sum the Values for "COM" it would return a total of 86. Thanks - this would be a huge time savor!
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
How about


Excel 2013/2016
ABCDEFGH
1COMBVILLECURCAPWV2PPAMCOM
24016168326486
3MPBACBTZI-84TrafBAL
44080241616
5MFE DMMKT219I79OhlPAM
6320246486
7PAMCOMBVILLEGTACBCOM
84040163246
Master
Cell Formulas
RangeFormula
H2=SUMPRODUCT(--($A$1:$F$7=H1),($A$2:$F$8))
 
Upvote 0

Forum statistics

Threads
1,225,761
Messages
6,186,883
Members
453,381
Latest member
CGDobyns

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