# Excel | Lookup functions exercise | Dog Jacket Sizes - Lookups

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 ==> Lookup functions  (14 exercises) Level ==> Average difficulty 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 work out the right size jacket to order for each dog:

The table on the right shows which size fits the different neck sizes.

In cell C4, create an =VLOOKUP formula that chooses a jacket size for each dog.  Use the neck sizes and jacket sizes table in column E and F as your lookup table.   Creating a range name will help to use in the formula:

=VLOOKUP (Lookup cell, Table Range, Column ref)

Change the XL message to Extra Large and the S to Small and the small threshold from 20 to 18 to check that your formula works: