Excel | Advanced IFs exercise | Using Nested IF for Test Results

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 ==> Harder than average
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.

Difficult Nested IF

Do not be fooled by the pretty colours. This exercise is not for the faint-hearted!

We want to calculate the test result status.  There are 3 possible results, as shown in this screen shot:

3 possible Test Results

Depending on the data for a result, your formula should return either a calculation of how close the test result is to the maximum allowed value, the word INVALID or the message Not Test 1 or 2.

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.

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 =IF function.

Here are what your answers should resemble:

Using nested =IF and =AND

It might be best to also use =ROUND!

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 Add post