SUMIF

MarkAndrews

Well-known Member
Joined
May 2, 2006
Messages
1,970
Office Version
  1. 2010
Platform
  1. Windows
I have a data layout like below
File Amounts per Fee Earner.xls
ABCD
1TotalTransactionTypeHeldFiles
2AdamFreeman(S&PFE-BRD)3Sale0
3AdamFreeman(S&PFE-BRD)7Purchase0
Sheet1


What i would like to do is work out the cumulative figure for each person (they can appear more than once) from column B

Can i use SUMIF, or SUMPRODUCT (i have never used sumproduct)

TIA
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
Try:

=SUMIF(A:A,"Adam Freeman",B:B)

Had an extra bracket in my earlier post.

Yeah, I noticed that Neil & removed it - still = 0?
 
Upvote 0
2 possibilities - you've got an extra space within your list of names (maybe after the surname?), or column B is formatted as text.
 
Upvote 0
Still 0
File Amounts per Fee Earner.xls
ABCDEFG
1TotalTransactionTypeHeldFiles
2AdamFreeman(S&PFE-BRD)3Sale00
3AdamFreeman(S&PFE-BRD)7Purchase0
4AilsaKempthorne(S&PFEBRDH/WORKE4S&P0
Sheet1
 
Upvote 0
Because you have additional data after the name

=SUMIF(A:A,"Adam Freeman *",B:B)

If there might be additional data before the name also

=SUMIF(A:A,"* Adam Freeman *",B:B)
 
Upvote 0
Because you have additional data after the name

=SUMIF(A:A,"Adam Freeman *",B:B)

If there might be additional data before the name also

=SUMIF(A:A,"* Adam Freeman *",B:B)

Works like a dream, thankyou

Can i replace the name with a cell reference?
 
Upvote 0

Forum statistics

Threads
1,213,535
Messages
6,114,192
Members
448,554
Latest member
Gleisner2

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