# How to Use SUMIF Function in Google Sheets

## What is the SUMIF formula in Google Sheets?

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:

1. Summing sales figures based on a specific value: If you have a sheet with a list of all your sales and the product sold in each sale, you could use the SUMIF function to quickly sum all sales for products whose sales are over a specific standard.
2. Summing the values in a range based on a specific date: If you have a sheet with a list of all your transactions and the date of each transaction, you could use the SUMIF function to quickly sum all transactions that occurred on a specific date.
3. Summing the values in a range based on a specific category: If you have a sheet with a list of all your expenses and the category of each expense, you could use the SUMIF function to quickly sum all expenses that fall under a specific category.

## How to add up numbers with a condition in Google Sheets

1. You need to decide which cell you want to show the aggregated number.
2. In the chosen cell, type “=SUMIF” or select the function from a list of functions (Go to the “Insert” tab, move to the “Function”, click “Maths” and select the “SUMIF” function.)
3. Enter three arguments; range, criterion, and sum range. You can directly type in these elements or use cell references.
4. Press the “Enter” key on your keyboard.

The general syntax of the SUMIF formula is as follows:

``=SUMIF(range, criterion, [sum_range])``

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.

## How to use the SUMIF formula for a numeric criterion in Google Sheets

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.

equal: =

larger than: >

smaller than: <

greater than or equal to: >=

less than or equal to: <=

not equal: <>

## How do I sum cells with the specific text in Google Sheets?

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).

## How to use the SUMIF formula for dates in Google Sheets

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.

## How to use the SUMIF function for blank cells or non-blank cells in Google Sheets

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.

## Can you use the SUMIF function with three criteria in Google Sheets?

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

## What are the other formulas related to mathematics and statistics

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.

How to Do Math in Google Sheets for Beginners

MINUS Function in Google Sheets: Explained

DIVIDE Function in Google Sheets: Explained

MULTIPLY Function in Google Sheets: Explained

PRODUCT Function in Google Sheets: Explained

How to Use SUM Function in Google Sheets

How to Use SUMPRODUCT Formula in Google Sheets

How to Use MAX Function in Google Sheets

How to Use MIN Function in Google Sheets

How to Use MEDIAN Function in Google Sheets

How to Use AVERAGE Formula in Google Sheets

How to Use MODE Function in Google Sheets

MOD Function in Google Sheets: Explained

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

## Analyze your live financial data in a snap

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.    