Assignment 2.1

You might also like

Download as xlsx, pdf, or txt
Download as xlsx, pdf, or txt
You are on page 1of 3

Q. The Iist has employee names and badge#s of XYZ Inc.

Their Manager name is in the other table, you will need to use the
employee badge to lookup their manager in the manager table. Note
Managers rotate randomly each month, so your lookup needs to
consider the month also

Month : Apr

Employee Table
Name Badge# Manager
Prashanth, Gopi 87423 Jain, Anita
Tank, Ashwini 78312 Jain, Anita
Suri, Aviral 98722 Jain, Anita
Kumar, Ram 12235 Prakash, Surya
Tendulkar, Sachin 23972 Prakash, Surya
Maradonna, Diego 56431 Prakash, Surya
Singh, Robin 98362 Prakash, Surya
Kumar, Deepak 18739 Jain, Anita

Manager Table by Month


Emp Badge# Jan Feb Mar Apr May
98362 Londo, Mollari Puri, Om Temp Mgr1 Prakash, Surya Wayne, John
12235 Londo, Mollari Londo, Mollari Londo, Mollari Prakash, Surya Puri, Om
78312 Londo, Mollari Puri, Om Londo, Mollari Jain, Anita Wayne, John
98722 Londo, Mollari Londo, Mollari Temp Mgr1 Jain, Anita Wayne, John
87423 Puri, Om Puri, Om Temp Mgr1 Jain, Anita Puri, Om
56431 Puri, Om Londo, Mollari Temp Mgr1 Prakash, Surya Puri, Om
23972 Puri, Om Londo, Mollari Londo, Mollari Prakash, Surya Wayne, John
18739 Puri, Om Puri, Om Londo, Mollari Jain, Anita Puri, Om
Use INDEX, MATCH and SUM to retrieve a whole column based on month. Add all the values in the sele
Hint:0 (zero) or empty in row_num argument will return a whole column of values (“all rows” or “entir

Month to add Jan Total


Jan 5
Jan Feb Mar Apr
1 4 4 5
3 4 12 1
1 4 2 2

INDEX and MATCH to lookup in a table that is sorted decending order

Power consumption slab 5 2-Way lookup


Cable Size 11 MATCH with -1 (list sorted Descending)
Estimated Power output 16580 MATCH with 1 or empty (list sorted Ascending)

Power consumption slab


Cable Size 1 2 3 4 5
1 0 0 0 0 0
3 3288 1644 1096 822 657
4 7520 3760 2506 1880 1504
5 13360 6680 4453 3340 2672
6 21400 10700 7133 5350 4280
8 46000 23000 15330 11500 9200
10 82800 41400 27600 20700 16580
12 133200 66600 44400 33300 26650
15 238000 119000 79333 59500 47600
nth. Add all the values in the selected month column
mn of values (“all rows” or “entire column”)

ed Descending)
(list sorted Ascending)

6
0
548
1253
2227
3566
7670
13800
22200
39650

You might also like