0% found this document useful (0 votes)
7 views

Session1 Worksheet MIS

Uploaded by

mx39866
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views

Session1 Worksheet MIS

Uploaded by

mx39866
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
You are on page 1/ 30

Exact Match

Index Country Capital Index Input 6


1 Russia Moscow
2 Canada Ottawa
3 China Beijing
4 USA Washington, DC
5 Brazil Brasilia
6 Australia Canberra Approx Match
7 India New Delhi Index Input
8 Argentina Buenos Aires
data should be arra
Country
Australia
looks for exact match otherwise gives error
=VLOOKUP($G$3,$B$4:$D$11,2,0)

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

ancy like this


=VLOOKUP($G$3,$B$4:$D$11,3,1)
You are thinking of advertising Microsoft products on a sports telecast. As you buy more ads, the price of e
following table.

Number of Ads Price Per Ad No.of Slab Slab Floor


1-5 $ 12,000.00 1 1
6-10 $ 11,000.00 2 6
11-20 $ 10,000.00 3 11
21 or higher $ 9,000.00 4 21

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.

Ads Bought Expense per Ad


9 11,000.00
=VLOOKUP(E15,F7:G1

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

Cum pay for prev slab 215000


No.of ad from current slab 25
price per ad for current sla 9000
more ads, the price of each ad decreases as shown in the

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

ay $10,000 per ad. Calculate the price per ad and the

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

ook for pay for previous and current slab


The following database provides a list of college students.
Find out the name, course enrolment, and gender details of a student whose registration number is ment

Name Address Course Age


Bhupinder Ludhiana, Punjab BBA 20
Abhimanyu Indore, Madhya Pradesh MSc 24
Nidhi Delhi MBA 23
Diana Varoda, Gujarat MBBS 22
Firdaus Mumbai, Maharashtra LLB 23

Registration Number MBB0172

Name Diana =INDEX(B7:G11,MATCH(C14,F7:F11,0),MATCH(B16,B6:G6


Course MBBS =INDEX(B7:G11,MATCH(C14,F7:F11,0),MATCH(B17,B6:G6
Gender F =VLOOKUP(C14,F7:G11,2,0)

INDEX Delhi =INDEX(B7:G11,3,2)


MATCH 3 =MATCH("Nidhi",B7:B11,0)
4 =MATCH("Age",B6:G6,0)

JANUARY FEBRUARY MARCH


1 5 9
2 6 10
3 7 11
4 8 12

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.

Registration Number Gender


BBA2027 M
MSC1007 M
MBA0078 F
MBB0172 F
LLB1102 M

vlookup search for the value given in the first column so


7:F11,0),MATCH(B16,B6:G6,0)) vlookup uses the value given to match some other value
7:F11,0),MATCH(B17,B6:G6,0)) match returns the value where the match is happening
14,F7:G11,2,0) match has 3 match types first two similar to vlookup, -1 matches against the smaller valu

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?

Boston Chicago Dallas Denver LA


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

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?

Seattle Total Miles Travelled


Phoenix 1482
LA 398
Denver 1174
Dallas 801
Chicago 1205
Seattle 2052
ance between any two selected cities - City 1 and

Miami Phoenix Seattle


1539 2664 2612
1390 1729 2052
1332 1027 2404
2100 836 1373
2757 398 1909
0 2359 3389
2359 0 1482
3389 1482 0

Distance
398

p in which they play games in Phoenix, LA, Denver,


turn to Seattle. Using INDEX, can you calculate how

Total Miles Travelled 7112


