Exercise: Footballer Card Penalties - 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.

The answer to the exercise will be included and explained if you attend the Wise Owl course listed below!

Category ==> Excel 2010  (83 exercises)
Topic ==> IF and LOOKUP functions  (15 exercises)
Level ==> Average difficulty
Course ==>
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 workbook in the folder shown above.

Create a nested =IF formula in cell E2 to show the action to take based on the following:

  • If the number of yellow cards is greater than or equal to 30, then the fine is 10% of their salary;
  • If the number of yellow cards is greater than or equal to 10, then the fine is 2% of their salary;
  • If the number of yellow cards is any less than 10 then insert the text No Action in the cell.

You might like to first create some range names for the variables that you will need to use in the =IF (or you may use absolute cell refs if you prefer)

Footballers card penalties worksheet without nested =IF

The variables in column H have had range names created.

Copy your nested =IF formula down to column to calculate the action to take for all the other players.

Check that the nested =IF is working by changing each variable and then checking that the answer updates correctly.  Also check that if you change the number of yellow cards for a player, then the =IF correctly adjusts the % fine used.  Change the number of yellow cards for a player to less than 10 and check that the message appears in the cell.

If you would like an extra challenge for this exercise, read on!

A better way to display the fines would be to have the text Fine of appear before the calculated amount.  This can be added to your nested =IF formula.

Think of the above problem like this.  To display the wording Fine of before the answer to a formula in cell D7, you would create this formula:

="Fine of " & D7

Save your workbook with the new name Footballers Card Penalties with Nested IF.

This page has 0 threads Add post