Excel | Conditional formulae exercise | Beetle Length - Single IF with Concatenation

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 ==> Conditional formulae  (17 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.

We want to create a formula that uses =IF to display a test message about the length of each beetle in our field study of the school playing fields:

Using =IF for text messages

The message in column C should be SHORT or LONG.

In cell C4, create a formula using =IF to calculate the following:

  • If the beetle length > average in cell B21, set the text message to LONG
  • If length is shorter, set the text message to SHORT

Copy the formula down to the rest of column C to calculate all the other messages.

Change the length of the sample in cell B4 to 50.2 (this would be an alien monster beetle!).  This will pull the average up and change many messages to SHORT.

If you like a challenge, have a go at creating a formula using =IF in cell D4 to display a message that calculates how much longer than average the beetle is:

  • If the beetle length is LONG your message should say This sample is x.xx longer than average
  • The cell should be blank if beetle is not LONG.

Change the length of the sample in cell B4 to 20.7 to check that your =IF formula works:

Using =IF with concatenate for text messages

You will need to use the & (concatenate) symbol to display the text and the formula result.

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