T4 Exercises

advertisement
T4 Exercises
Bernard Liengme
The file Comparison
• Using IF
• Using Conditional Formatting
Spotlight
1. Spotlight Video Rentals
Spotlight Video rents movies. After DVDs and VHS tapes have been viewed a
certain number of times, their quality deteriorates and they need to be replaced.
Spreadsheet
■ Number of times each title has been rented.
■ Number of defects that have been reported.
■ The percent acceptable must be above 85 percent based on usage. If the
percentage reported is above 85 percent, then Spotlight Video wants to flag this
video as “REPLACE.”
SPOTLIGHT VIDEO DEFECT REPORT
ID
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
36
38
39
39
41
42
43
44
44
44
47
47
49
50
MOVIE TITLE
Walk the Line (2005)
Yours, Mine and Ours (2005)
The Weather Man (2005)
North Country (2005)
Domino (2005)
Saw II (2005)
Rent (2005)
Just Like Heaven (2005)
Elizabethtown (2005)
Zathura: A Space Adventure (2005)
Flightplan (2005)
Waiting... (2005/I)
In Her Shoes (2005)
Corpse Bride (2005)
The Legend of Zorro (2005)
Proof (2005)
Lord of War (2005)
The Ice Harvest (2005)
Pride & Prejudice (2005)
Transporter 2 (2005)
Red Eye (2005/I)
Wallace & Gromit in The Curse of the Were-Rabbit (2005)
Doom (2005)
Wedding Crashers (2005)
The Man (2005)
The Constant Gardener (2005)
The Fog (2005)
Hustle & Flow (2005)
The Prince and Me 2 (2006) (V)
The Aristocrats (2005)
Supercross (2005)
MirrorMask (2005)
Where the Truth Lies (2005)
Into the Blue (2005)
Two for the Money (2005)
Broken Flowers (2005)
Four Brothers (2005)
Must Love Dogs (2005)
The River King (2005)
Stuart Little 3: Call of the Wild (2005) (V)
The Cave (2005)
The Thing About My Folks (2005)
Separate Lies (2005)
Cinderella Man (2005)
Mr. & Mrs. Smith (2005)
Underclassman (2005)
The 40 Year Old Virgin (2005)
The Brothers Grimm (2005)
Nine Lives (2005)
Thumbsucker (2005)
# OF
# OF
RENTALS DEFECTS
114
53
112
23
100
44
53
42
92
20
44
88
34
99
62
24
50
9
34
74
55
29
78
66
51
100
50
56
98
46
72
78
50
74
55
86
87
83
3
34
90
19
42
99
102
77
100
100
22
42
5
5
54
12
12
19
12
26
26
19
40
26
33
33
33
19
47
5
5
54
54
26
26
61
47
54
40
54
12
40
33
19
5
69
47
61
75
75
40
12
61
19
12
89
96
47
82
75
19
40
STATUS
If percentage of defects >85%
then Status must be Replace otherwise Status is
blank.
In E5 we enter
=IF(D5/C5>85%,"Replace","")
and copy down the column (how ?)
Replace
Replace
Replace
Replace
Replace
Replace
Replace
Replace
Replace
Replace
Replace
Replace
Replace
Replace
Replace
Replace
Replace
Replace
Replace
Replace
Conditional formatting was added to highlight the
ones to replace
Scheduling Solver
Your professors were confused by the book !
So we will omit this one.
DVD Sales
Hans Hultgren, the sales manager for DVD Sales, wants to maximize his profit
on the sale of portable DVD players. He already has two portable models he
plans to sell:
Products Retail Price Wholesale Cost
Panasonic DVD–LS50 $349.95 $192.47
Mintek MDP–1810 $199.95 $109.99
Hans needs your help in calculating his maximum profit. First, he would like you
to use the Web to locate the retail price of two other portable DVD players not
listed in the table above. The wholesale price of each unit is 55 percent of the
retail price for both units you find. Hans has two constraints:
1. Hans has $200,000 to purchase new DVD players. The total wholesale cost of
the four types of DVD units must be less than $200,000.
2. Hans must purchase a minimum of 100 units of each player from his
wholesaler.
You want to use Excel Solver to maximize the total profit for Hans with the
constraints mentioned above and limiting the number of units to positive
integers.
A Min/Max problem can have more
that one solution
4. Maximizing Profit
HotSprings Spas
Assumptions
Quantity to produce
Profit per unit
Total Profit
Steamboat Classic
106
95
$ 400 $ 345
$ 75,175
Constraints
Steamboat Classic
Labor to build (hours)
15.50 10.50
Piping required (feet)
14.50 20.00
Pumps required
1
1
Pool of available resources Allocated Available
Labor
2,641 2,650
Piping
3,437 3,450
Pumps
201 231
Use CTRL+` to see
Constraints
HotSprings Spas manufactures and sells two spa models: the Steamboat and the
Classic. HotSprings Spas receives spa bodies from another manufacturer and then
adds a pump and tubing to circulate the water. The Steamboat model demands
15.5 hours of labor and 14.5 feet of tubing. The Classic model requires 10.5 hours
of labor and uses 20 feet of tubing.
Based on selling patterns, the owner, Deborah, has determined that the
Steamboat model generates a profit of $400 per unit, and each Classic model
generates $345 profit.
While Deborah would like a large labor capacity and sufficient tubing and motors
to build any number of spas, her resources are limited. For the next production
period, Deborah has 2,650 labor hours, 3,450 feet of tubing, and 231 pumps
available. Deborah needs assistance in figuring out how many Steamboat and
Classic models to build in order to maximize her profit. Given the constraints
above, use Solver to assist Deborah in her what-if analysis..
These are the Variables
HotSprings Spas manufactures and sells two spa models: the Steamboat
and the Classic. HotSprings Spas receives spa bodies from another
manufacturer and then adds a pump and tubing to circulate the water.
The Steamboat model demands 15.5 hours of labor and 14.5 feet of tubing.
The Classic model requires 10.5 hours of labor and uses 20 feet of tubing.
Based on selling patterns, the owner, Deborah, has determined that the
Steamboat model generates a profit of $400 per unit, and each Classic
model generates $345 profit.
While Deborah would like a large labor capacity and sufficient tubing and
motors to build any number of spas, her resources are limited. For the next
production period, Deborah has 2,650 labor hours, 3,450 feet of tubing,
and 231 pumps available. Deborah needs assistance in figuring out how
many Steamboat and Classic models to build in order to maximize her
profit. Given the constraints above, use Solver to assist Deborah in her
A note on Solver
There can be no decision function between
the Variables (By Changing) and the Target in
a Solver model.
This includes IF, VLOOKUP, SUMIF and similar
functions
Automobile Budget
5. Budget Constraints
Joanne Krol wants to purchase a newer model automobile to replace her
rusty 1989 car. The bank where Joanne has a checking account, US Bank, is
advertising an annual interest rate of 6.75 percent for a three-year loan on
used cars. By selling her old car and using some cash she has accumulated,
Joanne has $3,000 available as a down payment. Under her current budget,
Joanne figures that the maximum monthly loan payment she can afford
is $300. She wants to find out the maximum car price she can afford and keep
the monthly payment no higher than $300. She cannot alter the interest rate
or the three-year term. Use the Excel Goal Seek command to figure out the
highest purchase price Joanne can afford.
Automobile Loan Analysis
Purchase price
Down payment
Loan amount
Monthly payment
$5,000.00
$3,000.00
$2,000.00
Annual interest rate
Term (years)
6.75%
3
$61.53
Payment function - what is the payment on a load
=PMT( rate, nper, pv, fv, type)
rate: interest rate 6.75% pa = 6.65/12 a month
nper: number of payments: in 3 years there are 3*12 payments
pv: the amount borrowed
fv: future vlaue; 0 since we want to pay off all the laod
type: payemtn made at start or end of month (if omitted, then
end-of-month)
5. Budget Constraints
Joanne Krol wants to purchase a newer model automobile to
replace her rusty 1989 car. The bank where Joanne has a
checking account, US Bank, is advertising an annual interest rate
of 6.75 percent for a three-year loan on used cars. By selling her
old car and using some cash she has accumulated, Joanne has
$3,000 available as a down payment. Under her current budget,
Joanne figures that the maximum monthly loan payment she can
afford
is $300. She wants to find out the maximum car price she can
afford and keep the monthly payment no higher than $300. She
cannot alter the interest rate or the three-year term. Use the
Excel Goal Seek command to figure out the highest purchase
price Joanne can afford.
When IF is not needed
• Jack get 5% commission if he sells up to
$1,000 but if he sells more than $1000 his
commission rate is 7%
• Let B5 hold his sales figure this month, and C5
his commission rate
• Try this =IF(B5<=1000,5%,7%).
• Now try =5% + (B5>1000)*2%
• Use Formula |
Download