# Excel | Advanced IFs exercise | Parking Charges - Nested IF

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.

 Software ==> Excel  (151 exercises) Version ==> Excel 2016 and later Topic ==> Advanced IFs  (6 exercises) Level ==> Relatively easy Subject ==> Excel training
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 calculate the parking charges for the following cars:

We need to use a nested =IF function because there are two conditions.

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

A nested =IF function uses the following structure:

=IF(Condition1, True1, False2 is: IF(Condition2, True2, False2))

Change your parking thresholds and parking fees to check that your formula works:

Only the cars parked for 3 hours or less get free parking.

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

You can unzip this file to see the answers to this exercise, although please remember this is for your personal use only.
This page has 0 threads