# Exercise: IF Parking Charge or Message

This exercise is provided to allow potential course delegates to choose the correct Wise Owl Microsoft training course, and may not be reproduced in whole or in part in any format without the prior written consent of Wise Owl.

The answer to the exercise will be included and explained if you attend one of more of the courses listed below!

 Category ==> Excel  (37 exercises) Topic ==> Conditional formulae  (8 exercises) Level ==> Average difficulty Courses ==> Excel Business Modelling  /  Excel Intermediate
Before you can do this exercise, you'll need to download and unzip this file (if you have any problems doing this, click here for help).

You need a minimum screen resolution of about 700 pixels width to see our exercises. This is because they contain diagrams and tables which would not be viewable easily on a mobile phone or small laptop. Please use a larger tablet, notebook or desktop computer, or change your screen resolution settings.

Open the file contained within the folder name shown above.

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.

Copy the =IF function down the rest of the column to calculate the other parking fees

Change the threshold and the parking fee as shown below to check everything works:

When you change the input cells the parking fees should change.

Use Save As... to save the file in your own new Excel work folder.