3 Simple Ways to SUMIF with Multiple Criteria for Different Sheet

Sometimes we have to work with a really big dataset. Data range can be in different data sheets in an Excel file. If we want to sum multiple data range from different data sheet based on some fixed criteria, this article will come in handy. Here we are going to learn 3 different methods to SUMIF multiple criteria from the different sheet.


📁  Download Excel File

Download the practice file from here.


Learn to Use SUMIF with Multiple Criteria for Different Sheet with These 3 Methods

Here we are using a dataset with data entry of two different datasheets named Half Yearly and Yearly. Let’s assume we are trying to know the total number of the students of class 9 who have 2 different number records in 2 different sheets. We are going to use three different functions to calculate their total number. The snapshot of our sample dataset is as follows.

The data sheet for sumif multiple criteria in different sheet

method

1. SUM from Different Sheets with Multiple Criteria Using SUMIF Function

Here we are going to use SUMIF Function to SUMIF multiple criteria in a different sheet. So the step-by-step procedures are as follows.

⬇️⬇️ STEPS ⬇️⬇️

  • At first in cell C8, we write this formula in the formula box.

=SUMIF(‘Half yearly’!B6:B10,’Sumif function’!B8,’Half yearly’!D6:D10)+SUMIF(Yearly!B6:B10,’Sumif function’!B8,Yearly!D6:D10)

🔨  Formula Breakdown

👉 Firstly here Sumif function’!B8  is the criteria.

👉 Here Half yearly’!B6:B10 is the range with which the criteria is checked.

👉 Finally the SUMIF Function gives the value if the criteria match. We add them to get the final result.

Using sumif function to sumif multiple criteria in different sheet

  • Now we use the Fill Handle tool.
  • We drag the formula from cell C8 to C10.

Using fill handle tool

  • Finally, we will get the total mark of the students in column C.

method

2. SUM from Different Sheets with Multiple Criteria Using SUMIFS Function

Here we will see how to apply SUMIFS Function to SUMIF multiple criteria in a different sheet. Therefore the step-by-step procedures are as follows.

⬇️⬇️ STEPS ⬇️⬇️

  • At first, we write this formula in the formula box of cell C8.

=SUMIFS(‘Half yearly’!D6:D10,’Half yearly’!B6:B10,’Sumifs function’!B8,‘Half yearly’!C6:C10,’Sumifs function’!$C$5)+SUMIFS(Yearly!D6:D10,Yearly!B6:B10,’Sumifs function’!B8,Yearly!C6:C10,’Sumifs function’!$C$5)

 🔨  Formula Breakdown

👉 Firstly here is the ‘Half yearly’!D6:D10 is our sum range in the first sheet.

👉 ‘Half yearly’!B6:B10 is our first range for the criteria.

👉 ‘Sumifs function’!B8 is the criteria that are checked in the criteria range.

👉 ‘Half yearly’!C6:C10 is our second range for criteria.

👉 ‘Sumifs function’!$C$5 is the second criterion that checks in the criteria range.

👉 SUMIFS Function gives us the result from the sum range if all the criteria match.

👉 Finally We add the value from two different sheets to get our result.

Using sumifs function to sumif multiple criteria in different sheet

  • After this step, we again use the Fill Handle tool.
  • Following that we drag the formula from cell C8 to cell C10.

Using fill handle tool

  • Finally, we will get our desired result in column C.

method

3. Applying SUMPRODUCT, SUMIFS, and INDIRECT Functions Combined

This section will show how to effectively use SUMPRODUCT, SUMIFS & INDIRECT Functions to SUMIF multiple criteria in a different sheet. So the steps are as follows.

⬇️⬇️ STEPS ⬇️⬇️

  • Firstly in this step, we write this formula in the formula box of cell C8.

=SUMPRODUCT(SUMIFS(INDIRECT(“‘”&E$8:$E$9&”‘!$D$6:$D$10”),INDIRECT(“‘”&$E$8:$E$9&”‘!$B$6:$B$10”), B8,INDIRECT(“‘”&$E$8:$E$9&”‘!$C$6:$C$10”),$C$5))

🔨  Formula Breakdown

