In this article, you will learn how to use Google Sheets SUMIF Function.
The SUMIF function in Google Sheets is useful when you want to sum a range of cells based on a specific criterion. It can save you a lot of time and make your spreadsheets more dynamic by automating the process of summing values based on specific criteria. For instance, you can use the SUMIF formula when:
The general syntax of the SUMIF formula is as follows:
range: This is the column the function refers to check if there is data that matches the criterion.
criterion: This could be a specific word/text, number, or date. You can input it directly in the formula or refer to a cell containing it.
sum range: This range should correspond to the “Range” regarding the number of cells and directions.
Note: The size of the range for the “range” argument must be the same as that of the “sum range” parameter.
Look at the examples below. Assume you want to know the aggregated score for Division 1 based on the data set below. First, you need to select the “Division” column as “range”, reference cell C11 as “criterion”, and choose the “Score” column as “sum range”. The formula in cell D11 returns 100 according to the arguments input. In cell D12, you can find another formula returning the same value, in which we use a manual input for the “criterion” argument. When you enter a numeric value in a parameter, you don’t need to enclose it with quotation marks.
Next, look at the examples in which you use a logical operator with a number in the “criterion” argument. This time, imagine you want to sum up scores for items with scores greater than 40. You can use the “<” operator. We show the three types of formulas, which vary in terms of how to enter criterion, in the following screenshot: (i) cell reference referring to a cell, (ii) cell reference referring to two cells, one for a logic operator and the other for a numeric value, and (iii) a manual input. Note that you need to enclose a number with a logic operator with quotation marks, as shown below.
You can use the following signs to define the relationship between numbers in Google Sheets.
larger than: >
smaller than: <
greater than or equal to: >=
less than or equal to: <=
not equal: <>
You can sum cells based on the text as well. In the examples below, assume that you add scores for Division DEF. If you use the cell reference for the “criterion”, you can use the SUMIF formula as you use it for a numeric condition. When you manually input a text criterion in the argument, the standard should be inside quotation marks, as shown in the picture below (cell D37).
In this section, you will learn how to use the SUMIF function for dates. When you handle a date for this function, you can consider it similar to a text value. Take a look at the following picture to see three patterns of inputs: (i) cell reference referring to a cell, (ii) cell reference referring to two cells, one for a logic operator and the other for a numeric value, and (iii) manual input. Note that you need to enclose a number with a logic operator with quotation marks, as shown below.
Finally, learn how to aggregate numbers depending on whether a certain cell is blank. You can use one of the following logic operators: “<>” for non-blank cells or ““ for blank cells. Imagine that you want to add up sales amount of items whose “Type” is unknown, or blank. In this case, you must enter ““ in the “criterion” argument. On the other hand, if you want to know the total sales amount for items whose “Type” are identified in the “Type” column, you can insert ““ in the formula, as shown in the following examples.
Yes, you can, but you need to use the “SUMIFS” function for multiple criteria instead of the “SUMIF” function we introduce on this page. Check this page to learn about the SUMIFS formula: SUMIFS Function in Google Sheets: Explained
If you don’t get the solution you are looking for in this article, or you have further questions related to mathematics or statistics, you may find the answers in the following articles.
Go to the following articles to learn basic formulas in Google Sheets.
Navigate to the pages below to learn how to sum, count, or average numbers with a condition or multiple conditions.
SUMIFS Function in Google Sheets: Explained - sum up the numbers that meet multiple criteria
How to Use COUNTIF Function in Google Sheets - count the number of cells that meet a requirement
How to Use COUNTIFS function in Google Sheets - count the number of cells that meet multiple requirements
AVERAGEIF Function in Google Sheets: Explained - average the figures that meet a standard
AVERAGEIFS Function in Google Sheets: Explained - average the figures that meet multiple standards
AVERAGE.WEIGHTED Function in Google Sheets: Explained - use this formula to calculate the weighted average
MAXIFS Function in Google Sheets: Explained - seek for the maximum value that meets specific criteria
MINIFS Function in Google Sheets: Explained - seek for the minimum value that meets specific criteria
Visit the following post if you are interested in learning how to count the number of specific cells.
COUNT Function in Google Sheets: Explained - count the number of cells containing numeric values (except for blank ones)
COUNTA Function in Google Sheets: Explained - count the number of cells incorporating all types of values containing text and date, except for blank ones
COUNTBLANK Function in Google Sheets: Explained - count the number of blank cells
COUNTUNIQUE Function in Google Sheets: Explained - count the number of unique cells
You can learn about other Google Sheets formulas and tips that are not mentioned here on this page: LiveFlow‘s How to Guides
Are you learning this formula to visualize financial data, build a financial model, or conduct financial analysis? In that case, LiveFlow may help you automate manual workflows and update numbers in real-time. You can access various financial templates on our website, from the simple Income Statement to Multi-Currency Consolidated Financial Statement. You can also customize these templates as you want without breaking the automated data inflow.
To learn more about LiveFlow, book a demo.
Learn how to do this step-by-step in the video below 👇