I have a bunch of columns and some columns which are values I need to add.
Lets say I want to sum columnB (which could be $) where column A is banana, how do I do that?
Thing is I have a huge dataset and it is something that is going to keep changing. And besides banana, i might have apples, oranges, etc. And I want to sum the $ value to the respective column param.
And I wonder if I can do this in Excel.
PLease let me know if possible. Much appreciated.
sriram
Look up the
SUMIFfunctionhttp://office.microsoft.com/en-us/excel/HP052092921033.aspx
You can do somethig like this
=SUMIF(A1:A10, "banana", B1:B10)To make it dynamic, lets say A11 has “apple”, B11 has “banana” and C11 has “orange” and you want the sums in the row below
in A12, put
=SUMIF ($A$1:$A$10, A11, $B$1:$B$10)in B12, put
=SUMIF ($A$1:$A$10, B11, $B$1:$B$10)in C12, put
=SUMIF ($A$1:$A$10, C11, $B$1:$B$10)