Session1 Worksheet MIS
Session1 Worksheet MIS
Country
Australia
matches against highest value equal to or less than the search key
data should be arranged in ascending order otherwise discrepancy like this
=VLOOKUP($G$3,$B$4:$D$11,2,1)
Capital
Canberra
=VLOOKUP($G$3,$B$4:$D$11,3,0)
Capital
Canberra
Scenario 1: If you buy 8 ads, you pay $11,000 per ad, but if you buy 14 ads, you pay $10,000 per ad. Cal
total cost of purchasing the number of ads mentioned in cells E15.
Scenario 2: if you buy 8 ads, you pay $12,000 per ad for the first 5 ads and $11,000 for each of the next
$12,000 for each of the first 5 ads, $11,000 for each of the next 5 ads, and $10,000 for each of the last 4 a
yields the total cost of purchasing any number of ads mentioned in F23.
Ads Bought
45
Price Per Ad Pay for previous slabCum. Pay for prev slab
12000 0 0 vlookup approx match works best here
11000 60000 60000 default for vlookup is approx
10000 55000 115000
9000 100000 215000
Total Expenses
99,000.00
=E15*F15
0 for each of the next 3 ads. If you buy 14 ads, you pay
for each of the last 4 ads. Write a formula in cell G23 that here we look for pay for previou
Total Expenses
440000 =F25+(F26*F27)
=VLOOKUP(F23,F7:I10,4)
=F23-VLOOKUP(F23,F7:I10,1)+1
=VLOOKUP(F23,F7:I10,2)
tch works best here
5 2 6
6 INDEX can help slicing the data required from the table
7 {=INDEX(C28:F31,,2{=INDEX(C28:F31,2,)}
8
Row No 4
Column No 1
egistration number is mentioned in cell C14.
Month Total
APRIL FEBRUARY 26
13
14
15
16
10 14
required from the table
28:F31,2,)}
=MATCH(C14,F7:F11,0)
=MATCH(B16,B6:G6,0)
the value given in the first column so we use index amd match
value given to match some other value
e value where the match is happening
p, -1 matches against the smaller value greater than the search key (details in descending order)
=SUM(INDEX(C28:F31,,MATCH(I27,C27:F27,0)))
The following table provides a list of distances between US cities.
Write a formula in cell H16 which would automatically calculate the distance between any two selected c
City 2?
City 1 City 2
Distance between Phoenix and LA is
Imagine that the Seattle Seahawks NFL team is embarking on a road trip in which they play games in Pho
Dallas, and Chicago. At the conclusion of the road trip, the Seahawks return to Seattle. Using INDEX, can
many miles they travel on the trip?
Distance
398
EMP ID B008
Name Program Emp ID Age Gender
#NAME? #NAME? #NAME? #NAME? #NAME?
{=_xlfn.xlookup(C17,D3:D12,B3:F12,,0)}
EMP ID B008
Name #NAME?
lookup_value
lookup_array
return_array
[if_not_found]
[match_mode] 0: Exact match. If none found, return #N/A. This is the default.
-1: Exact match. If none found, return the next smaller item.
1: Exact match. If none found, return the next larger item.
2: A wildcard match where *, ?, and ~ have special meaning.
[search_mode] 1: Perform a search starting at the first item. This is the default.
-1: Perform a reverse search starting at the last item.
2: Perform a binary search that relies on lookup_array being sorted in
ascending order. If not sorted, invalid results will be returned.
-2: Perform a binary search that relies on lookup_array being sorted in
descending order. If not sorted, invalid results will be returned.
transpose can be used to convert thr row data into column data
{=TRANSPOSE(Name #NAME?
4,C25:C30,1)) Program #NAME?
Emp ID #NAME?
Age #NAME?
Gender #NAME?
es in between
2,C3:C12,,2)
12,C3:C12,,2)
data need not be sorted in ascending or descending order
* refers to 0 or more position
? Refers to one position
~ help us in finding entries with special character
A B C D E F G H I J
1
The table below provides assignment of workers to four groups. The suitability of each worker for each group (on a scale from 0 to 10) is also given.
2
Write a formula using INDEX that gives the suitability of each worker for the group to which the worker is assigned.
Also try writing the same formula using VLOOKUP and HLOOKUP, respectively.
3
4 Suitability Rating
Group Suitability Rating Suitability Rating Suitability Rating
5 Worker Group 1 Group 2 Group 3 Group 4
Assignment (using INDEX) (using VLOOKUP) (using HLOOKUP)
6 1 2 3 4
7 4 1 9 8 6 8
8 1 2 10 0 5 6
9 3 3 5 8 10 5
10 1 4 4 0 5 2
11 2 5 9 10 4 5
12 3 6 5 2 7 3
13 1 7 8 3 1 2
14 3 8 2 2 9 2
15 1 9 8 7 6 3
16 4 10 7 0 1 8
The worksheet contains quarterly revenues for Walmart. Can you easily compute the revenue for eac
Wal-Mart revenues
43886.8=IF(C9=1,SUMIF($B$9:$B$61,B9,$D$9:$D$61),"")
and the change is against the rows where quarte
55483.6
67344.3
82493.9
93627
104859
117958
137634
166809
193295
219672
231577
258681
65443
g the first quarter’s sales for that year?
2 LOSE
3 LOSE
12 LOSE
7 WIN
11 WIN
e tossed. If the total of the dice on a roll is 2, 3, or 12, you lose. If the total of the dice on a roll is 7 or 11, you win. Otherwi
o determine the status of the game after the first roll?
5
CONTINUE
=IF(OR(E7=2,E7=3,E7=12),"LOSE",IF(OR(E7=7,E7=11),"WIN","CONTINUE"))
CONTINUE
=IFERROR(VLOOKUP(E7,C12:D16,2,FALSE()),"CONTINUE")
IFERROR(formula,exception handling)
s 7 or 11, you win. Otherwise, the game keeps going. How
Column B contains the names of several movies followed by the number of copies of the movie DVD p
of each movie from this data.
Movie Details
Seabiscuit 40
Laura Croft Tombraider 12
Raiders of the Lost Ark 36
Annie Hall 5
Manhattan 4
Star Wars 112
How to Deal 128
The Matrix Reloaded 1
Johnny English 1040
Rosemary's Baby 12
High Noon 1002
LEN
LEFT
RIGHT
MID
SEARCH
FIND
SUBSTITUTE
REPLACE
ber of copies of the movie DVD purchased by a local video store. Extract the title
Generate an error message when the number of characters in a cell goes beyond a certain range.
Min No of Char 3
Max No of Char 5
Names
You are entering employee names in the cell range B20:B23. Use data validation to ensure that no
employee’s name is entered more than twice.
Names
nd a certain range.
on to ensure that no
VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup])
He expects that it will take three hours of labour to make each swing at $15 per hour. Storing tires requires a
insurance because of the risk of fire. Harold estimates that the storage facility and insurance will cost $1200
In the first year, Harold expects to sell 500 units. He expects sales to be fairly constant at 750 units every ye
model to assist Harold in deciding whether to launch this product or not.
Input
Retail price 80
material cost 10
labor hours 3
labour cost/hr 15
storage and insurance cost/mont 1200
Year 1 Year 2 and onwards
demand 500 750
ng whether or not to expand his business with a new product line of tire swing
price of $80. The material to make each swing will cost $10.
$15 per hour. Storing tires requires a special storage facility with special
facility and insurance will cost $1200 per month.
e fairly constant at 750 units every year after that. Develop a spreadsheet
t.