Google spreadsheets, SUMIF and $
- April 27th, 2008
- Posted in General
- Write comment
A little explanation on the SUMIF function in google spreadsheets. Understanding this function will help you understand many other spreadsheet functions.
Let’s say we’ve got a simple list of people and amounts:
Let’s say, we want to know how much each person has paid.
We insert some extra columns:

And the formula:

=SUMIF($A2:$A17, D2, $B2:$B17)
Dragg the cell across the 4 other columns to copy the formula.
You will now see the combines amounts of the 4 names.
SUMIF
Ok, but how dows it work?
SumIF(argument1, argument2, argument3) needs 2 arguments to work, but you can use it with 3 if you want.
Argument1: The ‘search’ argument. This is the range of cells you want to search in.
Argument2: Criteria, this is ‘what we are looking for’.
Argument3: the ‘add to’ argument.
If the functions finds argument2(criteria) in argument1, it will add argument3 to the total.
… maybe this image will clear things up:


No comments yet.