Locked lesson.
About this lesson
Explore some of the methods available in Excel to cut down on the amount of input errors and protect important formulas.
Exercise files
Download this lesson’s related exercise files.
02-05-Methods to Minimize Spreadsheet Errors-Part1-Start.xlsx2.9 MB 02-05-Methods to Minimize Spreadsheet Errors-Part1-Complete.xlsx
2.9 MB 2.05 methods-to-minimize-spreadsheet-errors - Exercise.docx
43.4 KB 2.05 methods-to-minimize-spreadsheet-errors - Exercise solution.docx
87.1 KB Exercise - Methods to Minimize Spreadsheet Errors - Part 1.xlsx
12.2 KB Exercise Solution - Methods to Minimize Spreadsheet Errors - Part 1.xlsx
12.8 KB
Quick reference
Methods to Minimize Spreadsheet Errors: Part 1 - Cell Linking
Understand three of the most common errors and explore how to use cell linking to minimize formula errors.
When to use
Link to cells instead of hard-coding values whenever possible to minimize errors and make formulas easier to audit and update.
Instructions
Worksheet Errors
There are many types of errors that we might come across when working in Excel. We might get an error when typing a formula or we might get a pop-up error when we've entered something incorrectly.
Three common errors are #VALUE, #NAME, and #NA.
#VALUE
The #VALUE error usually occurs when we've selected a cell that doesn't make sense to the formula. For example, if we have a SUM calculation in a cell, =SUM(A1*B1) and A1 contains text, not a number, we will receive the #VALUE error.
In more complicated formulas that refer to several cells, we can make auditing errors easier by using Trace Precedents.
- Click on the cell that contains the formula.
- From the Formulas tab, in the Formula Auditing group, click Trace Precedents.
This will show which cells are being used in the formula making it easier to audit and fix.
- From the Formulas tab, in the Formula Auditing group, click Remove Arrows.
#NAME
The #NAME error usually occurs when Excel does not recognize the function or range name used in the formula. The majority of the time this is down to a simple spelling error. For example, we may have accidentally typed =SOM instead of =SUM.
#NA
The #NA error occurs when the formula cannot find the data we've tried to return. For example, if we are doing a VLOOKUP and using the pizza name to look up the price in the table but the pizza name doesn't exist, we will get an #NA error.
Do Not Hard-Code Values
To minimize the number of errors in a spreadsheet, we shouldn't hard-code values into cells wherever possible.
For example, this calculation, =SUM(A1*20%)+A1 contains a hard-coded value. 20% (sales tax) has been hard-coded into the formula. If the sales tax amount changes, we would need to find all occurrences of 20% in our workbook and update the formulas to reflect the new sales tax amount.
This amount of manual work means errors are more likely.
Instead, it's much better to put the sales tax amount in its own cell and link to the cell in the formula, =SUM(A1*J1)+A1. If we use cell linking and the sales tax amount changes, we only have to update the value in one place and all formulas that link to the cell will automatically update.
Hints & tips
- #NA errors can be left in the spreadsheet but do look messy. Our recommendation is to fix the error or add IFNA error handling to the formula.
Lesson notes are only available for subscribers.