You are on page 1of 11

1 Boston -5

2 Chicago -4
3 Dallas -3
4 Denver -1

5 LA 3
6 Miami 4
7 Phoenix 5
8 Seattle 6
last number<=0 last number>=-4

Row Number
City (where the city
name is located)
Boston 1 5
Phoenix 7
Pho* 7
*le 8
1. Find the row number in which the name of the city is "Boston" and so on.
6 1.b Find the row number if you know only that partial letters of the city.
5
4 2. Find the row number in which 0 is located (when data is in descending order).
3 3. Find the row number in which -1 is located (when the data is in ascending order).

-1 4. Show the variations of the three match types: 1 (Default, Ascending), 0 (Exact), -1
-3 (Descending)
-4
-5

`
" and so on.

scending order).
n ascending order).

cending), 0 (Exact), -1
January February March April May June
Shaq 831 685 550 965 842 804
Kobe 719 504 965 816 639 814
MJ 916 906 851 912 964 710
T-Mac 844 509 991 851 742 817

Product Month
Kobe 2 June 6 814
MJ 3 February 2 906
Kobe 2 May 5 639
Shaq 1 June 6 804
Q. Find the Product sales of a particular product in a particular month:
s of a particular product in a particular month:
Find these Distance:

Boston-Denver 1991
Seattle- Miami

1 2 3 4 5
Boston Chicago Dallas Denver LA
1 Boston 0 983 1815 1991 3036
2 Chicago 983 0 1205 1050 2112
3 Dallas 1815 1205 0 801 1425
4 Denver 1991 1050 801 0 1174
5 LA 3036 2112 1425 1174 0
6 Miami 1539 1390 1332 2100 2757
7 Phoenix 2664 1729 1027 836 398
8 Seattle 2612 2052 2404 1373 1909

Road Trip!!
City Distance
8 0 Seattle 0
7 1482 Phoenix
5 398 LA
4 1174 Denver
3 801 Denver
2 1205 Chicago
8 2052 Seattle
Total 5060
Q.) Imagine that the Seattle Seahawks NFL team is
embarking on a road trip in which they play games in
Phoenix, Los Angeles , Denver, Dallas, and Chicago. At the
conclusion of the road trip, the Seahawks return to Seattle.
6 7 8 Can you easily compute how many miles they travel on the
Miami Phoenix Seattle trip?
1539 2664 2612
1390 1729 2052
1332 1027 2404
2100 836 1373
2757 398 1909
0 2359 3389
2359 0 1482
3389 1482 0
NFL team is
play games in
and Chicago. At the
wks return to Seattle.
es they travel on the
Boston-Denver
Seattle- Miami

1 2 3 4 5
Boston Chicago Dallas Denver LA
1 Boston 0 983 1815 1991 3036
2 Chicago 983 0 1205 1050 2112
3 Dallas 1815 1205 0 801 1425
4 Denver 1991 1050 801 0 1174
5 LA 3036 2112 1425 1174 0
6 Miami 1539 1390 1332 2100 2757
7 Phoenix 2664 1729 1027 836 398
8 Seattle 2612 2052 2404 1373 1909

Road Trip from Denver !!


City Distance
4 Denver 0
1 Boston 1991
3 Dallas 1815
8 Seattle 2404
6 Miami 3389
5 LA 2757
4 denver 1174

Total 13530
6 7 8
Miami Phoenix Seattle
1539 2664 2612
1390 1729 2052 Q. Find the total distance travelled by the Team
Denver for the whole trip. They started from home
1332 1027 2404 and visited Boston, Dallas, Seattle, Miami, LA.
2100 836 1373
2757 398 1909
0 2359 3389
2359 0 1482
3389 1482 0
Q.2. Find the cost of their trip, if the trip costs are
dependent on the distance travelled (Nested Ifs &
SumProduct)

Distance Cost
1000 ₹ 5.00
2000 ₹ 4.50
2500 ₹ 4.25
3000 ₹ 4.00
3500 ₹ 3.75

You might also like