Lesson 7
Lesson 7
#####
When your cell contains this error code, the column isn't wide enough to display the value.
1. Click on the right border of the column A header and increase the column width.
Tip: double click the right border of the column A header to automatically fit the widest
entry in column A.
#NAME?
The #NAME? error occurs when Excel does not recognize text in a formula.
#DIV/0!
Excel displays the #DIV/0! error when a formula tries to divide a number by 0 or an empty
cell.
1a. Change the value of cell A2 to a value that is not equal to 0.
1b. Prevent the error from being displayed by using the logical function IF.
Explanation: if cell A2 equals 0, an empty string ("") is displayed. If not, the result of the
formula A1/A2 is displayed.
#REF!
Excel displays the #REF! error when a formula refers to a cell that is not valid.
2. Delete column B. To achieve this, right click the column B header and click Delete.
3. Select cell B1. The reference to cell B1 is not valid anymore.
4. To fix this error, you can either delete +#REF! in the formula of cell B1 or you can undo
your action by pressing CTRL + z
#N/A
The #N/A error appears when the VLOOKUP function (or XLOOKUP, MATCH, etc.) can't find
a match.
1. In the example below, ID 28 cannot be found.
2. Use the IFNA function to replace the #N/A error with a friendly message.
#NUM!
Excel shows the #NUM! error when a formula contains invalid numeric values.
1. For example, the SQRT function below cannot calculate the square root of a negative
number.
1. The formula below returns #NULL! because the two ranges don't intersect.
#SPILL!
If something is blocking a spill range, Excel displays the #SPILL! error.
1. Simply empty cell C6 to fix the #SPILL error.
Note: this dynamic array function, entered into cell C1, fills multiple cells.
Array Formulas
Single cell array formulas perform multiple calculations in one cell.
Without Array Formula
Without using an array formula, we would execute the following steps to find the greatest
progress.
2. Next, we would use the MAX function to find the greatest progress.
Note: the formula bar indicates that this is an array formula by enclosing it in curly braces {}.
Do not type these yourself. They will disappear when you edit the formula.
Explanation: the range (array constant) is stored in Excel's memory, not in a range. The array
constant looks as follows:
{19;33;63;48;13}
This array constant is used as an argument for the MAX function, giving a result of 63.
4. If you're using Excel 365 or Excel 2021, finish by simply pressing Enter. Bye bye curly
braces.
F9 Key
When working with array formulas, you can have a look at these array constants yourself.
2. Press F9.
That looks good. Elements in a vertical array constant are separated by semicolons.
Elements in a horizontal array constant are separated by commas.
DATA ANALYSIS
Sort
You can sort in ascending or descending order.
One Column
To sort on one column, execute the following steps.
Result:
Multiple Columns
To sort on multiple columns, execute the following steps.
1. On the Data tab, in the Sort & Filter group, click Sort.
5. Click OK.
Result. Records are sorted by Last Name first and Sales second.
Filter
Filter your Excel data if you only want to display records that meet certain criteria.
1. Click any single cell inside a data set.
2. On the Data tab, in the Sort & Filter group, click Filter.
4. Click on Select All to clear all the check boxes, and click the check box next to USA.
5. Click OK.
Result. Excel only displays the sales in the USA.
7. Click on Select All to clear all the check boxes, and click the check box next to Qtr 4.
8. Click OK.
11. Right click, and then click Filter, Filter by Selected Cell's Value.
Result. Excel only displays the sales in the USA.
Note: simply select another cell in another column to further filter this data set.
Conditional Formatting
Conditional formatting in Excel enables you to highlight cells with a certain color, depending
on the cell's value.
Highlight Cells Rules
To highlight cells that are greater than a value, execute the following steps.
5. Click OK.
Result. Excel highlights the cells that are greater than 80.
Clear Rules
To clear a conditional formatting rule, execute the following steps.
1. Select the range A1:A10.
Top/Bottom
To highlight cells that are above average, execute the following steps.
5. Click OK.
Result. Excel calculates the average (42.5) and formats the cells that are above this average.
Note: you can also use this category (see step 3) to highlight the top n items, the top n
percent, the bottom n items, the bottom n percent or cells that are below average.
Explanation: always write the formula for the upper-left cell in the selected range. Excel
automatically copies the formula to the other cells. Thus, cell A2 contains the formula
=ISODD(A2), cell A3 contains the formula =ISODD(A3), etc.
Explanation: fixed the reference to column C by placing a $ symbol in front of the column
letter ($C2). As a result, cell B2, C2 and cell D2 also contain the formula =$C2="USA", cell
A3, B3, C3 and D3 contain the formula =$C3="USA", etc.
Charts
A simple chart in Excel can say more than a sheet full of numbers. As you'll see, creating
charts is very easy.
Create a Chart
To create a line chart, execute the following steps.
2. On the Insert tab, in the Charts group, click the Line symbol.
Note: enter a title by clicking on Chart Title. For example, Wildlife Population.
2. On the Chart Design tab, in the Type group, click Change Chart Type.
3. On the left side, click Column.
4. Click OK.
Result:
Switch Row/Column
If you want to display the animals (instead of the months) on the horizontal axis, execute the
following steps.
2. On the Chart Design tab, in the Data group, click Switch Row/Column.
Result:
Legend Position
To move the legend to the right side of the chart, execute the following steps.
Result:
Data Labels
You can use data labels to focus your readers' attention on a single data series or data
point.
4. Click the + button on the right side of the chart and click the check box next to Data
Labels.
Result: