20 Spreadsheets
20 Spreadsheets
A spreadsheet model, also known as “what if” scenario or “what if” modelling, is used for data
analysis purposes. They can be financial, mathematical or scientific models.
Rows and columns can be added to a spreadsheet. Rows are added on top of existing ones, and
columns are added to the left. Cells can be added as well, by shifting existing data to the left or
up.
To add rows:
1. Select the row headers of the number of rows you want to add.
2. Right-click on the selected row to open the context menu.
3. Choose Insert.
To delete rows:
1. Select the row headers of the rows to be deleted.
2. Right-click on the selected row to open the context menu.
3. Choose Delete.
To add columns:
1. Select the column headers of the number of columns you want to add.
2. Right-click on the selected row to open the context menu.
3. Choose Insert.
To delete columns:
1. Select the column headers of the columns to be deleted.
2. Right-click on the selected row to open the context menu.
3. Choose Delete.
Cells can be selected by just clicking on them. To select more than one cell, hold down the Shift
key.
Excel 2010 also supports Autofill. This allows cells to be automatically filled up, following an
established pattern.
To use Autofill:
1. Fill up at least two cells
with data in a
recognizable pattern.
2. Select the cells.
3. Select the dot on the
lower right corner of the
cells.
4. Drag down or to the right
to autofill the cells.
Instead of using absolute and relative references, users can also opt to name cells and ranges. A
named range is just a
range of cells in Excel
with a label. To name a
cell or a range of cells,
just select the cell or
range of cells, type a
name in the name box
and press Enter.
Data should be entered as accurately as possible into a spreadsheet, to get the required results.
To ensure that intermediate results are accurate, formulae can be used.
Formulae can be entered into Excel easily, by typing in an = symbol. Some of the common
operators used in formulae are:
Addition – use =B1+B2 to add up the contents of B1 and B2.
Subtraction – use =B1-B2 to find the difference between B1 and B2.
Multiplication – use =B1*B2 to find the product of B1 and B2.
Division – use =B1/B2 to find the results of B1 divided by B2.
Indices – use =B1^B2 to represent B1 to the power of B2.
The above formulae would work with numerical values as well as cell references.
When using copy and paste functions in Excel, formulae will be copied and pasted over if the
original cell contains them. If not, the value in the cell would be copied and pasted to the new
cell.
Formulae can be displayed directly in the cells, instead of results. This can be useful sometimes,
when working with complicated formulae. To show the formula in cells:
1. Go to File > Options > Advanced > Display Options for this Worksheet.
2. Select Show Formulas in Cells instead of Calculated Results.
3. Print the worksheet from here if you’d like to print out the formulae instead of the
results.
4. To revert between show formulae and normal view, the shortcut key Ctrl + ` can also be
used.
As opposed to formulae, functions are predefined formulae that are already included in Excel.
Every function uses the same structure – the “=” sign, followed by the name of the function, and
arguments between brackets. Functions increase user productivity when working with Excel.
Users may not remember all the functions available in Excel. To help with this, users can:
1. Select the cell where the function should appear.
2. Click the Insert Function button.
3. Search for the required function and click OK.
4. Fill in the range and criteria required, and click OK.
The LOOKUP function allows a user to search for a piece of data in a row or column and return a
corresponding piece of data in another row or column. There are three variations of the function
– LOOKUP, VLOOKUP and HLOOKUP.
VLOOKUP is the oldest lookup function. It allows a user to search for information vertically, and
returns data from left the right.
The XLOOKUP function is used to find things in a table or range by row. It can be used to replace
both VLOOKUP and HLOOKUP. It allows users to search to the left or right, and to the top or
bottom. It searches a range or an array, and then returns the item corresponding to the first
match it finds. If no match exists, then XLOOKUP can return the closest match. The basic syntax
for XLOOKUP is =XLOOKUP(lookup_value, lookup_array, return_array, [if_not_found],
[match_mode], [search_mode]).
In the above example, the following formula would be used: =XLOOKUP(A2, $E$2:$E$8,
$F$2:$F$8). Notice that the column index number has been eliminated. Also, XLOOKUP can view
the data left of the selected cell, as a return array is indicated, instead of the column index
number.
A custom value can be defined if no results are found. This can be done using the not_found
argument. If this is not defined, #N/A will appear by default.
The match_mode argument would allow the user to select the type of matches allowed in the
search. By default, the value is set to 0 for exact match. The user can also select -1 for exact
matches or the next value below, 1 for exact match or the next value above, or 2 for wildcard
matches.
Wildcard Character Description Example
? Matches any single character Gr?y finds “grey” and
“gray”
* Matches any sequence of characters Mid* finds “Midwest” and
“Mideast”
~ followed by *, ? Allows filtering cells that contain a What~? finds “What?”
or ~ real ?, * or ~
Lastly, the search_mode argument allows the user to determine the search order. A value of 1
will return the first value found, whilst a value of -1 will reverse the search order and return the
last matching value.
The IF function evaluates a condition and returns one value if it’s true, and another if it’s false.
The syntax for the function is =IF(logical test, [value_if_true], [value_if_false]).
A test plan is created to record various tests performed on a spreadsheet model and their results.
Test the calculator using the following test plan:
Data Data Data Expected Results Actual Results
Entry in Entry in Type
B1 B2
1 2 Normal B4=2
B5=1
B6=2
B7=0.5
B8=1
8 4 Normal B4=12
B5=4
B6=32
B7=2
B8=4096
0 5 Normal B4=5
B5=5
B6=0
B7=0
B8=0
3 0 Normal / B4=3
Abnormal B5=3
B6=0
B7=Error, value undefined
B8=1
To filter data:
1. Select any cell.
2. Go to Data > Sort & Filter > Filter.
3. Drop-down arrows will appear on the column headings. Click on the column heading you
want, and check the boxes of the data required.
4. Uncheck the Blank option if you do not wish to see blank cells.
5. Repeat if there are multiple columns you want to filter with.
Users can also sort data to increase productivity and spreadsheet readability. Data can be sorted:
Alphabetically.
Numerically.
Chronologically.
To sort data:
1. Select a cell in a column you want sorted.
2. Go to Data > Sort & Filter > Sort.
3. Select a suitable sort.
4. Add Level if you would like to add another column to the sort.
5. Click on Options to add in additional features to the sort.
6. Click OK.
How the data is displayed would affect the presentation of the data in the spreadsheet. There
are various options that can be used in Excel to enhance the attractiveness of the data.
Right-clicking on any cell will bring up a menu of selections, including the Format Cells dialog box.
This box is very useful in making changes to how the spreadsheet looks.
The numbers in any cell can be formatted according to taste. There are options to increase or
decrease decimal places, add in currency symbols, convert numbers to dates and times, add in
fractions and percentages, and convert data into scientific notations. These can be completed
through the Format Cells > Numbers selection.
Fonts can be selected through the Home > Font tab., just as in other Microsoft Office
applications. In addition to that font colors can also be changed.
Also, users can opt to add borders to cells. Select the cells required, right-click and select Format
Cells > Borders. Click on the borders you want.
Cells can also be protected from the same menu. There are options to protect the sheet, or to
lock the cell. A password can be set to ensure that only authorized users can access or make
changes.
Page orientation and page setup can be changed by selecting Page Layout on the Ribbon. There
are choices for margins, orientation, size, print area, background and breaks. The terms used
here are all the same as those in Microsoft Word. The only difference is the background option,
which allows the user to select a sheet background for the worksheet.
In Excel, part or all of a worksheet can be printed separately, or the user can opt to print the
whole spreadsheet. Printing is also quite easily done:
1. Set up the print area, using the blue boundary lines.
2. Select the row or column where you want to insert page breaks at.
3. Go to Page Layout > Scale to Fit to fit everything into one page.
4. Ensure both Wide and Tall settings are at 1, and click OK.
20.6 References
CareerFoundry, How to Use the XLOOKUP Function in Excel, Accessed 13 October 2021
Corporate Finance Institute, Basic Excel Formulas Guide, Accessed 11 June 2018
Guru99, Best Excel Formulas & Functions: You Need to Know Now, Accessed 19 June 2018
How-To Geek, How to Set Row Height and Column Width in Excel, Accessed 21 June 2018
Lifewire, How to Add or Delete Rows and Columns in Excel, Accessed 8 June 2018
MBAExcel, Tutorial: How to Decide which Excel Lookup Formula to Use, Accessed 19 June 2018
Microsoft Ignite, Int, Round, RoundDown, RoundUp, and Trunc Functions in Power Apps,
Accessed 13 October 2021
Saint Martin’s University, Basic Spreadsheet Modelling Concepts, Accessed 7 June 2018
TechRepublic, Five Tips for Printing Excel Data More Efficiently, Accessed 21 June 2018