Sie sind auf Seite 1von 6

Under 50% is a Fail 80% or Better

Name Computers Science Computers (Fail or Pass) Science Scholarship


Jim 49% 25% Fail! $0.00
Heather 90% 85% Pass! $500.00

DCS =IF (logical test, value if true, value if false)


$500 Rules to remember
The Logical test must use an operator
The Logical test must analyze 2 things, either other cells, numbers or text
When using text, you MUST put the text inside quotation marks
NEVER put numbers inside quotation marks

Operators

= > < >= <= <> Symbol Use


If the cell value is more than 2500 A1>2500 Numbers ONLY
If the cell value is under 2500 A1<2500 Numbers ONLY
If the cell value is 2500 or more A1>=2500 Numbers ONLY
If the cell value does not equal 2500 or "Text" A1<>2500 A1<>"Yes" Numbers OR Text
If the cell value is 2500 or lower A1<=2500 Numbers ONLY
If the cell value equals 2500 or "Text" A1=2500 A1="Yes" Numbers OR Text
Using Range Names in formulas and functions
Average of both Courses Science Average (Function)
37% 55%
88% Computers Average (Function)
70%

Range Name Rules


Names can't have any spaces or punctuation characters
Names can not be named after an actual cell location. i.e. A4
Names must begin with a letter, underscore or /
Names use absolute cell references but work with relative too!
Names are not case sensitive
Last Name Location Status Clearance Pay Grade Salary Quest. A) Quest. B)
Hovey Austin FT 2 3 $85,000 $5,950.00 Over Paid
Overton Home FT 2 1 $40,000 $0.00 Over Paid
Fetherston New Orleans PT 3 4 $37,244 $0.00 Need Raise
Lebrun Austin FT 2 3 $80,000 $5,600.00 Over Paid
Hanson Austin FT 5 4 $65,000 $4,550.00 Over Paid
Beck New Orleans FT 3 5 $125,000 $0.00 Over Paid
Simmons New Orleans FT 1 3 $95,000 $0.00 Over Paid
Dunn Home FT 2 2 $36,000 $0.00 Need Raise
Harris Alaska PT 1 1 $22,000 $0.00 Need Raise
Logical Functions (Make sure you create functions that work for all employees in rows 2-1
A) If they are from Austin they get a bonus which is calculated by multiplying their salary by 7%, otherwise they get 0 for a bon
B) If their salary is below $40,000 output the text "Need Raise" otherwise output the text "Over Paid"
C) If the bonus from question A) is $5,000 or lower output the text "Crap Bonus" otherwise output the text "Hot Tub!"
D) If they have a clearance better than 2 then output the text "Senior" otherwise "Junior"
E) If they have a paygrade of 5 or more, output the text "President" otherwise "Expendable"
F) If they have a salary over $50,000 calculate their tax by multiplying their salary by 30%, otherwise multiply their salary by ce
G) If their status is NOT part time output the text "You're Lucky" otherwise output the text "You're Fired!"

NOTE: For all of the above questions, begin by creating the function for Hovey an
function down so that it works for everyone.
Quest. C) Quest. D) Quest. E) Quest. F) Quest. G)
Hot Tub! Junior Expendable $25,500.00 You're Lucky
Crap Bonus Junior Expendable $4,000.00 You're Lucky
Crap Bonus Senior Expendable $3,724.40 You're Fired!
Hot Tub! Junior Expendable $24,000.00 You're Lucky
Crap Bonus Senior Expendable $19,500.00 You're Lucky
Crap Bonus Senior President $37,500.00 You're Lucky
Crap Bonus Junior Expendable $28,500.00 You're Lucky
Crap Bonus Junior Expendable $3,600.00 You're Lucky
Crap Bonus Junior Expendable $2,200.00 You're Fired!
work for all employees in rows 2-10) Bonus
7%, otherwise they get 0 for a bonus. 10%
ver Paid"
utput the text "Hot Tub!" 2 Marks
DEMO
2 Marks
2 Marks
herwise multiply their salary by cell M13 2 Marks
LAB MARKS
ou're Fired!" 2 Marks

e function for Hovey and when done copy the


ks for everyone.
Last Name Location Status Clearance Pay Grade Salary Quest. I) Quest. J)
Hovey Austin FT 2 3 $85,000 $8,500.00 Over Paid
Overton Home FT 2 1 $40,000 $0.00 Over Paid
Fetherston New Orleans PT 3 4 $37,244 $0.00 Need Raise
Lebrun Austin FT 2 3 $80,000 $8,000.00 Over Paid
Hanson Austin FT 5 4 $65,000 $6,500.00 Over Paid
Beck New Orleans FT 3 5 $125,000 $0.00 Over Paid
Simmons New Orleans FT 1 3 $95,000 $0.00 Over Paid
Dunn Home FT 2 2 $36,000 $0.00 Need Raise
Harris Alaska PT 1 1 $22,000 $0.00 Need Raise
Logical Functions (Make sure you create functions that work for all employees in rows 2-10 and us
H) Name the range B2:B10 "Location", F2:F10 "Salary", M13 "Bonus" and delete the range called "Delete_Me" (Don't use the q
I) If they are from Austin they get a bonus which is calculated by multiplying their salary by the bonus % in cell M13, otherwise
J) If their salary is below $40,000 output the text "Need Raise" otherwise output the text "Over Paid"
K) Name the C2:C10 "Status", D2:D10 "Clearance", E2:E10 "Pay_Grade" and delete the range called "Delete_Me_Too"
L) If they have a salary over $100,000 then output the text "6 Digits!" otherwise output that person's salary
M) If their clearance is 2 or more then output the text "Senior" otherwise "Junior"
N) If they have a paygrade of 4 or fewer, output the text "Expendable" otherwise "President"
O) If they have a salary that is over $50,000 calculate their tax by multiplying their salary by 30%, otherwise multiply their salar
P) If their status is NOT full time output the text "You're Fired!" otherwise output the text "You're Lucky"

NOTE: For all of the above questions, begin by creating the function for Hovey and w
for everyone. YOU MUST USE RANGE NAMES for Location, Status, Clearance, Pay
question if range names are not us
Quest. L) Quest. M) Quest. N) Quest. O) Quest. P)
$85,000.00 Senior Expendable $25,500.00 You're Lucky
$40,000.00 Senior Expendable $4,000.00 You're Lucky
$37,244.00 Senior Expendable $3,724.40 You're Fired!
$80,000.00 Senior Expendable $24,000.00 You're Lucky
$65,000.00 Senior Expendable $19,500.00 You're Lucky
6 Digits! Senior President $37,500.00 You're Lucky
$95,000.00 Junior Expendable $28,500.00 You're Lucky
$36,000.00 Senior Expendable $3,600.00 You're Lucky
$22,000.00 Junior Expendable $2,200.00 You're Fired!
all employees in rows 2-10 and use range names when possible) Bonus
lled "Delete_Me" (Don't use the quotes when naming theses) 10%
he bonus % in cell M13, otherwise they get 0 for a bonus.
ver Paid"
DEMO
called "Delete_Me_Too" 2 Marks
person's salary 2 Marks
2 Marks
LAB MARKS
2 Marks
0%, otherwise multiply their salary by the bonus % in cell M13 2 Marks
u're Lucky" 2 Marks

unction for Hovey and when done, copy the function down so that it works
n, Status, Clearance, Pay_Grade, Salary and Bonus (1 mark deducted per
range names are not used)

Total Lab /22

Das könnte Ihnen auch gefallen