Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 5

If exercises

As always, all exercises should be in the same file in


different worksheets.
1. Open the file movies flop. file.

Create an If function to calculate whether each movie was a flop or a success. 


Use the following criteria:

 If the profit was less than 100,000,000 then the movie is a flop
 Otherwise the movie is a success

Copy the function down to rate each movie in the list.

Name the sheet as IF 1

2. Open the file Pesko parking

We want to use an =IF function to calculate the parking charge.

In cell C4, create an =IF function to calculate the parking charge.  Use the


following to help you:
 If the hours parked are less than or equal to 2 hrs, display a message
saying Free parking
 If the hours are greater, the parking fee is Hours Parked * Parking
Charge

Don't forget to create range names for the parking fee and the the threshold, and to use
these in your =IF formula.

Name the sheet as ex 2

3. Open the file poohstick rating

Create an If function to rate the players based on the following criteria:

 If a player scores more than 15 points he has a High score


 Otherwise he must Try harder

Copy the function down to rate all the players.

Only scores more than 15 are high scores

Name the sheet Ex 3

4. Open the file Printer Cartridge Order

We want to create a formula to calculate the order discounts:

We want to calculate the order discounts in column D.


In cell D4, create an =IF function to calculate Discount Applied.  Use the
following information to help you:

 If the order quantity is greater than 2000, the discount is 10%


 Anything less, the discount is 1%

Don't forget to create range names for the input cells below the spreadsheet, and then use
these in your =IF function.

Copy the =IF formula down column D to calculate the other discounts applied.

Change the input cells for the % discounts to check that your =IF is working
correctly as shown below:

When you change the discount %, the order discounts should change.

Name the sheet ex 4


5. Open the file Sales Commission

We want to calculate the commission for all the sales reps in Column C:

We need to use an =IF commission to calculate the commission.

In cell C4 create an =IF function to calculate the commission.  Use the following


to help you:

 If the sales in column B >= 30000, commission rate is 20%


 Sales anything less, commission rate is 1%

Don't forget to set up range names for the input cells in column F

Copy the commission rate formulae down column C to calculate all the other
reps' commissions.

Change your commission rate input cells in column F to check that your =IF
function is working correctly:

When you change the input cells in column F the commission will change.

Name the file Ex 5

6. Open the file car parking if

In cell C4 create a formula using the =IF function to calculate the parking


charge, then copy the formula down the rest of the column to calculate the
other cars' parking charges.
The =IF function charges either £3.50 or £1 for parking.

Change the threshold and parking fees to different values to check that
your =IF function is working correctly, then use

Name the sheet ex 6

You might also like