You are on page 1of 9

SUMIFS function

SUMIFS(sum_range, criteria_range1, criteria1, [criteria_range2,


criteria2], …)

For example, if you want to sum the numbers in the range A1:A20 only if the
corresponding numbers in B1:B20 are greater than zero (0) and the
corresponding numbers in C1:C20 are less than 10, you can use the following
formula:

=SUMIFS(A1:A20, B1:B20, ">0", C1:C20, "<10")


SUMIF function
SUMIF(range, criteria, [sum_range])

For example, suppose that in a column that contains numbers,


you want to sum only the values that are larger than 5. You can
use the following formula:
=SUMIF(B2:B25,">5")

In this example, the criteria is applied the same values that are
being summed. If you want, you can apply the criteria to one
range and sum the corresponding values in a different range. For
example, the formula =SUMIF(B2:B5, "John", C2:C5) sums only
the values in the range C2:C5, where the corresponding cells in
the range B2:B5 equal "John."
Quantity Sold Product Salesperson
5 Apples 1
4 Apples 2
15 Artichokes 1
3 Artichokes 2
22 Bananas 1
12 Bananas 2
10 Carrots 1
33 Carrots 2
Question Formula Result

Adds the total number of


products sold that begin with Formula
"A" and that were sold by =SUMIFS(A2:A9, B2:B9, "=A*", C2:C9,
Salesperson 1. 1) 20

Adds the total number of


products (not including Formula
Bananas) sold by Salesperson =SUMIFS(A2:A9, B2:B9, "<>Bananas",
1. C2:C9, 1) 30
Sr no Items Price
1 Clothes 1500
2 Stationary 800
3 Footwear 250
4 Cosmetics 500
5 Jewellary 2000

Question Formula Result

Find out the number Formula


of products beginning =COUNTIF(G2:G6,
with the letter 'C'. "C*") 2

Find out the number Formula


of items that cost =COUNTIF(H2:H6,
more than 1000. ">1000") 2
Find out the total
quantity purchased Formula
for all items that cost =SUMIF(H2:H6,
less than 1000. "<1000", I2:I6) 14
Quantity
3
5
1
8
6
Zone Salesman Unit
South John 200
East Robert 150
West Suma 175
North Lakshmi 150
South Ajith 200
North Suma 100
South Robert 125
West John 225
East Lakshmi 125
East Ajith 250

1 Find sum of sales of Robert 275


2 Find sum of sales of southern region 525
3 Find average sale by Lakshmi 137.5
4 Find sum of sales of Ajith for Eastern reqion 250
5 Count the number of sales by Suma for western region 1
6 Find number of sales less than 200 units 6
Two
Two Trees
Trees Extra
Extra Virgin
Virgin Olive
Olive Oil
Oil

Example No. 1

Payroll

Name Department State Hours Rate Assignment of SumIf and SumIfs


Abrams IT PA 59.60 39.97
Buckleitner Sales PA 68.60 23.74
Cohen IT CA 40.00 17.88 Total hours for NJ
Colvin Sales VT 29.30 13.09 Total hours for PA
Coules Sales CA 62.90 47.90 Total hours for Marketing and Finance
Dean IT VT 87.60 23.00 Total of Rates where Rate >=30
Deshpande Finance NY 33.20 24.05 Total of Rates where Dept=IT and State=PA
DeTorres HR NJ 87.30 19.68 Total of Rates where Dept=Sales and State < > PA
Dugan Finance PA 96.30 35.92 Total of Rates where State=NY and Rate >=30
Fitts Finance CA 85.30 24.14 Total Of Rates Between 30 to 50
Holt HR CA 11.90 32.14 Total of Rates where Dept= IT and State=PA Between 30 to 50
Jorgensen Executive VT 15.10 45.09 Average rate for VT
Kreanow Sales VT 32.40 14.37 Average rate for CA
Leung Sales CA 78.40 44.98
Liebowitz HR PA 16.20 33.04
Lowenfeld Graphics CT 80.40 16.53
Marciano IT NY 70.60 20.84
Marone Marketing CT 22.50 11.51
McGowan Graphics NJ 84.60 29.76
Meacham Sales CT 10.20 23.74
Minzner Sales NY 39.90 41.66
Novick Marketing CA 59.10 34.83
Pallone Marketing NY 80.10 44.62
Petsch Graphics NJ 13.20 12.06
Philips Sales NJ 95.00 48.63
Rampulla Graphics NJ 78.50 28.73
Rehal IT PA 82.40 24.54
Richardson Sales NJ 23.20 45.11
Sipes IT CA 46.40 38.80
Stryker Marketing VT 97.20 30.30
Wilson Marketing NY 13.60 20.14
Zarish Executive PA 26.60 15.99
Example No. 2 Assignment No. 2

2012 Regional Cookie Sales


SalesRep Region Orders Total Sales
Sagar East 222 33313
Rajesh West 234 44222
Jigar North 123 23456
Harry East 235 54321
Tom East 261 25253
Sunny North 300 25355

Orders Total Sales


>250 50608

Calculate the Total Sales Where Order >250

If we Change the in Orders >250 to >200 then automatically reflected in Sum of Sales
Example No. 3 Assignment No. 3

Date Region Builder Units Average Total


In this Assignment Give the input into CELL
6-Jan-11 central Raheja 8 389 3112 A73
9-Feb-11 east Goyal Group 10 385 3850 and then result reflected in Units, Average
15-Feb-11 north Karan Group 3 771 2313 and Total
25-Mar-11 central Lodha Group 5 313 1565
5-May-11 south Lodha Group 10 574 5740
10-May-11 west Raheja 8 730 5840

This is the Input

east
Builder Units Average Total Using the Sumifs
Total Raheja 0 0 0
Total Goyal Group 10
Total Karan Group
Total Lodha Group

You might also like