Sie sind auf Seite 1von 9

Given below is the matrix containing road distances between U.S. cities.

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?

INDEX(Array, Row Number, Column Number)

Distance from Boston-Denver 1991

Distance from Seattle- Miami 3389

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?

Total Dist between Seattle


15221
and other US Cities
Total Dist between LA
12811 distances C10:J17
and other US Cities

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

er -> Dallas > Chicago -> Seattle >>


12811
Q1. Given monthly sales done by Salesmen in the company, how do I find sales done by a particular
salesman during a particular month?

Match(lookup value,lookup range,[match type]) //Gives the position of a number in a range or matrix of

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

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

Sales done by Kobe in June


Sales done by T-Mac in January
Sales done by Shaq in April
Sales done by MJ in May
Students and Marks MATRIX

Akanksha-FAR 88 Total Marks for Anshul


Anmol-SIP 88 Total Marks for Aditi

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

Student Subject Row # Col # Marks Scored


Akanksha Chadha BS
Ankit Kapila MKTG
Aditi Shukla SIP
Anmol Arora BEC
Aditi Sharma OML
Anjali Litoria COMM
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

//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()

Das könnte Ihnen auch gefallen