Академический Документы
Профессиональный Документы
Культура Документы
Q1. How will you return the distance between, for example, Seattle and Miami?
Q2. How will you calculate the total distance between Seattle and all other US cities given below?
1 2 3
Boston Chicago Dallas
1 Boston 0 983 1815
2 Chicago 983 0 1205
3 Dallas 1815 1205 0
4 Denver 1991 1050 801
5 LA 3036 2112 1425
6 Miami 1539 1390 1332
7 Phoenix 2664 1729 1027
8 Seattle 2612 2052 2404
Round Road Trip!! << Seattle -> Phoenix -> LA -> Denver -> Dallas > Chicago -> Seattle >>
City Distance
Seattle 8 1482
Phoenix 7 398
LA 5 1174
Denver 4 801
Dallas 3 1205
Chicago 2 2052
Seattle 8
Total 7112
en U.S. cities.
Seattle and Miami?
le and all other US cities given below?
4 5 6 7 8
Denver LA Miami Phoenix Seattle
1991 3036 1539 2664 2612
1050 2112 1390 1729 2052
801 1425 1332 1027 2404
0 1174 2100 836 1373
1174 0 2757 398 1909
2100 2757 0 2359 3389
836 398 2359 0 1482
1373 1909 3389 1482 0
Match(lookup value,lookup range,[match type]) //Gives the position of a number in a range or matrix of
Salesmen Month Row # of product Column # of month Product Sales Sales B4:G7
Kobe June 2 6 814 //Sales done by Kobe in June
T-Mac January 4 1 844 //Sales done by T-Mac in Janua
Shaq April 1 4 965 //Sales done by Shaq in April
MJ May 3 5 964 //Sales done by MJ in May
Match() Match() Index()
number in a range or matrix of table
1 2 3 4
EMDM BS MKTG FAR
1 Aditi Sharma 79 83 67 91
2 Aditi Shukla 89 87 76 89
3 Aditya Singla 69 76 66 88
4 Akanksha Chadha 73 85 69 88
5 Anamika 78 69 81 87
6 Anjali Litoria 87 77 67 78
7 Ankit Kapila* 78 87 65 83
8 Anmol Arora 79 81 76 90
9 Anshul Sharma 75 71 87 91
661
669
5 6 7 8
SIP OML BEC COMM
95 87 88 79
94 78 87 81
88 77 86 83
89 87 83 82
93 86 84 77
91 84 82 75
86 82 81 81
88 81 79 76
95 87 78 77
Students and Marks Matrix
1 2 3 4
EMDM BS MKTG FAR
1 Aditi Sharma 79 83 67 91
2 Aditi Shukla 89 87 76 89
3 Aditya Singla 69 76 66 88
4 Akanksha Chadha 73 85 69 88
5 Anamika 78 69 81 87
6 Anjali Litoria 87 77 67 78
7 Ankit Kapila 78 87 65 83
8 Anmol Arora 79 81 76 90
9 Anshul Sharma 75 71 87 91
//Calculate Marks Scored by Akanksha in Business Statistics using MATCH() and INDEX()
//Calculate Marks Scored by Ankit in Marketing using MATCH() and INDEX()
//Calculate Marks Scored by Aditi in SIP using MATCH() and INDEX()
//Calculate Marks Scored by Anmol in Business Economics using MATCH() and INDEX()
//Calculate Marks Scored by Aditi in OML using MATCH() and INDEX()
//Calculate Marks Scored by Anjali in Business Communication using MATCH() and INDEX()