# Excel | Lookup functions exercise | Music Exam - Exact match and HLOOKUP

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 ==> 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 Excel to search through the pupils in this sheet:

We need to use an =HLOOKUP to complete the exam dates first.

Use the horizontal lookup table in cells H4:N5 to find the date for each exam by first creating a range name for the lookup table:

Excel will match on the centre name to find each date.

Create an =HLOOKUP formula in cells E4:E23 to find the exam date for each pupil.

We then want Excel to find a match for the pupil name in cell B26 and complete cells B27:B31 with the correct exam details for that pupil:

Excel will find an exact match in column A for the pupil name.

First create a range name for all the data in your main spreadsheet table (A4:F23).

Also create a range name for cell B26 where you will keep changing the pupil name.

In cell B27 create an exact match lookup formula to return the instrument name from column B (the 2nd column in your lookup table).

Remember - exact match lookup formulae have an extra variable:

=VLOOKUP(Cell to lookup, Table range, Column ref, FALSE)

Copy the formula down to cells B28:B31 and then edit each formula by changing the column reference to return the correct pupil exam data.

Change the pupil name in cell B26 to Petunia L Fox to check that all your formulae work.

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.