Read our blogs, tips and tutorials
Try our exercises or test your skills
Watch our tutorial videos or shorts
Take a self-paced course
Read our recent newsletters
License our courseware
Book expert consultancy
Buy our publications
Get help in using our site
404 attributed reviews in the last 3 years
Refreshingly small course sizes
Outstandingly good courseware
Whizzy online classrooms
Wise Owl trainers only (no freelancers)
Almost no cancellations
We have genuine integrity
We invoice after training
Review 30+ years of Wise Owl
View our top 100 clients
Search our website
We also send out useful tips in a monthly email newsletter ...
You can find other training resources for the subject of this exercise here:
You can also book hourly online consultancy for your time zone with one of our 7 expert trainers!
| Software ==> | Excel (128 exercises) |
| Topic ==> | Querying data (18 exercises) |
| Level ==> | Relatively easy |
| Subject ==> | Excel training |
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.
Create a new Excel workbook and save it as Top Ten Parameters.xlsx.
Import data from the Top Ten Albums worksheet in the UK Top Ten Albums 2021.xlsx file from the folder shown at the top of this exercise.

The folder contains multiple Excel files but pick just one for now.
Choose to transform the data and make sure each column has a specific data type.

The first few columns you should see.
Now we'd like a parameter to make it easy to switch between files in the Source step of the query.
Select the Source step and, in the formula bar, copy the path of the Excel workbook you imported.

Your path may be different. If you can't see the formula bar, choose View | Formula Bar from the ribbon.
Create a new text parameter called SourcePath and paste the path you copied into the Current Value property

Set up the parameter as shown here.
Edit the Source step of the Top Ten Albums query to use the parameter you've just created.

Set the File path using your parameter.
Edit the value of the parameter to refer to one of the other files in the folder shown at the top of this exercise.

You can edit just the end of the file name to refer to a different year.
Check that the query returns different results.

Try other file names to see the results change.
Create a number parameter called PeakChartPosition and set its current value to 1.

We'll use this to filter the query results.
Add a filter to the Peak column to show rows which match the value of the PeakChartPosition parameter.

Use the parameter in the Filter Rows dialog box.
Edit the value of the parameter and check that it affects the results returned by the query.

Enter a value between 1 and 10 for the parameter.
Typing in a number is too much effort, so let's create a list of numbers to pick from. Create a new blank query as shown below:

Right-click in the Queries list and choose the option shown here.
In the formula bar, use the List.Numbers function to create a list of numbers from 1 to 10.

Enter this code in the Source step of the blank query.
Rename the query as Chart Positions.

The query returns a list.
Choose to manage parameters and use the new query to set the suggested values for the PeakChartPosition parameter.

Use these settings.
Check that you can pick a value from a dropdown list when you edit the parameter.

Much better!
Close and load the query to a table on a new worksheet and then save and close the workbook.
You can find other training resources for the subject of this exercise here:
You can also book hourly online consultancy for your time zone with one of our 7 expert trainers!
Kingsmoor House
Railway Street
GLOSSOP
SK13 2AA
Landmark Offices
99 Bishopsgate
LONDON
EC2M 3XD
Holiday Inn
25 Aytoun Street
MANCHESTER
M1 3AE
© Wise Owl Business Solutions Ltd 2026. All Rights Reserved.