Tutorial excel sumif. Sumifrange criteria sumrange. Suppose we are given a table listing the consignments of vegetables from different suppliers. It can be used as a worksheet function ws in excel. You can try the sumif function to add numbers in a range based on multiple criteria.
In this article we take a look at the sumif and sumifs functions in excel. Use the sumif function in excel to sum cells based on numbers that meet specific criteria. Sumif is a frequently used function. The sumif function is a built in function in excel that is categorized as a mathtrig function.
Today i show you how to use sumif to analyse your data. The names of the vegetable names of suppliers and quantity are in column a column b and column c respectively. Sumif function in excel according to microsoft excel sumif is defined as a function that adds the cells specified by a given condition or criteria. Both are quite useful in allowing us to sum data based on related criteria within the same data set.
To sum all numbers with a color of blue sumrange is number criteriarange1 is color and criteria is blue. The next example also requires two pair of range and criteria. If you need to you can adjust the column widths to see all the data. To get the most out of this tutorial we suggest that you have a good basic knowledge of how to create an excel spreadsheet and how to add and format data within excel.
The syntax of sumif function is as under. As a worksheet function the sumif function can be entered as part of a formula in a cell of a worksheet. In the next example sumrange is number but i need to enter two pair of range and criteria to satisfy both conditions. The sumif function below two arguments sums values in the range a1a5 that are less than or equal to 10.
Ever needed to add things together based on category. For formulas to show results select them press f2 and then press enter. Have two columns but only want the total of col.