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
529 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 ...
Software ==> | OfficeScripts (21 exercises) |
Topic ==> | Loops (7 exercises) |
Level ==> | Harder than average |
Subject ==> | Office Scripts 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.
Open the Choc Shop.xlsx file and create a new script.
The aim of the exercise is to create a worksheet to summarise the data on four city worksheets.
Write code to do the following:
Delete any existing copy of a worksheet called Summary.
Store an array of existing worksheets in a variable.
Create a new worksheet called Summary and store this in a variable.
Set the value of cell A1 to City.
Copy the values of cells F3:Q3 on the Inputs sheet to cell B1 on the Summary sheet.
Set the number format of the copied dates to dd MMM yyyy.
Apply any other cell formatting you like.
Autofit the columns of the copied cells.
The Summary sheet should look something like this.
Next, loop through the collection of worksheets that you stored in a variable. For each sheet:
If its name is either CoverSheet or Inputs, continue to the next iteration of the loop.
Write the sheet's name to the next blank cell in column A of the Summary sheet.
Copy the values from cells F14:Q14 to the next blank cell in column B on the Summary sheet.
The Summary sheet should now resemble this.
Create a new line chart on the Summary sheet using all of the populated cells on the sheet as the data source.
Set the position of the chart so that it sits below the data it displays.
Set the text of the chart's title to Region Summary.
Loop through the data points of each series in the chart. For each series, add a marker to the highest point in the series.
The final chart might look something like this.
Add any additional formatting to the cells and chart on the Summary sheet.
Save and close the script and workbook.
You can find other training resources for the subject of this exercise here:
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 2025. All Rights Reserved.