Countif Sumif Exercises
Countif Sumif Exercises
Countif Sumif Exercises
counti
f/
counti
number of orders in
Boston : =COUNTIFS(G2:G25,"Boston")
number of
microwave orders : =COUNTIFS(D2:D25,"microwave")
number of journeys
with truck 3: =COUNTIFS(F2:F25,"truck 3")
number of Peter
White journeys: =COUNTIFS(C2:C25,"Peter White")
how many times
are no. of items less
than 20: =COUNTIFS(E2:E25,"<20")
sumif
/
sumif
s `
sum of refrigerator
items: =SUMIFS(E2:E25,D2:D25,"refrigerator")
sum of washing
machine items: =SUMIFS(E2:E25,D2:D25,"washing machine")
sum of items
transported by
truck 4: =SUMIFS(E2:E25,F2:F25,"truck 4")
sum of items
transported by
trucks: =SUMIFS(E2:E25,F2:F25,"truck*")
countifs
number of
microvawe orders
in Boston : =COUNTIFS(D2:D25,"microwave",G2:G25,"Boston")
number of Peter
White journeys with
truck 1: =COUNTIFS(C2:C25,"Peter White",F2:F25,"truck 1")
number of orders in
Boston after
2/3/2013: =COUNTIFS(B2:B25,">2/3/2013",G2:G25,"Boston")
number of orders
between 2/3/2013
and 2/6/2013: =COUNTIFS(B2:B25,">=2/3/2013",B2:B25,"<=2/6/2013")
sumifs
sum of microwaves
transported to NY: =SUMIFS(E2:E25,D2:D25,"microwave",G2:G25,"NY")
sum of items
transported to
Pittsburgh by truck
1: =SUMIFS(E2:E25,G2:G25,"Pittsburgh",F2:F25,"truck 1")
sum of items
ordered between
2/3/2013 and
2/6/2013: =SUMIFS(E2:E25,B2:B25,">=2/3/2013",B2:B25,"<=2/6/2013")
sum of items
transported to NY,
Baltimore and
Philadelphia:
=SUMIFS(E2:E25,G2:G25,"NY")+SUMIFS(E2:E25,G2:G25,"Baltimore")+SUMIFS(E2:E25,G2:G25,"Philadelphia")