SUMIFS(sum_range, criteria_range1, criteria1 [,criteria_range2, criteria2] [..])

Returns the total value of the numbers that satisfies multiple conditions.


sum_rangeThe range of cells to total.
criteria_range1The range of cells you want evaluated.
criteria1The expression that contains the criteria.
criteria_range2(Optional) The range of cells you want evaluated.
criteria2(Optional) The expression that contains the criteria.

Remarks

* Added in Excel 2007.
* This function includes hidden rows.
* This function uses the actual cell values and not the displayed formatted values.
* You can use wildcard characters (?) and (*).
* You can have up to 127 criteria.
* You can use the SUM function to return the total value of the numbers.
* You can use the SUMIF function to satisfy one condition.
* This is similar to the AVERAGEIFS function.
* This is similar to the COUNTIFS function.
* This is similar to the MAXIFS function.
* This is similar to the MINIFS function.
* For an illustrated example refer to the page under Advanced Functions.
* For the Microsoft documentation refer to support.office.com

 ABC
1=SUMIFS(C1:C5,B1:B5,"Barry") = 50Barry30
2=SUMIFS(C1:C5,B1:B5,"=Barry") = 50Simon40
3=SUMIFS(C1:C5,B1:B5,"=Simon") = 40Barry20
4=SUMIFS(C1:C5,B1:B5,"Barry",C1:C5,"<>20") = 30James60
5=SUMIFS(C1:C5,B1:B5,"Barry",C1:C5,"=20") = 20David80
6=SUMIFS(C1:C5,B1:B5,"Barry",C1:C5,">"&C3) = 30  

1 - What is the sum of all the numbers in the range "C1:C5" that have "Barry" in the range "B1:B5".
2 - What is the sum of all the numbers in the range "C1:C5" that have "Barry" in the range "B1:B5". Notice that prefixing the condition with an equal sign means the same thing.
3 - What is the sum of all the numbers in the range "C1:C5" that have "Simon" in the range "B1:B5".
4 - What is the sum of all the numbers in the range "C1:C5" that have "Barry" in the range "B1:B5" and values are not equal to 20.
5 - What is the sum of all the numbers in the range "C1:C5" that have "Barry" in the range "B1:B5" and values are equal to 20.
6 - What is the sum of all the numbers in the range "C1:C5" that have "Barry" in the range "B1:B5" and values are not greater than the number in cell "C3".

© 2019 Better Solutions Limited. All Rights Reserved. © 2019 Better Solutions Limited Top