Name Program Emp ID Age Gender XLOOKUP(lookup_value
Amy MBA A112 23 F
Tucker MBBS B023 22 M
Stirling M.Tech C142 24 M
Mary MBBS B008 22 F
Cur*tis M.Tech C076 23 M
Inoka BBA D015 20 F
Nicole M.Tech C234 24 F
Neil BBA D012 21 M
Sophie MBBS B154 25 F
John MBA A087 26 M
MBBS =_xlfn.xlookup("*t*",B3:B12,C3:C12,,2)
EMP ID B008
Name Mary =_xlfn.xlookup(C14,D3:D12,B3:B12,,0)

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?

Tax Rate Income Ceiling Income $ 45,000.00


10% $ 10,000.00 Tax Rate 24%
22% $ 40,000.00 =_xlfn.xlookup(F24,C25:C30,B25:B30,,
24% $ 60,000.00 0.22 =INDEX(B25:B30,MATCH(F24,C25:C30,1))
32% $ 100,000.00
35% $ 200,000.00
37% $ 500,000.00 wildcard match
match name with course where t comes in between
M.Tech =_xlfn.xlookup("?*t*",B3:B12,C3:C12,,2)
name has asteric so how to extrapolate
M.Tech =_xlfn.xlookup("*~**",B3:B12,C3:C12,,2)
LOOKUP(lookup_value, lookup_array, return_array, [if_not_found], [match_mode], [search_mode])

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

Year Quarter Revenue Annual Revenues


1991 1 9280.57 43886.76 =IF(C9=1,SUM(D9:D12),"")
1991 2 10339.90
1991 3 10627.50
1991 4 13638.80
1992 1 11649.40 55483.59
1992 2 13028.40
1992 3 13683.80
1992 4 17122.00
1993 1 13920.40 67344.30
1993 2 16236.50
1993 3 16826.90
1993 4 20360.50
1994 1 17686.10 82493.89
1994 2 19942.30
1994 3 20417.70
1994 4 24447.80
1995 1 20440.00 93627.00
1995 2 22723.00
1995 3 22914.00
1995 4 27550.00
1996 1 22772.00 104859.00
1996 2 25587.00
1996 3 25644.00
1996 4 30856.00
1997 1 25409.00 117958.00
1997 2 28386.00
1997 3 28777.00
1997 4 35386.00
1998 1 29819.00 137634.00
1998 2 33521.00
1998 3 33509.00
1998 4 40785.00
1999 1 35129.00 166809.00
1999 2 38913.00
1999 3 40899.00
1999 4 51868.00
2000 1 43447.00 193295.00
2000 2 46588.00
2000 3 46181.00
2000 4 57079.00
2001 1 48565.00 219672.00
2001 2 53187.00
2001 3 53185.00
2001 4 64735.00
2002 1 52126.00 231577.00
2002 2 56781.00
2002 3 55765.00
2002 4 66905.00
2003 1 57224.00 258681.00
2003 2 63231.00
2003 3 63036.00
2003 4 75190.00
2004 1 65443.00 65443.00
te the revenue for each year and place it in the row containing the first quarter’s sales for that year?

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?

using sum if because


changing the criteria and calculating the values
and the change is against the rows where quarter value is 1
In a game, two dice are tossed. If the total of the dice on a roll is 2, 3, or 12, you lose. If the total of the dic
can I write a formula to determine the status of the game after the first roll?

Total of the dice on a roll


Status of the Game
=IF(OR(E7=2,E7=3,E7=12),"LOSE",IF(OR(E7=7,E7=11),"WIN","CONTINUE

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])

Movie Year Rank Sales Movie Fargo


Fargo 1996 5 $61 m
L.A. Confidential 1997 4 $126 m Year
The Sixth Sense 1999 1 $673 m Rank
Toy Story 1995 2 $362 m Sale
Unforgiven 1992 3 $159 m

MATCH(lookup_value, lookup_array, [match_type])

Product Count Product Apples


Bananas 25
Oranges 38 Location
Apples 40
Pears 41

INDEX(array, row_num, [column_num])

Product Count Location


Bananas 25
Oranges 38 Product
Apples 40
Pears 41 Count
Harold owns a playground fabrication company Play Inc. He is considering whether or not to expand his busin
shaped like animals (e.g., a horse). He expects to sell each swing at a price of $80. The material to make eac

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.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy