Excel is part and parcel of our daily life. When we think about data, the first thing that comes to our mind is Excel. We can do all sorts of data manipulation with Excel. Working with large amounts of data, we need to use **the SUMIFS function**. In this article, we will discuss the use of **SUMIFS **with multiple criteria along column and row in Excel.

We take a data set that contains the product, customer, date, and sales of a Fruit Shop.

## Download Practice Workbook

Download this practice workbook to exercise while you are reading this article.

## Introduction to SUMIFS Function

**The SUMIFS function** is a math and trig function. It adds all of its arguments that meet multiple criteria.

**Syntax**

**SUMIFS(sum_range, criteria_range1, criteria1, [criteria_range2, criteria2], â€¦)**

**Argument**

** sum_range** â€“ The range of cells to sum.

* criteria_range1 *â€“ The range that is tested using Criteria1.

**criteria_range1** and **criteria1** set up a search pair whereby a range is searched for specific criteria. Once items in the range are found, their corresponding values in **sum_range** are added.

** criteria1** â€“ The criteria that determine which cells in

**criteria_range1**will be added.

Additional ranges and their associated criteria. We can enter up to 127 range/criteria pairs.

## 5 Methods to Use SUMIFS with Multiple Criteria Along Column and Row in Excel

Here, we will apply 5 different methods using SUMIFS. Before that add criteria and outcome cells in the data set.

**1. Excel SUMIFS with Comparison Operators and Multiple Criteria Along Column & Row**

From our data set, we want to know the sum of sales to John that are less than 22 dollars.

Here, the 1st criteria are the amount sold to John and 2nd one is the price is less than 22 dollars. Now, set these two criteria in the sheet. Inputs are John in the **Customer **box and 22 in the **Price **box.

**Step 1:**

- Go to
**Cell D17.** - Write down the
**SUMIFS**function. - In the 1st argument select the range
**E5:E13,**which value we want. - In the 2nd argument select the range
**C5:C13**and select**Cell D15**as the 1st criteria for**John**. - Add 2nd criteria of range
**E5:E13**that contains the price. Then select smaller than sign and**Cell D16**. The formula becomes:

`=SUMIFS(E5:E13,C5:C13,D15,E5:E13,"<"&D16)`

**Step 2:**

- Press
**Enter.**

This outcome is the total sales to John less than 22 dollars each.

### 2. Use of SUMIFS with Date Criteria in Column

Here we will find sales compared to date. Letâ€™s calculate the sales for the last 30 days. We will count today to last 30 days.

**Step 1:**

- First, we will set the start and end date.
- We will use the
**Today ()**function to set the dates. It returns the present dayâ€™s date. - In start date subtract 30 from
**Today ().**

**Step 2:**

- Go to
**Cell D17.** - Write down the
**SUMIFS.** - In the 1stÂ argument select the range
**E5:E13,**which indicates the price. - In the 2nd argument select the range
**D5:D13**that contains the date and input greater than equal sign and select**cell D15**as the starting date. - Add other criteria that are less than equal in the same range select
**cell D16**as the ending date. So, the formula becomes:

`=SUMIFS(E5:E13,C5:C13,D15,E5:E13,"<"&D16)`

**Step 3:**

- Then, press the
**Enter.**

This is the sales amount of the last 30 days. We can do this for any specific date or date range.

### 3. Excel SUMIFS with Blank Row

We can make a report of blank cells by **SUMIFS **function. For this, we need to modify our data set. Remove elements from the **Product** and **Customer** column, so that we can apply the function with some criteria. So, the data set will look like.

**Step 1:**

- Go to
**Cell D16.** - Write down the
**SUMIFS.** - In the 1st argument select the range
**E5:E13,**which indicates price. - In the 2nd argument select the range
**B5:B13**and check blank cells. - Add other criteria and that range is
**C5:C13**. If both the columns alongside cells are blank then it will show an output. So, the formula becomes:

`=SUMIFS(E5:E13,B5:B13, "",C5:C13, "")`

**Step 2:**

- Now, press
**Enter**.

Here, we will see that 2 cells of each column are blank. And the outcome is the sum of them.

### 4. Excel SUMIFS with Non-Blank Cells Criteria along Column & Row

We can get by in two ways. Using **SUM **abs **SUMIFS **function and only **SUMIFS **function.

#### 4.1 SUM & SUMIFS Functions with Non-Blank Cells

We can easily get this with the help of method 3.

**Step 1:**

- First, add 3 cells in the datasheet to find our desired outcome.

**Step 2:**

