If [x] then add up a range

excelnovice1981

New Member
Joined
Feb 20, 2018
Messages
2
Please can you help with this problem - See table below:

I would like to put a formula in Colum C that adds up the total per person. So it needs to:

a) find everyone with the same name in Column A (e.g. everyone called John)
b) look in the corresponding row in Column B and add up all of those numbers (e.g. for John add $10 + $12 + $8)
c) return the sum in the first row for each person (e.g. C2 for John) and leave all other cells in Column C blank (e.g. C3 and C4 for John)

I have a large data set and just need to copy and paste formula down the coulmn
ABCDE
1NameIncomeTotal Income per person
2John$10$30
3John$12
4John$8
5Mary$5$28
6Mary$7
7Mary$9
8Mary$7
9Stephen$6$6

<tbody>
</tbody>
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.

Forum statistics

Threads
1,215,750
Messages
6,126,665
Members
449,326
Latest member
asp123

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