Advance IFs
Advance IFs
ADVANCE IFS 01
1. Open the file contained within the folder with file name Car Parking Nested IF.
Car Parking Charges
No Hours Parking
Car Reg
Parked Charge If park >8 hours pay £1 pr hr
DA12 NEJ 6 If park >5 hours pay £1.50 pr hr
MA16 BVW 12 Anything less "Free Parking"
DD11 SFD 8
MA14 NHG 11 Threshold1 8
YK14 BHH 5 Threshold2 5
DY15 FLB 3 Long Hour Fee £1.00
MM12 SWL 12 Med Hour Fee £1.50
MA16 GKW 7
FS12 DSD 1
DA11 SBM 6
We need to use a nested =IF function because there are two conditions.
2. In cell C4, create a nested =IF formula that either calculates the parking charges or
displays the message Free Parking. Use these rules to help you:
• If the hours parked > 8, the driver should pay £1 per hour
• If the hours parked >5, the driver should pay £1.50 per hour
• Anything less should display Free Parking
No Hours Parking
Car Reg
Parked Charge If park >8 hours pay £1 pr hr
DA12 NEJ 6 £18.00 If park >5 hours pay £1.50 pr hr
MA16 BVW 12 £24.00 Anything less "Free Parking"
DD11 SFD 8 £16.00
MA14 NHG 11 £22.00 Threshold1 6
YK14 BHH 5 £15.00 Threshold2 3
DY15 FLB 3 Free Parking Long Hour Fee £2.00
MM12 SWL 12 £24.00 Med Hour Fee £3.00
MA16 GKW 7 £14.00
FS12 DSD 1 Free Parking
DA11 SBM 6 £18.00
Only the cars parked for 3 hours or less get free parking
4. Save the file with sheet name ADVANCE IFS 01
ADVANCE IFS 02
1. Open the file contained in the folder with file name Nested IF Staff Bonuses
D&Q Staff Bonuses
No
Employee Customers Bonus
Helped
Emily Smith 15 If no customers >= 50 get £100 per cust helped
Dan Jonesman 23 If no cusomers is 50-25 get £50 per cust helped
Fred Brown 41 If no customers is less "no bonus" message in cell
Dora McTavish 18
Patrick O'Leary 7 High Threshold 50
Dawn Taylor 51 Med Threshold 25
Penny Joyce 22 Top Bonus £100.00
Ian Frankley 19 Med Bonus £50.00
Jeff O'Brien 37 Low Bonus No Bonus
William Jones 34
2. In cell C4, create a nested =IF formula to calculate the staff bonus for each staff
member. Use this to help you:
• If the number of customers helped >=50 the staff member gets £100 * the
number of customers helped
• If the number of customers helped >=25 they get £50 * the number of
customers helped
• If the number of customers helped was any less, a message in the cell says No
bonus
3. Lower the thresholds in cells F8 and F9 and the bonus percentage rates to check that
your formula works:
Advance IFS 03
1. Open the file contained in the folder with file name Nested IF TuckShop Sales
We want to calculate the bulk buy discounts:
Cheeky Charlie's School Tuckbox Sales - Class 4A Sales
Cost
Bulk Buy
Item Price Quantity Before Class Cost
Discount
Discount
Mars Bars £1.00 8 £8.00 £8.00 Discounts for Bulk Buy
Twix £1.00 5 £5.00 £5.00
Bounty Bar £1.00 6 £6.00 £6.00 If buy >= 20 get 10% discount
Gazillions Tub £1.50 12 £18.00 £18.00 If buy >=10 get 5% discount
Maltesers £1.00 1 £1.00 £1.00 Anhything less no discount
Walkers Crisps £0.75 15 £11.25 £11.25
Salted Peanuts £1.50 8 £12.00 £12.00 Threshold1 20
Chewing Gum £0.75 5 £3.75 £3.75 Threshold2 10
Nutella Bar £2.00 4 £8.00 £8.00 High Discount 10%
Polo Mints £0.50 4 £2.00 £2.00 Low Discount 5%
Muesli Bar £2.00 1 £2.00 £2.00
Maths Test Answers £5.00 25 £125.00 £125.00
CLASS TOTALS £18.00 94 £0.00 £202.00
Some sales will qualify for 10% discount, some 5%, some none.
2. In cell E4, create a nested =IF formula that calculates the correct bulk buy discount
percentage. Use the following guide to help you:
• If the quantity >=20 the customer should get 10%
• If the quantity >=10 the customer should get 5%
• For anything less the customer should get no discount
ADVANCE IFS 04
1. Open the file contained in the folder with file name Scientific Test Results Nested IF
Camberly Scientific Services Lab Test Results for Samples 151 - 170
Sample Test Result Test Status If it was test 1 use test 1 min/max
151/A5 1 0.004660 If test 2 use test 2 min/max
158/F7 4 0.009980
159/G1 2 0.000331 Test 1 Min 0.00451
159/T3 1 0.004660 Test 1 Max 0.00483
162/R8 6 0.000392 Test 2 Min 0.000389
162/W1 1 0.000399 Test 2 Max 0.000407
165/K7 1 0.004630
165/M4 2 0.004630 Careful - what if test is not 1 or 2?
165/P5 3 0.000408 Message to say "not Test 1 or 2"
Do not be fooled by the pretty colours. This exercise is not for the faint-hearted!
2. We want to calculate the test result status. There are 3 possible results, as shown in
this screen shot:
3. In cell D4, create a nested =IF formula that does the following:
• Checks that it is Test 1 or Test 2 (if not, the formula should return the
text Not Test 1 or Test 2)
• Checks that the value is between the minimum and maximum for that test. If it
is between the minimum and maximum for the test, the formula should
calculate how close it is to the maximum value - otherwise, it should display
the message INVALID.
4. To do this, write down all the conditions and work out how many =IF conditions you
need to nest (this should help you), then create your formula and copy it down the
rest of the column.
Where you have 2 conditions which must be met, use the =AND function in conjunction
with your =IFfunction.
5. Here are what your answers should resemble:
Camberly Scientific Services Lab Test Results for Samples 151 - 170
Sample Test Result Test Status If it was test 1 use test 1 min/max
151/A5 1 0.004660 Result is 0.00017 from max value If test 2 use test 2 min/max
158/F7 4 0.009980 Not Test 1 or Test 2
159/G1 2 0.000331 Result INVALID Test 1 Min 0.00451 Results must be >=
159/T3 1 0.004660 Result is 0.00017 from max value Test 1 Max 0.00483 Results must be <=
162/R8 6 0.000392 Not Test 1 or Test 2 Test 2 Min 0.000389 Results must be >=
162/W1 1 0.000399 Result INVALID Test 2 Max 0.000407 Results must be <=
165/K7 1 0.004630 Result is 0.000200000000000001 from max value
165/M4 2 0.004630 Result INVALID Careful - what if test is not 1 or 2?
165/P5 3 0.000408 Not Test 1 or Test 2 Message to say "not Test 1 or 2"