VLOOKUP and SUM

Emma87

New Member
Joined
Dec 18, 2017
Messages
2
I am looking for a formula to look up the same name then add up the total numbers next to it. It always brings back just one instance when I write my formula.
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
so in the example on the page you posted it just shows pen however if I wanted to give the total of all the items separately how would that look?
 
Upvote 0
Create a list of items and copy the formula down

Something like this


A
B
C
D
E
1
Item​
Qty​
Criteria​
Result​
2
Pen​
5​
Pen​
37​
3
Pencil​
9​
Pencil​
19​
4
Binder​
9​
Binder​
27​
5
Pen​
6​
6
Pen​
15​
7
Binder​
12​
8
Pencil​
10​
9
Binder​
6​
10
Pen​
11​

<tbody>
</tbody>


Formula in E2 copied down
=SUMIF(A$2:A$10,D2,B$2:B$10)

M.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,220
Messages
6,123,697
Members
449,117
Latest member
Aaagu

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