You are on page 1of 3

Number of

Order no. Date Driver's name Item Destination


items

100001 41306 John May TV 25 Boston


100002 41306 Peter White washing machine 30 NY
100003 41307 Carl Nowak washing machine 15 Philadelphia
100004 41308 Peter White TV 32 NY
100005 41308 George Ramsay refrigerator 25 Boston
100006 41308 Carl Nowak washing machine 18 Baltimore
100007 41308 John May refrigerator 15 Philadelphia
100008 41309 Carl Nowak refrigerator 25 Baltimore
100009 41309 Peter White TV 30 Pittsburgh
100010 41309 George Ramsay refrigerator 15 NY
100011 41309 Mertl Pavel microwave 25 Philadelphia
100012 41309 John May washing machine 14 NY
100013 41310 John May washing machine 25 Baltimore
100014 41310 Carl Nowak TV 30 Philadelphia
100015 41310 George Ramsay microwave 15 Boston
100016 41310 Peter White TV 15 Pittsburgh
100017 41311 John May microwave 25 NY
100018 41312 John May TV 30 Philadelphia
100019 41313 George Ramsay washing machine 13 Baltimore
100020 41313 Peter White refrigerator 25 Philadelphia
100021 41313 Carl Nowak microwave 30 Pittsburgh
100022 41313 Peter White washing machine 15 NY
100023 41313 John May microwave 25 Boston
100024 41314 George Ramsay washing machine 34 Baltimore

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")

You might also like