Lookup question

drluke

Active Member
Joined
Apr 17, 2014
Messages
314
Office Version
  1. 365
Platform
  1. Windows
I'm attempting to do a lookup from data organised like:
[TABLE="class: grid, width: 300"]
<tbody>[TR]
[TD]Name[/TD]
[TD]7755[/TD]
[TD]7756[/TD]
[TD]7757[/TD]
[/TR]
[TR]
[TD]Hill[/TD]
[TD]100.00[/TD]
[TD]25.00[/TD]
[TD]98.00[/TD]
[/TR]
[TR]
[TD]Smith[/TD]
[TD]10.26[/TD]
[TD]896.57[/TD]
[TD]3215.14[/TD]
[/TR]
[TR]
[TD]Black[/TD]
[TD]18.76[/TD]
[TD]12.00[/TD]
[TD]47.86
[/TD]
[/TR]
[TR]
[TD]Hill[/TD]
[TD]56.98[/TD]
[TD]25.47[/TD]
[TD]33.59[/TD]
[/TR]
[TR]
[TD]Brown[/TD]
[TD]1254.26[/TD]
[TD]8569.24[/TD]
[TD]4529.10[/TD]
[/TR]
[TR]
[TD]Hill[/TD]
[TD]5869.25[/TD]
[TD]5689.24[/TD]
[TD]1.56[/TD]
[/TR]
</tbody>[/TABLE]

In my lookup sheet I have the names in columns, and the name is the only thing in common between the 2 tables. What formula can I used to sum the total of all sales made by Hill for all 3 categories?

[TABLE="class: grid, width: 300"]
<tbody>[TR]
[TD]Name[/TD]
[TD]Hill[/TD]
[TD]Smith[/TD]
[TD]Black[/TD]
[TD]Brown[/TD]
[/TR]
[TR]
[TD]Total[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.

Excel 2010
ABCDEFGHIJKLMN
1Namecat 1cat 2cat 3NameHillSmithBlackBrown
2Hill1002598Total11899.094121.9778.6214352.6
3Smith10.26896.573215.14
4Black18.761247.86
5Hill56.9825.4733.59
6Brown1254.268569.244529.1
7Hill5869.255689.241.56
Sheet10
Cell Formulas
RangeFormula
J2{=SUM(MMULT(TRANSPOSE($B$2:$D$7),--($A$2:$A$7=J$1)))}
K2{=SUM(MMULT(TRANSPOSE($B$2:$D$7),--($A$2:$A$7=K$1)))}
L2{=SUM(MMULT(TRANSPOSE($B$2:$D$7),--($A$2:$A$7=L$1)))}
M2{=SUM(MMULT(TRANSPOSE($B$2:$D$7),--($A$2:$A$7=M$1)))}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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