Lecture 3 Worksheet

advertisement
LECTURE 3 WORKSHEET—IF AND BOOLEAN LOGIC
DISCOUNT PRICING
Sales
Sales
Data
As the owner of a small convenience store you have started to keep
track of store sales. For each sale, you will record the discounts
which apply to each sale. Your pricing is such that sales are
discounted based on the sales amount, as given on the Data!
worksheet. The only exception to this is where a senior discount is
applied (for those eligible customers over the age of 65). Seniors will
receive the greater of either the sales discount or the senior discount.
1
2
3
4
5
6
7
8
9
10
11
A
Description
food
other
B
C
Category % of total
F
0%
O
12%
Discounts
Senior Discount
12%
Sales Discount
<$100
> $100 but < $200
$200 or more
0%
10%
15%
1. Write an Excel formula in cell Sales!E2 that can be copied down the column to determine the value
of the senior discount. Only seniors are eligible for this discount. Senior status is indicated in
column C on sheet Sales!. The senior discount percentage in given on sheet Data. Non-seniors
receive no discount. (Note the ‘-‘ display is the currency format for the value $0).
2. Write an Excel formula in cell Sales!F2 that can be copied down the column to determine the value
of the sales discount. As indicated on sheet Data!, sales of less than $100 receive no discount, sales
of at least $100 but less than $200 receive a 10% discount, and sales of $200 or more receive a 15%
discount of the sale amount.
3. Write an Excel formula in cell Sales!G2 that can be copied down the column to determine the
discount amount used. The discounted value used will be the greater of the two discounts (senior
discount or sales discount). (**challenge – try to do this without an IF).
LECTURE 3 WORKSHEET—IF AND BOOLEAN LOGIC
4. Write an Excel formula in cell Sales!H2 that can be copied down the column to determine total sale
value after the discount.
5. Write an Excel formula in cell Sales!I2 that can be copied down the column to determine the sales
tax on this item. Sales tax rates are listed by category on sheet Data!. Categories for each sale are
listed in column D.
6. Write an Excel formula in cell Sales!J2 that can be copied down the column to determine the value
of the sale including tax rounded to the nearest cent.
LECTURE 3 WORKSHEET—IF AND BOOLEAN LOGIC
ART PROBLEM
A
1
2
3
4
5
6
7
8
9
10
11
12
13
B
C
D
#Art
Avg Hotel Roundtrip
Museums $per night Airfare
City
Boston
20
150
259
New York
40
225
208
Chicago
14
160
95
Los Angeles
12
270
473
San Francisco
17
203
489
Miami
3
180
279
Houston
6
200
299
Tucson
2
99
520
more acceptable to kim than nat
TRUE
none acceptable
only ny acceptable
average price of acceptable cities
E
avg
temp in
Dec.
35
41
31
71
52
68
75
85
F
Good
Art
TRUE
TRUE
TRUE
TRUE
TRUE
FALSE
FALSE
FALSE
G
H
I
J
Weekly
cost per
Good
Accept to Accept to
Person
Weather Kim
Nat
$
1,309 FALSE
TRUE
FALSE
$
1,783 FALSE
TRUE
FALSE
$
1,215 FALSE
TRUE
FALSE
$
2,363 TRUE
TRUE
FALSE
$
1,910 TRUE
TRUE
FALSE
$
1,539 TRUE
TRUE
FALSE
$
1,699 TRUE
TRUE
FALSE
$
1,213 FALSE FALSE
TRUE
FALSE
FALSE
$ 1,688
FALSE
FALSE
$ 1,213
As a travel agent you have collected information for you clients on various American cities for
their winter vacation plans including: the number of art museums, hotel costs, roundtrip airfare
from Columbus and weather statistics. You now need to summarize this information to
determine which options meet each of your client’s requirements.
1. If a city has more than 10 Art Museums it is considered to have “good art”. Write a formula
in cell F2 (True/False), which can be copied down the column, to determine if Boston has “good
art”.
2. Write a formula in Cell G2, which can be copied down the column, to calculate the cost of a
week in Boston which includes seven nights in a hotel and one roundtrip airfare.
3. If a city has average temperatures between 50 and 80 (inclusive) it is considered to be “good
weather”. Write a formula to give a True or False answer in H2, which can be copied down the
column, to determine if Boston has “good weather”.
LECTURE 3 WORKSHEET—IF AND BOOLEAN LOGIC
4. Your client Kim considers any destination that has either good art or good weather to be
acceptable. Write a formula in cell I2 (True/False), which can be copied down the column, to
determine if Kim considers Boston acceptable.
5. Your client Nat only wants to go to the destination with the cheapest price. Write a formula
in cell J2, which can be copied down the column to determine if Boston is acceptable to Nat.
6. Assume you have copied down all the formulas from columns F through J. Write a formula
to give a True or False answer in K10 (not shown) to determine if either Chicago is acceptable to
both Kim and Nat or New York is acceptable to both Kim and Nat.
8. Write a formula in I11 (not shown), which can be copied across, to determine if no cities are
acceptable to Kim.
9. Write a formula in I12 (not shown), which can be copied across, to determine if only New
York is acceptable to Kim.
LECTURE 3 WORKSHEET—IF AND BOOLEAN LOGIC
A TRAVEL AGENCY
A
B
C
1 Travel Packages from Columbus to :
2
3
4
5
6
7
8
9
10
11
12
Package Luxury
List Price Rating
Destination:
Boston
850
B
New York
950
A
Chicago
475
A
Los Angeles
1250
B
San Francisco
1180
C
Miami
770
C
London
2125
A
Paris
1875
B
D
costs <
avg
TRUE
TRUE
TRUE
FALSE
TRUE
TRUE
FALSE
FALSE
Avgl value of packages being promoted:
E
F
G
Price with
luxury
Commission Try to sell
$
935 $
63.75 FALSE
$
1,045 $
71.25 FALSE
$
523 $
47.50 FALSE
$
1,375 $
75.00 FALSE
$
1,180 $
70.80 FALSE
$
770 $
57.75 FALSE
$
2,338 $
106.25
TRUE
$
2,063 $
112.50
TRUE
2000
1
2
3
4
5
A
List Price range
less than 500
at least 500 but less than 1000
at least 1000 but less than 2000
$2000 or over
B
Commission
10.00%
7.50%
6.00%
5.00%
Comm
Calc
An Excel workbook contains two worksheets, Calc and Comm containing information on the
different travel packages (airfare, hotel, etc.) that you offer. Sheet Comm contains a list of
travel agent commission rates based on the list price of travel package.
1. Write an Excel formula in cell D3, which can be copied down the column, to determine
(True/False) if the package list price for this destination is less than the average list price
of all the destinations being offered.
2. Write an Excel formula in cell E3, which can be copied down the column, to determine
the total price including tax of this travel package. A luxury tax of 10% is applied to all
packages with an A or B rating.
3. Write an Excel formula in cell F3, which can be copied down the column, to determine
travel agent’s commission. Commission rates are listed on sheet comm. If a travel
package lists for under $500 a commission of 10% is earned, for at least $500 but less
than $1000 a commission of 7.5% is earned, etc. Since commission rates for a cost
category frequently vary, use cell references wherever possible.
4. On average approximately $75 is spent in time, phone calls and supplies selling any
given travel package. Therefore travel packages that yield a commission of less than
$75 are unprofitable and are not “pushed” by the agents. Write an Excel formula in cell
G3, which can be copied down the column, to determine if the agents should “push” (try
to sell) this travel destination.
Download