Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I have some basic data

Name | Amount
Jake | 10
Jake | 12
Jake | 13
Ben  | 1
Ben  | 14
Ali  | 9
Ali  | 4

I want to total up the amount for each person so I end up with something like

Jake | 35
Ben  | 15
Ali  | 13

Rather than specifying which cells are Jake's, Ben's and Ali's I want to do this using a function. Pseudo code might look like:

TOTAL = WHERE `Name` IS "Jake" IN `COL-A` + `Amount`
share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

It would appear that SUMIF() does exactly this

 =SUMIF(test-range, “test”, [sum-range])
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.