|
Question : Creating an automatic sum for specific cells - excel 2007
|
|
Dear Experts!
I have such table:
Column A Column B ================= Foo 12 Bar 40 Bar 62 Foo 20 Bob 10 Foo 12
I would like to create some sort of a summit table, something like this:
Sums table ========= Foo: Total: 44 Bar: Total: 102 Bob: 10
My question is, how do I create a sum function automatically in such way, that the formula will know to sum all "foo" cells, and then "bar" cells and "bob" cells - So that I won't need to select the cell range myself?
Hope that someone understood my question :-)
Many thanks in advance!!!
|
|
Answer : Creating an automatic sum for specific cells - excel 2007
|
|
Use the SumIf formula...
=SUMIF(A1:A4,A6,B1:B4)
Where A1:A4 is the range of labels.. in this case your list of foos and bars etc A6 is the foo or bar from sum table and B1:B4 is the list of numbers to be summed.
Example Excel spreadsheet attached.
|
|
|
|