Sum only specified values

B

Bob

Column A Column B
Joe 100
John 300
Bob 200
George 500
John 300
Bob 250
John 125

How do I get the sum of all entries for John in a cell in Column C?
 
T

T. Valko

Try this:

=SUMIF(A1:A7,"John",B1:B7)

Or, use a cell to hold the criteria:

D1 = John

=SUMIF(A1:A7,D1,B1:B7)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top