Back to product guides

Google Sheets Formulas

In this article, you will learn how to use the SUMIFS formula in Google Sheets.

The SUMIFS function in Google Sheets is used to sum the values in a range that meets multiple criteria. The SUMIFS formula is beneficial in Google Sheets when you need to add the values in a range based on various requirements and find specific information quickly. For example, if you have a large sales data dataset and want to see the total sales for a particular product and region, you can use the SUMIFS function to sum the values in the sales column that meet both of those criteria. Another example is that if you have a sheet that tracks expenses and want to find the total amount spent on a specific category of payments in a particular month, you can use the SUMIFS function to sum the values in the expense column that meet both of those criteria.

- In a chosen cell, type “=SUMIFS” or select it from a list of functions (Go to the
**“Insert”**tab, ➝**“Function”**➝**“Maths”**➝**“SUMIFS”**function). - Select a range to be summed up and enter all criteria and ranges for them.
- Press the
**“Enter”**key on your keyboard.

The following is a generic formula of the SUMIFS function.

**sum_range**: This is a range that you want to add up

**criteria_range 1**: This is a range where you want to check if each cell in this range matches a criterion

**criterion 1**: This is a specific condition you would like to apply to the selected range (Criteria_range 1).

**criteria_range 2 [Optional]**: When you add other standards, you also need to specify the ranges for the additional requirements.

**criteria 2 [Optional]: **You can include other requirements, if any.

You will need to repeat inputting a pair of a criterion and a range until you incorporate all conditions.

**Note**: The number of cells in the selected ranges should be **equal**. The SUMIFS shows **a total number that meets all criteria input**.

Let’s see examples of how the function works with the following dataset. Imagine you want to understand your company’s sales performance by division from different standpoints.

In the examples, you will find two types of inputs in the formulas, manual input and cell reference. The manual input means you type criteria manually and directly in the formulas, and the cell reference means that you refer to particular cell(s) containing a specific number, date, or text. We highly recommend you take the latter approach as it is more flexible and helps you reduce mistakes, such as leaving an old criterion when you change the formula.

**Total Sales from Group W, Division A**

In the first example, the criteria are two inputs, “Division” and “Group”.

The “Inputs” group of cells defines our targets such as Group and Division.

The formula in cells C21 and C22 calculates how many sales **Group W **from **Division A **made in total and gives us the result we’re looking for.

**Total Sales from Group W, Division A, recorded after 4/30/2022**

The second example adds one more criterion, “Recorded Date”, so the outcome is the sales for **Group** **W**, **Division A**, recorded after** 4/30/2022.** You can see the values returned by the SUMIFS formulas in cells C25 and C26.

**Total Sales from Group W, Division A, recorded after 4/30/2022, with the number of units greater than or equal to 6**

In the third example, the number of units - **“# of Unit”** - is also included on top of the existing three criteria. The returned values are shown in cells C29 and C30.

Regardless of the approach you take, bear the following rules in mind:

- Numbers and cell references are not needed to be input with quotation marks.
- Text, wildcard (signs such as “*,” “?,” and “~.”), and date need to be enclosed with quotation marks, such as “A” or “*” or “8/25/2022”.
- Comparison operators such as “=,” “<,” and “>” with figures, text, and dates need to be enclosed by double quotes such as “<=100,” “<>apple,” and “>8/25/2022”.
- Comparison operator(s) with cell reference(s) or another formula(s) should require (i) quotation marks to enclose them, and (ii) “&” (ampersand) between the operators and formula(s) like “>=”&A1 or “<”&TODAY().

For simplification, let’s assume the number of criteria is two.

When you want to incorporate more than one criteria in a column, you can use curly brackets “{}” and the SUMIFS formula looks like this; =SUMIFS(sum_range W, criteria_range X, {**criterion Y, criterion Z}**). This formula brings you the total value of cells that match the criteria of C or D.

Here is another way to do this, but this approach is a bit more burdensome as you need to use SUMIFS functions as many as the criteria. Again, let’s assume you want to apply two standards to a column. You need to add up two results of SUMIFS functions, and it should look like this; =SUMIFS(sum_range A, criteria_range B, **criterion C**)+SUMIFS(sum_range A, criteria_range B, **criterion D**); or you can use two SUMIF functions as well, and it should look like this; =SUMIF(range B, **criterion C**, [sum_range A])+SUMIF(range B, **criterion D**, [sum_range A]).

The SUMIF formula shows the total figures in cells which match a condition. The SUMIFS function gives you the total figures in cells which meet multiple criteria. As you can see above, you can use both formulas, if you consider only one condition. However, you should be aware that the order of mandatory inputs in the two functions is different. Also, if you want to consider multiple conditions, it is better to use the SUMIFS function instead of the SUMIF formula. Move on to How to Use SUMIF formula in Google Sheets to learn the SUMIF function

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

ADD Function in Google Sheets: Explained

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.

How to Use SUMIF Function in Google Sheets - sum up the numbers that meet a criterion

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 👇

Our team of real people are here to help you any time between 9am and 10pm GMT.

Email us at: founders@liveflow.io

Call us at +1 (415) 650-1711