Need to get sum with lookup

Ahmed Fawad

Board Regular
Joined
Mar 1, 2011
Messages
63
Office Version
  1. 2016
Platform
  1. Windows
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Name[/TD]
[TD]Expense[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Harry[/TD]
[TD]10[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Danny[/TD]
[TD]30[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Micheal[/TD]
[TD]160[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Harry[/TD]
[TD]28[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Tom[/TD]
[TD]22[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Harry[/TD]
[TD]32[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]


I need to get total expenses of Harry. Plese help
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
is it just harry or other names ?

use a sumif()
or a pivot table

in a new cell say D2 put Harry
in E2 put
=Sumif(A:A,D2,B:B)
of if its only going to be harry
=Sumif(A:A,"harry",B:B)
 
Upvote 0

Forum statistics

Threads
1,223,896
Messages
6,175,260
Members
452,627
Latest member
KitkatToby

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