Course Content
Advanced Spreadsheets
This topic covers the ICDL Advanced Spreadsheet module: conditional formatting, advanced functions, charts and tables, data analysis and what-if scenarios, data validation and auditing, macros and templates, and collaboration features.
0/9
Advanced Presentation
This topic covers the ICDL Advanced Presentation module: planning professional presentations, using slide masters and templates, working with graphical objects, charts and diagrams, integrating multimedia and animation, embedding and linking data from other sources, and managing presentations for different audiences.
0/9
Advanced Databases
This topic covers the ICDL Advanced Database module: designing and planning relational databases, creating tables and relationships, developing advanced queries, building forms and subforms, generating complex reports, using macros and SQL for automation, and implementing database security and linking data from external sources.
0/9
Test
Protected: Icdl advanced

Advanced Spreadsheets

Lesson 8 – Auditing, Protection and Macros

This lesson covers tools for auditing formulas, protecting worksheets and workbooks, and recording simple macros to automate repeated tasks. These skills help you keep spreadsheets accurate, secure and efficient.

Overview of Auditing, Protection and Macros in spreadsheet software. Show a clean interface with three labeled sections: Auditing, Protection, and Macros. In the Auditing section, include icons or labels for Trace Precedents, Trace Dependents, and Error Checking. In the Protection section, show options like Protect Sheet, Protect Workbook, and Allow Edit Ranges. In the Macros section, include buttons or icons for Record Macro, View Macros, and Run Macro. Use a white background with blue-gray tones and professional formatting.

1. Formula auditing

Formula auditing tools help you understand how a result is calculated and identify where errors come from.

  • Show precedents (cells feeding a formula) to see which inputs affect the result.
  • Show dependents (cells depending on a formula) to see which cells rely on a given result.
  • Trace errors, following arrows back through the cells involved until the source of the problem is found.
  • Use tools such as Evaluate Formula (where available) to step through a formula part by part.
  • Display all formulas in the worksheet to review logic instead of results (for example, using Show Formulas).

Formula Auditing Tools in a spreadsheet showing Precedents, Dependents, and Show Formulas. Display a spreadsheet interface with cells containing formulas. Use arrows to indicate precedents and dependents between cells. Include a toolbar or ribbon section showing the Formula Auditing options: Trace Precedents, Trace Dependents, and Show Formulas. Use blue and gray tones for clarity and professionalism. Include labels for each tool and highlight active cells.

2. Error checking and handling

Error checking helps you recognise and manage common formula errors.

  • Recognise common error codes:
    • #DIV/0! – division by zero.
    • #VALUE! – wrong type of argument (for example, text instead of number).
    • #REF! – invalid cell reference, often caused by deleting referenced cells.
    • #NAME? – unrecognised function or named range, often due to a spelling error.
  • Use sensible error-handling formulas such as:
    • =IFERROR(formula, “Check data”) – display a friendly message if the formula returns an error.
  • Correct the underlying problem where possible, rather than always hiding errors.

Spreadsheet showing common Excel error codes with IFERROR handling example. Include cells displaying #DIV/0!, #VALUE!, #REF!, and #NAME? errors. Next to each error cell, show a corrected version using IFERROR, such as =IFERROR(A1/B1,"Error") or =IFERROR(VLOOKUP(...),"Not found"). Use a clean white background, blue and gray tones for clarity, and label each error type clearly.

3. Protecting data

Protection features reduce the risk of accidental changes to formulas, layouts or workbook structure.

  • Lock and unlock specific cells, such as locking formula cells while leaving data entry cells unlocked.
  • Protect a worksheet with a password (optional) to prevent accidental changes to locked cells.
  • Protect a workbook structure to stop users adding, deleting, hiding or moving sheets.
  • Understand the difference between:
    • Protection – controls editing within the workbook.
    • File-level encryption / password to open – prevents unauthorised access to the file itself.

Worksheet protection settings showing locked and unlocked cells. Display a spreadsheet interface with a protection settings panel on the right side. Highlight some cells as locked (e.g., with a padlock icon or shaded background) and others as unlocked (e.g., with a green border or open padlock icon). Include a dialog box or sidebar showing protection options such as 'Protect Sheet', 'Allow users to edit ranges', and checkboxes for 'Select locked cells' and 'Select unlocked cells'. Use blue and gray tones for clarity and professionalism.

4. Sharing and file security

Sharing and file-level security options help control how others can view and edit your workbook.

  • Use “Open as Read-Only” where appropriate to discourage permanent changes.
  • Save a workbook with a password to open (file encryption) to protect sensitive information.
  • Use a password to modify if you want people to view the file but not change it without permission.
  • Save a copy in PDF format for distribution so that layout and content cannot be easily edited.

5. Recording simple macros

Macros record a sequence of actions so they can be repeated automatically, saving time on routine tasks.

  • Understand that a macro is a recorded sequence of commands and clicks that can be replayed.
  • Record a simple macro, for example:
    • Applying standard formatting to a data range (bold heading row, borders, number formats, column widths).
  • Choose where to store the macro (current workbook or personal macro workbook, where available).
  • Assign a macro to:
    • A button or shape on the worksheet.
    • A custom toolbar/ribbon button or shortcut key (where permitted).
  • Run a macro to repeat the recorded task with a single click or shortcut.
  • Understand security warnings about macros and the concept of trusted locations and macro security settings.

Spreadsheet interface showing the Macro Recorder dialog and a macro assigned to a button. Display the Macro Recorder window with fields for macro name, shortcut key, store location, and description. Show a spreadsheet with a visible button labeled 'Run Macro' placed on the sheet. Indicate that the button is linked to a macro by showing a small tooltip or label. Use a clean white background and blue-gray tones for clarity and professionalism.

6. Good practice with macros

Good macro practice reduces risk and helps keep workbooks stable and secure.

  • Record macros in a copy of the workbook first, so you can revert if anything goes wrong.
  • Give macros meaningful names (no spaces) so their purpose is clear, for example Format_ReportTable.
  • Add comments or a simple documentation sheet describing what each macro does.
  • Avoid running macros from untrusted sources, as they may contain harmful code.
  • Store important macro-enabled workbooks in trusted, secure locations.

Good Practice Checklist for Macros in spreadsheet software. Display a clean checklist layout with a title at the top: 'Good Practice Checklist for Macros'. Include items such as: 1. Use meaningful macro names, 2. Add comments to explain steps, 3. Test macros on sample data, 4. Save a backup before running, 5. Use relative references when needed, 6. Avoid hard-coded values, 7. Protect sheets before running destructive macros, 8. Document macro purpose and usage. Use checkboxes next to each item and a white background with blue-gray tones for clarity.

7. Practical Activity

Complete this activity to apply the lesson skills.

  1. Open a worksheet with one or more complex formulas and use Trace Precedents to follow the arrows from the result cell back to the input cells.
  2. Use Trace Dependents on a key input cell to see which results rely on it.
  3. Protect a worksheet so that only designated data entry cells can be edited while formulas remain locked.
  4. Save the workbook as a PDF for sharing with others.
  5. Record a macro that formats a data table (bold heading row, borders, and number formatting for currency columns).
  6. Assign the macro to a button on the sheet and test it by applying the formatting to an unformatted copy of the table.

Practical activity completed in spreadsheet software showing protected sheet and formatting macro button. Display a spreadsheet with a data table where the heading row is bold, currency columns are formatted, and borders are applied. Show a macro button labeled 'Format Table' placed near the table. Indicate that the sheet is protected by showing a padlock icon or message, with some cells editable and others locked. Use blue-gray tones, a clean white background, and professional layout.