- First, get the total sales of
**Column E**in cell**D16**. - Write the
**SUM**function and the formula will be:

`=SUM(E5:E13)`

**Step 3:**

- Now, press
**Enter**.

**Step 4:**

- In the
**D17 cell**write down the formula of sales of blank cells that we get in the previous method. And the formula will look like this:

`=SUMIFS(E5:E13,B5:B13,"",C5:C13,"")`

**Step 5:**

- Again, press the
**Enter**button**.**

**Step 6:**

- Now, subtract these blank cells from the total sales in the
**D18 cell**. So, the formula will be:

`=SUM(E5:E13)-SUMIFS(E5:E13,B5:B13,"",C5:C13,"")`

**Step 7:**

- Finally, press
**Enter.**

The outcome is the total sales of non-blank cells.

#### 4.2 SUMIFS Functions with Non-Blank Cells

We can also get the total of all non-blank cells using the **SUMIFS** function only.

**Step 1:**

- Go to
**Cell D16** - Write down the
**SUMIFS** - In the 1stÂ argument select the range
**E5:E13,**which indicates price. - In the 2nd argument select the range
**B5:B13**and check blank cells. - Add other criteria and that range is
**C5:C13**. If both the columnâ€™s same cell is non-blank, then it will show an output that is the sum. So, the formula becomes:

`=SUMIFS(E5:E13, B5:B13, "<>",C5:C13, "<>")`

**Step 2:**

- Again, press
**Enter.**

This is the output of all the non-blank cells.

**Note:**

**<> â€“ **It means not equal.

### 5. SUMIFS + SUMIFS for Multiple OR Criteria along Column and Row

In this method, we want to apply multiple criteria multiple times. We used **SUMIFS **two times here to complete the task.

First, we take John as a reference. We want to find out the total sales to John between 1st October to 15th October. In the 2nd criteria take Alex as a reference with the same period. So, the data set will look like this:

**Step 1:**

- Go to
**Cell D19.** - Write down the
**SUMIFS**function. - In the 1st argument select the range
**E5:E13,**which indicates price. - In the 2nd argument select the range
**C5:C13**and select**D17**as the reference customer. - Then add the date criteria. So, the formula becomes:

`=SUMIFS(E5:E13,C5:C13,D17,D5:D13,">="&D15,D5:D13,"<="&D16)+SUMIFS(E5:E13,C5:C13,D18,D5:D13,">="&D15,D5:D13,"<="&D16)`

**Step 2:**

- Again, press
**Enter.**

This is the sum of John and Alex in each period.

**Read more: **Â **SUMIF with Multiple Criteria in Column & Row in Excel (Both OR and AND Type)**

## Alternatives to SUMIFS Function

There are some alternative options through which we can achieve the same outputs. And in fact, they are a bit easier sometimes.

### SUMPRODUCT Function with Multiple Criteria along Column and Row

#### a. SUMPRODUCT with Multiple AND Criteria

Here, we will apply **the SUMPRODUCT function** for **AND** type multiple criteria along with columns and rows. We will calculate the total products sold to John after 1st October and which is higher than 15 dollars. **SUMPRODUCT **function will be used to make the solution easier. Modify the reference dataset a bit for this method.

**Step 1:**

- Go to
**Cell D18**. - Write down the
**SUMPRODUCT**Select range**E5:E13**in the 1st argument which indicates the price. And the formula becomes:

`=SUMPRODUCT(E5:E13,(--(((D5:D13)>D15)*((C5:C13)=D16)*((E5:E13)>D17))))`

**Step 2:**

- Now, press
**Enter**.

See, we have got the result with less complication and using multiple criteria.

#### b. OR Type SUMPRODUCT of Multiple Criteria

Here, we will apply the **SUMPRODUCT **function for **OR **type multiple criteria column and row. We want to calculate the total sales of Apple and Alex. It will include Apple and Alex both. We will do this by applying the **SUMPRODUCT **function. So, after modifying the data set will look like this:

**Step 1:**

- Go to
**Cell D18** - Write down the
**SUMPRODUCT**And the formula becomes:

`=SUMPRODUCT(E5:E13,(--((--((B5:B13)=D15))+(--((C5:C13)=D16))>0)))`

**Step 2:**

- Now, press the
**Enter**button.

So, **OR **type multiple criteria can easily be solved in this way.

## Conclusion

In this article, we showed different ways to use the **SUMIFS **with multiple criteria along column and row. We also attached alternative methods compared to **SUMIFS**. Hope this helps you get the exact solution. Stay with us and provide your valuable suggestions.