Dear Friends..
In our day to day working with MS Excel we often requires to sum the range with some conditions.
So here comes a very useful formula for you to do this task with ease and accuracy.
SUMIF Syntax
=SUMIF(range,criteria,sum_range)
=SUMIF(A1:A10,">20",B1:B10)
Which would SUM all numeric cells in the range B1:B20 where the corresponding row in A1:A10 was greater than 20. If we ommit the last optional argument (sum_range) the SUMIF would sum all cells in the range A1:A10 which are greater than 20, i.e.
=SUMIF(A1:A10,">20")
Note the criteria argument is in the form of a number, expression, or text that defines which cells will be summed. For example, criteria can be expressed as 20, "20", "=20", ">20", "North", "N*".
=SUMIF(A1:A10,">20",B1:B10)
Which would SUM all numeric cells in the range B1:B20 where the corresponding row in A1:A10 was greater than 20. If we ommit the last optional argument (sum_range) the SUMIF would sum all cells in the range A1:A10 which are greater than 20, i.e.
=SUMIF(A1:A10,">20")
Note the criteria argument is in the form of a number, expression, or text that defines which cells will be summed. For example, criteria can be expressed as 20, "20", "=20", ">20", "North", "N*".
For any confusion or explanation.. feel free to comment...
Comments
Post a Comment