👉 At first here “‘”&E$8:$E$9 is the reference text and “‘!$D$6:$D$10” is the array for reference.

👉 INDIRECT(“‘”&E$8:$E$9&”‘!$D$6:$D$10”) is the sum range.

👉 INDIRECT(“‘”&$E$8:$E$9&”‘!$B$6:$B$10”) is the criteria range for first criteria.

👉 B8 is the first criterion that is checked in the criteria range.

👉 INDIRECT(“‘”&$E$8:$E$9&”‘!$C$6:$C$10”) is the second range of criteria.

👉 $C$5 is the second criterion for the second criteria range.

👉 If all criteria match SUMIFS Function gives us the result from the sum range.

👉 Finally SUMPRODUCT Function gives us the summation of the ranges from the sum range.

Using the sumproduct function to sumif multiple criteria in different sheet

  • Following that like the previous methods, we use the Fill Handle tool.
  • Following that we drag the formula from cell C8 to C10.
  • Finally, we will get our result in column C.


How to Use SUMIF Function for Multiple Criteria in Different Columns

Here we will see how to use SUMIF Function properly for multiple criteria in different columns. So the step-by-step procedures for doing this are as follows.

⬇️⬇️ STEPS ⬇️⬇️

  • At first in the formula box, we write this formula in cell C13 and press Enter button.

=SUMIF(B6:B10,C12,D6:D10)+SUMIF(B6:B10,C12,E6:E10)

🔨  Formula Breakdown

👉 Firstly here C12 is the criteria that are checked in data range B6:B10.

👉 After that if the criteria match, SUMIF Function gives us the corresponding cell value from D6:D10.

👉 Finally we add the value from two different sheets to get our result.

  • We will get the total mark of Robin in cell C13.

Use of SUMIF Function for multiple criteria in different column


How to Use SUMIF and VLOOKUP Functions for Multiple Sheets

Here we are going to learn how to use SUMIF and VLOOKUP Functions for multiple sheets. Therefore the brief description of how to do this properly is as follows.

⬇️⬇️ STEPS ⬇️⬇️

  • At first in the formula box of cell C13, we write this formula and press Enter.

=SUMIF(‘Half yearly’!B6:B10,VLOOKUP(C12,B6:B10,1,FALSE),’Half yearly’!D6:D10)+SUMIF(Yearly!B6:B10,VLOOKUP(C12,B6:B10,1,FALSE),Yearly!D6:D10)

🔨  Formula Breakdown

👉 Firstly here VLOOKUP(C12,B6:B10,1,FALSE) is our criteria.

👉 Following that VLOOKUP Function looks for the exact match for cell C12 in the data range B6:B10.

👉 After getting the criteria to match it then checks the criteria in Half yearly’!B6:B10 data range.

👉 If the criteria match SUMIF Function gives the result from the data range Half yearly’!D6:D10.

👉 Finally we add up the value from two different sheets to get our result.

  • Finally, in cell C13 we will get our desired result.

Using SUMIF and VLOOKUP Function


📄   Important Notes

🖊️  While using the Absolute Cell Reference we have to be careful that we use them properly.

🖊️  Also we need to carefully write all the arguments of the function properly.


📝  Takeaways From This Article

📌  We can use three methods to SUMIF multiple criteria from different sheets.

📌  We can also use VLOOKUP Function to SUMIF multiple criteria from different sheets.


Conclusion

Here we have learned three different methods to SUMIF multiple criteria in different sheets. We can use SUMIF, SUMIFS, or SUMPRODUCT SUMIFS & INDIRECT functions for this. Users can use whatever they like. Please comment in the comment section if you have any queries regarding this article. The writer will try his best to solve it. For further queries and Excel-related problems, you can visit Excelden.

(Visited 29 times, 1 visits today)
Md. Ahaduzzaman

Md. Ahaduzzaman

Hello everyone i'm Md.Ahaduzzaman.I am a civil engineering graduate from BUET.I am enthusiastic and highly motivated to always learn something new to broaden my horizon and find my lacking. Hopefully my Articles will benefit you to understand and overcome your problem.

We will be happy to hear your thoughts

Leave a reply

ExcelDen
Logo