05 FCS Advanced Spreadsheets
05 FCS Advanced Spreadsheets
Computer
Skills
(FCS-SS)
Advanced Spreadsheet Skills
i
Case: GO-Travel
GO-Travel is a business run by an enterprising student, Zach Batyi. He is the representative on-campus for a
national travel agency. He uses his computer for record keeping, communication and to keep track of his
business opportunities. Zach is not a computer expert, and has employed you to set up all the various types of
documents he needs to run his travel agency effectively.
Zach needs spreadsheets to list the packages he sells, calculate sales, budget, determine his commission and
work out savings plans. He needs different word processing documents for marketing and sales. He needs to
keep track of his client database and select relevant information on a query. Finally, he needs to be able to link
information from various sources in single documents.
ii
FCS Spreadsheets 1 Workbook Data Security
When you first create an Excel workbook, you might assume that you will always be the only person to work with
the file, and therefore would never need some security in place. This might not always be the case.
It is useful to use the built-in features to check that data entered into the workbook satisfy certain criteria. You
can also protect the formulas in the workbook from accidental deletion or modification.
SS-1
FCS Spreadsheets 1 Workbook Data Security
A. Data Validation
The Excel data validation feature can be used to make sure that the correct type of data is entered into a cell or
range of cells. This feature can assist users of a workbook to know what type of data needs to be entered by
displaying an error message if the incorrect type of data is entered or by displaying a message on input to specify
the type of data that can be entered.
To implement data validation, you create a validation rule that defines the type of data that can be entered. This
includes data types such as whole numbers, dates, time or text as well as a range of acceptable values (for
example, whole numbers between 10 and 120).
An input message appears when a user clicks on the cell, providing information about the type of data allowed
in the cell.
1. Select DATA tab, Data Validation button.
2. Click the Input Message tab.
SS-3
FCS Spreadsheets 1 Workbook Data Security
1. Select DATA tab, click the arrow on the Data Validation button to view additional
options.
2. Click the Circle Invalid Data option .
3. Circles will appear around cells that contain invalid data.
4. If you enter valid data into a cell, the circle around it will disappear.
5. To hide the circles without changing the data, select the Clear Validation Circles option from the Data
Validation button drop down list.
Exercise 1.1:
Validating Data Entry
You want to help Zach with the data entry by setting validation rules and providing messages on the cells
where he needs to enter data, namely client names, dates and hours.
1. Download and open the FCS Excel Lesson 1 data file from SMark, SeaBreezeCruises-student
number.xlsx
2. Select the Sales sheet.
3. Select the cells where the client names will be entered: A10:A15 – note: do NOT do data validation
on the heading for each range; only the data.
4. Create an input message to tell Zach to enter the client’s surname here:
• Select DATA tab, Data Validation button.
• Click the Input Message tab.
• Make sure the Show input message when cell is selected check box is checked.
• Enter the Title as Client.
• For the Input message enter the words: Enter the client initials surname
• Click OK.
• Click on any of the cells in A10:A15 and check that your Input message shows. Also check
that the message does not show when you click on A9 or A16 or anywhere in column B!
5. Now set a validation rule to make sure Zach can only enter a date into the column for dates. The
rule will also state that the date has to be after today.
• Select cells B10:B15.
• Click DATA tab, Data Validation button.
• Click the Settings tab.
• Click the Allow list arrow and select Date.
• Choose the Data option greater than.
• Enter the Start Date as 26 July 2020 (type it using the long format as given).
6. Now, with the Validation Rule dialog box still open, set up an input message for the date cells:
• Click the Input Message tab.
• Make sure the Show input message when cell is selected check box is checked.
• Enter the Title as Date.
• For the Input message enter the words: Enter the date for which the cruise is booked.
• Select OK.
• To check your validation rule, enter yesterday’s date in cell B10 and see what happens.
Change the date to tomorrow’s date and see what happens. Once you are happy that your
validation rule is working correctly, delete any checking data you typed in column B.
7. Create a validation rule for the hours column, so that Zach can only enter 1, 2 or 3 hours:
SS-4
FCS Spreadsheets 1 Workbook Data Security
SS-5
FCS Spreadsheets 1 Workbook Data Security
Pre-set options are a quick way of selecting a rule and the selecting how the cell content should be
displayed, for those cells that match the rule – use this table as a reference to find the type of conditional
formatting rule that you want:
Rule Set Rule Explanation: Applies formatting choice to all cells where …
Highlight Cells Rules Greater Than… the values are > the value given
Less Than… the values are < the value given
Between… the values are between the values given – includes both given values
Equal to… the values = the value given
Text that Contains… the text contains the text given – at the start, middle or end
A Date Occurring… the dates are selected, relative to the current date – e.g. yesterday,
next week, last month
Duplicate Values… the same values are also in another cell within the range
Top/Bottom Rules Top 10 items… the highest 10 items in the range are selected – you can change the
number of items
Top 10 %... the highest 10% of items in the range are selected
Bottom 10 items the lowest 10 items in the range are selected
Bottom 10 %... the lowest 10% of items in the range are selected
Above Average… the values in the range are higher than the average of the range
Below Average… the values in the range are lower than the average of the range
SS-6
FCS Spreadsheets 1 Workbook Data Security
Rule Set Rule Explanation: Applies formatting choice to all cells where …
Data Bars Gradient Fill a mini bar-chart is created using a gradient colour
Solid Fill a mini bar-chart is created using a solid colour
Colour Scales ~ the cells are filled with different colours, depending on their value
Icon Sets Directional
Shapes icons are added to each cell, depending on how the numbers relate
Indicators to each other
Ratings
3. Click on the type of rule set and select one of the options.
4. If necessary, add the value(s) to be used in the comparison, select the type of formatting and click OK.
Exercise 1.2:
Use Pre-Set Conditional Formatting Rules
You want to help Zach with the data analysis by highlighting certain values to provide easy use of the
information.
10. Return to the SeaBreezeCruises-student number.xlsx, saved at the end of Exercise 1.1.
11. Select the Sales sheet.
12. Open the SeaBreezeCruisesData.xlsx file (available in the FCS Data Files\05 Spreadsheets folder in
Learning Material). Copy the Client, Date and Hours data (i.e. do NOT include the headings) from
the Data file and use Paste, Value (see Paste Tip below) to paste these values into your 1-1 workbook
in cells A10:C15.
Paste Tip
When you just click on the Paste button on the HOME tab, the source formatting
is carried over to the destination cells. When you want to maintain the current
destination formatting (e.g. the Data Validation Rules that you have already set
up), you need to use one of the other Paste options. In this case, click on the
down-arrow below the Paste button and select the Values (V) option in the Paste
Values group.
If you have used the wrong option and erased all your validation rules, click on
the Undo button to return your 1-1 to its original state and re-do the Paste using
the correct option.
Check that your data validation rules are still there, before you continue.
13. Now that you have checking data in your workbook, let us fix some basic formatting issues to make
the worksheet easier to read:
• Centre-align the Hours values in A2:A4 and C10:C15 (see Selection Tip below) – always be
careful about ONLY selecting the specific cells and NOT any adjacent cells.
• Use Format Painter to copy the date format from cell B10 to the other dates in B11:B15.
• Change the money amounts in cells B2:B4 and D10:G15 to the Currency Number format.
• Wrap the label in G9 so that the whole label can be seen, without changing the column width.
• Select columns D:G and then double-click the line between any two of these column labels –
e.g. F | G – to ensure that the columns use an efficient amount of space to display the content;
not too wide and not too narrow.
SS-7
FCS Spreadsheets 1 Workbook Data Security
Selection Tip
When you want to apply an action to a number of non-adjacent cells, you can use the Ctrl button
on the keyboard, to select more than one non-adjacent cell or range, before selecting the formatting
that you want to apply to all those cells: Select the first cell or range of cells using your mouse, then
hold down the Ctrl button on your keyboard and select the additional cell(s) or range(s) of cells,
using your mouse.
14. Create a conditional formatting rule to show Zach at a glance, which bookings are for more than 1
Hour:
• Select the Hours data range – C10:C15 (note that you do NOT want to select the entire column
or include the heading in the range).
• Select HOME tab, Conditional Formatting button.
• Point to the Highlight Cells Rules option and then click on the pop-up Greater Than… option.
• Change the value to be greater than 1 and select the Yellow Fill with Dark Yellow Text pre-set
formatting option. Before you click OK, check the C10:C15 range to see if the rule will do what
you want, as the rule is applied to the cells as you make changes to the pop-up window’s
selections.
• You realise that the formatting you chose is not really appropriate and difficult to see, so
change the formatting selection to the Green Fill with Dark Green Text and re-check the display.
• Once you are happy with your formatting selection, click OK so that the rule is applied
permanently. If you click on Cancel at this point, the display will return to the original
formatting.
15. Set another conditional formatting rule, to highlight any bookings for Next Month, using the Date data
range and the Red Border pre-set formatting option. Use the table above to find the required pre-
set option and the process in 13 above to do the task.
16. Use the pre-set Colour Scale conditional formatting rule to display the Commission Amt data, using
the Green-Yellow-Red Colour Scale.
17. Set a conditional formatting rule of your choice on the Profit Amt data range – experiment with a few
different types – e.g. set Gradient Fill Purple Data Bars
18. Save the workbook as SeaBreezeCruises-student number.xlsx but keep it open as you will be using
it again in Exercise 1.3.
SS-8
FCS Spreadsheets 1 Workbook Data Security
2. Click the Conditional Formatting button on the HOME tab, and select the New Rule option.
Exercise 1.3:
Create & Edit Customised Conditional Formatting Rules
You want to add some customised formatting to help Zach with the data analysis by highlighting certain
values to provide easy use of the information.
19. Return to the SeaBreezeCruises-student number.xlsx, saved at the end of Exercise 1.2.
20. Select the Sales sheet.
21. Create a conditional formatting rule to show Zach at a glance, which bookings are for R500 only –
i.e. any customer who has booked for a 1-hour cruise.
• Select the Cost data range – C10:C15.
• Select HOME tab, Conditional Formatting button.
• Click on the New Rule… option.
• Click on the Format only cells that contain rule type and edit
the rule descriptions as follows:
Use the drop-down arrow to select that you want the Cell
value to be equal to
Type 500 in the next text-box
Click on the Format button and select the Fill tab:
Select the light blue colour indicated above and then
click OK
Click OK
SS-9
FCS Spreadsheets 1 Workbook Data Security
22. You realise that you want to highlight the same cells, even if the cost for a 1-hour cruise changes,
so you need to edit the above rule to refer to the value in cell B2:
• Select the Cost data range – C10:C15.
• Select HOME tab, Conditional Formatting button.
• Click on the Manage Rules… option.
• Click on the Edit Rule… button, change the value 500 by clicking on the cell-reference selector,
then click on cell B2 and close the Edit Formatting Rule pop-up by clicking on the selector
again or the X. Click OK, click on Apply and then click on OK.
23. Set a New Rule… using the Total data range of F10:F15.
• Select the Use a formula to determine which cells to format Rule Type and type the following
formula in the Format values where this formula is true text box (ensure that no absolute cell
addressing used):
=50%*F10>450
• Select that the Font used in the cells where the formula is true, uses the Standard Colour
Purple. Click OK twice.
Your worksheet should look something like the following (your experimental Profit Amt data could be
formatting differently, depending what you did earlier):
24. Save the workbook as SeaBreezeCruises-student number.xlsx but keep it open as you will be using
it again in Exercise 1.4.
SS-10
FCS Spreadsheets 1 Workbook Data Security
Exercise 1.4:
Manage Formatting Rules
You want to manage some of the conditional formatting rules that you have set and set priorities of rule
application.
25. Return to the SeaBreezeCruises-student number.xlsx, saved at the end of Exercise 1.3.
26. Select the Sales sheet.
27. Clear whatever rule you have applied to the Profit Amt data range:
• Select the Profit Amt data range –E10:E15.
• Select HOME tab, Conditional Formatting button.
• Point to the Clear Rules… option, then click on the Clear Rules from Selected Cells option. If
you accidently click on the option Clear All Rules from the Entire sheet and all your conditional
formatting rules disappear, just click UNDO to restore the status of the worksheet and try
again.
28. Add the pre-set Data Bars rule to the Profit Amt data range, using Gradient Fill, Purple Data Bars.
The data will display as indicated in the example at the end of Exercise 1-3.
29. Set a customised New Rule… on the same set of data, to fill the highest profit amounts in a
different colour:
• Go to the Conditional Formatting, Manage Rules… dialogue box
• Click on the New Rule… button
• Select the Format only top or bottom ranked values and edit the Rule Description settings to
Top 1 (not 10) and format the display to Fill using the Standard Colour Light Blue. Click OK.
• Select this new rule and use the down arrow (next to the Delete Rule button) to move the new
rule below the Data Bars rule and click Apply.
If you look carefully, you will see that the highest values in cells E10 and E12 have a
light blue top and bottom border – but this is not particularly clear.
• Click on the Top 1 rule and check the Stop if True box on the right and click Apply –
this means that the display for each cell will stop if the Top 1 rule is true. But you will
notice that this made no difference to the display because the Data Bars rule is done
first.
• Move the Top 1 rule up so that it is the first rule in the list and click Apply. Notice how
the cells containing the highest values in the range (E10 and E12) do not get
SS-11
FCS Spreadsheets 1 Workbook Data Security
overwritten with the Data Bars formatting rule, because the conditional formatting for those
cells will stop once the Top 1 rule is true.
• Click OK.
30. Save the workbook as SeaBreezeCruises-student number.xlsx, but keep it open as you will be using
it again in Exercise 1.5.
SS-12
FCS Spreadsheets 1 Workbook Data Security
• Select all the actions that users will be allowed to do when working on the protected sheet.
Default options.
• Select OK.
Exercise 1.5:
Protecting Cells in a Worksheet
You have set up the validation & conditional formatting rules for the data that Zach will need to enter into
the Sea Breeze Cruises workbook. Now, you want to protect the cells containing labels and the formulas
that calculate total cost and commission, so that he will not change them by mistake, but can still enter
data into the cells for client names, dates and hours. In this way, you can both be sure that the
calculations will be accurate.
31. Return to the SeaBreezeCruises-student number.xlsx, saved at the end of Exercise 1.4
32. Unlock the cells that will have data entered:
• Select the Sales sheet.
• Select the range containing the client name, date and # hours.
• Select the Format button in the Cells group on the HOME tab.
• Select the Format Cells… option at the bottom of the list.
• Click the Protection tab.
• Deselect the Locked check box.
• Click OK
• Deselect the cells.
33. Now protect the workbook, without a password, but do NOT allow the selection of locked cells. In
this instance, you do not want to use a password, because the protected data is not confidential
and as you will not be working regularly with the workbook, you may forget the password.
• Select REVIEW tab, Protect Sheet.
• De-select the checkbox for Select Locked cells.
• Select OK.
• The workbook is now protected so that only the range A10:C15 can be edited. Because you
did not set a password, it can be unprotected by any user that knows how to do it, without
needing to worry about a password. Click on surrounding cells to check – you should not be
able to select any cells outside the range A10:C15.
34. There is an alternative method to protect a workbook and only allow certain cells to be available to
the user is as follows – BUT, make sure that you follow ALL the steps and do NOT skip a step!
Please note that there is better control of where the user can click with the Cells Unlock method
than this one.
• Select the Documentation sheet.
• Select B3:C10.
• Unlock this data range – see method in 32 above.
• Select REVIEW tab, Allow Users to Edit Ranges.
SS-13
FCS Spreadsheets 1 Workbook Data Security
• In the pop-up window, do NOT change anything, (especially the name for SMark purposes) –
just click OK.
• Do NOT click OK – always click the Protect Sheet … button, and then in the Protect Sheet
dialogue box, for this type of protection, make sure that Select Locked Cells is checked, and
only then should you click OK.
35. Save the workbook as SeaBreezeCruises-student number.xlsx and CLOSE the file.
36. Upload your solution to the SMark project FCS Excel Lesson 1 and CHECK the feedback report, to
ensure that you completed this set of exercises 100% correctly. If not:
i. Return to the relevant concept explanations to improve your understanding
ii. Check that you have followed the relevant Exercise instruction exactly.
SS-14
FCS Spreadsheets 2 Working with Multiple Sheets & Workbooks
When you first create an Excel workbook, it automatically contains three worksheets. You can use one or all of
these and also add, delete and change the order of the sheets. These sheets, by default named Sheet1, Sheet2
and Sheet3, can be given names relevant to the data they contain. You can change this default setting so that
a new workbook will contain the number of sheets you prefer.
If more than one sheet contains the same data or calculations, for example, sales figures for each month are on
a different sheet, but follow the same format, you can enter data in all the monthly sheets at the same time.
It is useful to have the first sheet as a documentation sheet, which gives the names of the other sheets and a
description of what they contain. You move between the sheets by clicking the sheet tabs at the bottom of the
workbook window.
You can enter and edit data on one or more worksheets simultaneously and perform calculations using data
from more than one worksheet. Data entered once, can be extracted and referenced on different worksheets or
workbooks.
Using multiple worksheets allows you to break your data up into smaller sections, rather than have all your data
on one large, unmanageable worksheet. In one workbook, you could have a number of different worksheets,
each containing related data.
Case: Go-Travel
In this lesson, you will set up different sheets in a single workbook for Zach, as well as work with sheets from
different workbooks, to divide the GO-Travel data into related sections. This will assist Zach to minimise data
entry and standardise the formatting of the different sheets.
SS-15
FCS Spreadsheets 2 Working with Multiple Sheets & Workbooks
1. Click Rename then type a new name for the sheet, and press Enter or click anywhere else in the
worksheet to complete the operation.
2. Click Delete to remove the sheet you have right-clicked.
3. Click Insert then OK to insert a new blank worksheet to the left of the sheet you have right-clicked.
4. Click Move or Copy if you wish to create a new worksheet that is a copy of the sheet you have right-clicked.
SS-16
FCS Spreadsheets 2 Working with Multiple Sheets & Workbooks
Tip
In the same way that you can enter formulas and text in one sheet of a group, you can apply
formatting and print options to all sheets in a group simultaneously.
Exercise 2.1:
Grouping Worksheets
A workbook has been begun for GO-Travel to keep track of monthly sales. Worksheets have been created
for the first three months of the year (January, February and March) containing a structure or design for
the information. Each of these worksheets will need to contain the same calculations or formulas, but
these have not yet been entered. The first step is to group the three adjacent sheets.
1. Download and open the FCS Excel Lesson 2.1 data file from SMark, GOTravelSales-student
number.xlsx
2. Click on the January sheet tab.
3. Press and hold the Shift key.
4. Click on the March sheet tab.
5. Release the Shift key. You can see that all 3 sheets are selected and Excel also adds the [Group]
indication to the title bar at the top of the window.
6. Save the workbook as GOTravelSales-student number.xlsx but keep it open as you will be using it
again in Exercise 2.2.
SS-17
FCS Spreadsheets 2 Working with Multiple Sheets & Workbooks
Exercise 2.2:
Entering Formulas in a Worksheet Group
The values or data have not yet been entered into the GO-Travel monthly sales sheets. First, the structure
or design of each sheet will be completed by entering the formulas necessary for the calculations. You
will do this by entering the formulas into the relevant cells of one of the grouped sheets. Because the
sheets are grouped, it makes no difference which of the sheets you edit, as the formulas will be entered
into all the sheets.
7. Return to the GOTravelSales-student number.xlsx, saved at the end of Exercise 2.1.
8. Make sure that the three sheets (January, February and March) are still grouped.
Tip
Remember that when you edit anything on a grouped sheet, the same change will automatically be
made in the other sheets in the group. If you want to change something on only one sheet (even
entering or deleting values), first ungroup the sheets.
9. A formula needs to be entered to calculate the Total Cost for each client. The total cost will be the
cost per person sharing (pps) multiplied by the number of people.
10. Click cell E4 and enter the formula: =C4*D4.
11. Copy the formula for the rows that have been allocated for client data: E4:E20. After copying the
formula to the rows below, the bottom border of the last cell might be gone. Just redo the border
setting, to keep your worksheet looking good.
12. The Monthly Total also needs to be calculated. This will be the sum of the total costs for all clients.
13. Click cell E22 and enter the formula: =SUM(E4:E20).
14. With the sheets still grouped, click on each of the tabs (January, February and March) in turn to see
that formulas have been entered into each sheet.
15. Save the workbook GOTravelSales-student number.xlsx but keep it open as you will be using it
again in Exercise 2.3.
Tip
When you enter formulas prior to entering the values or data with which the formulas will be
calculating, the result of the formula is usually displayed as zero (0). To see the actual formulas,
hold down the CTRL key and press the ~(tilde) key (above the Tab key). Repeat this action to
hide the formulas again.
SS-18
FCS Spreadsheets 2 Working with Multiple Sheets & Workbooks
Exercise 2.3:
Formatting and Printing a Worksheet Group
Set up the grouped sheets in the GO-Travel workbook so they are well-presented and easy to read when
printed.
16. Return to the GOTravelSales-student number.xlsx, saved at the end of Exercise 2.2.
17. Make sure that the three sheets (January, February and March) are still grouped.
18. Apply the Currency format to the Cost column (C4:C20), the Total Cost column (E4:E20) and the
Monthly Total amount (E22).
19. Apply Standard Colour: Orange shading to alternate rows from A4:E4 to A20:E20, starting in row 4.
Tip
There are a few different shortcuts for applying the same formatting to non-adjacent ranges of cells:
• Apply the formatting once, then use the FormatPainter to apply the formatting to the other
ranges.
• Apply the formatting once, then select the next range and press the Repeat key F4.
• Press the Control key then select each range until all the cells in each non-adjacent range are
selected, then apply the formatting.
SS-19
FCS Spreadsheets 2 Working with Multiple Sheets & Workbooks
E. Ungrouping Worksheets
It is useful to group worksheets at the design stage, to enter the same formulas and apply formatting and printing
options to all the sheets simultaneously. However, each of the sheets in the group usually contains different
data or values. Once you have set up the structure and formatting of the sheets, and are ready to enter the data,
it is therefore necessary to ungroup the sheets.
Worksheets that are grouped together are identified by their tabs all being selected. To ungroup worksheets:
• Click the sheet tab of any worksheet not in the group.
• Or right-click the sheet tab of one of the sheets in the group and select Ungroup Sheets on the short-cut
menu.
Exercise 2.4:
Entering Formulas using a 3-D Reference
In the previous exercise, you set up the Monthly Sales worksheets for GO-Travel’s First Quarter sales:
January, February and March. In this exercise you will create a summary sheet (First Quarter) that uses
the values on each of these sheets to work out the totals for the first quarter.
30. Return to the GOTravelSales-student number.xlsx, saved at the end of Exercise 2.3.
31. Insert a new worksheet after the March worksheet:
• Click on the New Sheet button.
• Name the sheet First Qtr (right-click the sheet tab, select Rename, then type the name and
press Enter).
32. Enter the heading for the sheet: First Quarter into cell A1 and format the text to bold.
33. Enter the labels for the summary data:
• In cell A3: Total Sales
• In cell A4: Monthly Average
34. Make the labels Bold and widen column A so the text fits.
Tip
Double-click the column separator to widen the column automatically to the width of the longest
text or value in the column.
SS-20
FCS Spreadsheets 2 Working with Multiple Sheets & Workbooks
35. Enter the formula for the Total Sales in cell B3:
• =SUM(
• To enter the range from the multiple worksheets, click the January sheet tab, then shift-click
the March sheet tab and click on cell E22.
• Complete the formula by clicking the Enter button on the formula bar or pressing the Enter
key. View the 3-D formula you entered in cell B3.
36. Enter the formula for the Monthly Average in cell B4:
• =AVERAGE(
• To enter the range from the multiple worksheets, click the January sheet tab, then shift-click
the March sheet tab and click on cell E22.
• Complete the formula by clicking the Enter button on the formula bar or pressing the Enter
key. View the 3-D formula you entered in cell B4.
37. Save the workbook as GOTravelSales-student number.xlsx but keep it open as you will be using it
again in Exercise 2.5
Formats to copy
formatting without the
cell contents
4. Choose the relevant Fill option.
5. Select OK.
6. The values and/or formatting will be applied to each of the worksheets in the group, except for the column
widths. These remain the default width and you will need to adjust as necessary.
Exercise 2.5:
Copying Information across Multiple Worksheets
Set up the monthly sales sheets for the Second Quarter (April, May and June) by copying the structure
and formatting of the first quarter’s sheets.
38. Return to the GOTravelSales-student number.xlsx, saved at the end of Exercise 2.4.
39. Insert three new worksheets after the First Quarter sheet, naming them April, May and June
respectively.
40. Enter the headings in cell A1 of each sheet: April Sales, May Sales and June Sales.
41. Group the three new sheets and the January sheet:
• Click the April sheet tab, then shift-click the June sheet tab.
• Control-click the January sheet tab.
SS-21
FCS Spreadsheets 2 Working with Multiple Sheets & Workbooks
42. With all the sheets grouped, select the January sheet tab and select the range to copy: A3:E22.
43. On the HOME tab, select the Fill button from the Editing group and select Across Worksheets.
44. Choose All.
45. Select OK.
46. Adjust the column widths on the sheets April, May and June.
47. With the sheets still grouped, select the January sheet tab, select cell A1. Select the Fill button,
Select Across Worksheets, Choose Formats. Click OK. Look at each of the April, May and June
sheets to see the formatting of the heading in cell A1 that has been filled across the sheets.
48. Save the workbook as GOTravelSales-student number.xlsx and CLOSE the file.
49. Upload your solution to the SMark project FCS Excel Lesson 2.1 and CHECK the feedback report, to
ensure that you completed this set of exercises 100% correctly. If not:
i. Return to the relevant concept explanations to improve your understanding
ii. Check that you have followed the relevant Exercise instruction exactly.
SS-22
FCS Spreadsheets 2 Working with Multiple Sheets & Workbooks
2. Select the Arrange option you want to use: Tiled, Horizontal, Vertical or Cascade
3. Make sure the Windows of active workbook option is NOT checked. This is to arrange multiple windows
within a single workbook (for example if you have split a workbook window).
4. Click OK
5. If you wish to undo the arrangement, simply Maximise each window.
6.
Exercise 2.6:
Entering Formulas using an External Reference
Set up a workbook that summarises GO-Travel’s monthly income and expenses.
Zach’s monthly income is 12% commission on all sales. His expenses include his phone account, his
email and internet and stationery. He also pays 29% tax on his income. Zach has started setting up a
workbook called Income.xlsx
1. Download and open the FCS Excel Lesson 2.2 data file from SMark, Income-student number.xlsx
2. Zach has already created the documentation sheet and inserted the labels and data for the First
Quarter worksheet as shown below:
3. To calculate each month’s commission, you will need to reference the total sales for each month.
You will find this in GOTravelSalesData.xlsx in the FCS Data Files\05 Spreadsheets folder. Open
this workbook.
4. Arrange the two workbooks so they are tiled on your screen: select View tab, Arrange All, Tiled, OK.
5. Enter the formulas to calculate January’s commission in cell B8:
• =B3*
• Then switch to the January worksheet in the GOTravelSalesData.xlsx workbook.
• Click on the Monthly Total, E22.
• Enter to complete the formula.
SS-23
FCS Spreadsheets 2 Working with Multiple Sheets & Workbooks
6. In the same way, enter the formulas for the February and March commission:
• Cell C8 : =B3*’[GOTravelSalesData.xlsx]’February!E22
• Cell D8 : =B3*’[GOTravelSalesData.xlsx]’March!E22
7. Enter the formulas for the other calculations as follows, using the appropriate cell references in
each formula:
• B14: =commission*tax percentage(absolute reference)
• B15: =sum(all expenses)
• B17: =commission-total expenses
• Now fill these formulas to the right to columns C and D.
• E8, E11 and E17: =sum(amounts for each month)
• Fill the formula in E11 to E12:E14.
8. Save the workbook as: Income-student number.xlsx and CLOSE the file.
9. Upload your solution to the SMark project FCS Excel Lesson 2.2 and CHECK the feedback report, to
ensure that you completed this set of exercises 100% correctly. If not:
i. Return to the relevant concept explanations to improve your understanding
ii. Check that you have followed the relevant Exercise instruction exactly.
SS-24
FCS Spreadsheets 2 Working with Multiple Sheets & Workbooks
SS-25
FCS Spreadsheets 3. Working with Excel tables
A table in Excel is a range of data in a worksheet structured into rows and columns, and identified as a table.
Data in an Excel table can be:
• Sorted alphabetically or numerically;
• Filtered to show only the data that matches certain criteria; and
• Rows can be added for totals.
You would use the Excel tables feature to manage (store, edit, sort) and analyse (summarize and compare)
related data.
Case: Go-Travel
In the worksheet shown below, Zach has entered information relating to different travel packages that are
available. This is the type of information that can be managed well using Excel tables. In this lesson, you will
create a table from this data and organize the data records it contains.
SS-26
FCS Spreadsheets 3. Working with Excel tables
• The table has also had a table style (based on your current Theme) applied to the area.
• Each field name shows an AutoFilter arrow next to the name in the header row (refer to Filtering
Tables later in this section). These allow you to quickly sort or filter the list data.
SS-27
FCS Spreadsheets 3. Working with Excel tables
Exercise 3.1:
Creating a Table Range
Zach, of Go-Travel, has entered information into a worksheet relating to different travel packages that
are available. This information needs to be created as a table range.
1. Download and open the FCS Excel Lesson 3.1 data file from SMark, GoTravel-student number.xlsx
2. Click any cell within the range A3:H28.
3. Select the INSERT tab, and then click the Table button - Check that the correct range
$A$3:$H$28 is displayed in the dialog box, and adjust if necessary.
4. Make sure the checkbox specifying that the table has headers is selected.
5. Select OK to create the table range.
6. Save the workbook as GoTravel-student number.xlsx but keep it open as you will be using it again
in Exercise 3.2.
Exercise 3.2:
Freezing Rows and Columns
Freeze the first column and the header row of the list range in the GO-Travel worksheet.
7. Return to the GOTravel-student number.xlsx, saved at the end of Exercise 3.1.
8. Click in cell B4.
9. Select the VIEW tab, Freeze Panes tool, click Freeze Panes.
10. Scroll down and right to see how labels remain in place and the rest of the data scrolls.
11. Save the workbook as GOTravel-student number.xlsx but keep it open as you will be using it
again in Exercise 3.3.
SS-28
FCS Spreadsheets 3. Working with Excel tables
Exercise 3.3:
Using Find and Replace
The travel company BEA which operates some of the tours offered by GO-Travel has changed their name
to BEA Inc. Use Find and Replace to update the information in the GO-Travel worksheet.
12. Return to the GOTravel-student number.xlsx, saved at the end of Exercise 3.2.
13. Select the Company data (column B).
14. On the HOME tab, Editing group, select Find & Select, then click Replace.
15. In the Find what box, type BEA.
16. Type BEA Inc in the Replace with box.
17. Select Replace All.
[NOTE: If you did not select the Company data first, all occurrences of the letters bea in the entire
worksheet will be replaced.)
18. Click OK, then click Close.
19. Save the workbook as GOTravel-student number.xlsx but keep it open as you will be using it again in
Exercise 3.4.
E. Sorting Data
To rearrange the records in a table, you can sort them:
• based on the data in one or more fields (columns) in the table;
• alphabetically or numerically; and
• in ascending (A-Z, smallest to largest) or descending (Z-A, largest to smallest) order.
SS-29
FCS Spreadsheets 3. Working with Excel tables
3. The records will be sorted according to the column you have selected.
3. Select the primary sort field (most important) from the Sort by drop-down list, whether you want to sort
by Values, colours or icons and whether you want Ascending or Descending order.
4. Click the Add Level button to add a secondary sort level.
5. Select a secondary sort field in the Then by list.
6. You can continue to add levels until you have defined your sort as thoroughly as you wish.
7. Select OK once you are ready to sort the records in the table.
Exercise 3.4:
Sorting Data
Sort the GO-Travel worksheet so that the available packages are grouped together by package duration,
that is, all the 2 night tours together, then the 3 night tours, and so on.
20. Return to the GOTravel-student number.xlsx, saved at the end of Exercise 3.3.
21. Click the AutoFilter arrow for the Duration column.
22. Select the order you require: Sort A-Z. The data is sorted based on the information in the Duration
column.
23. In order to have the information sorted on more than one column: by Destination, then by the
Company offering the package, then by Package Name, all in ascending alphabetical order (A-Z), do
the following:
SS-30
FCS Spreadsheets 3. Working with Excel tables
SS-31
FCS Spreadsheets 3. Working with Excel tables
Exercise 3.5:
Inserting, Deleting and Finding records in a table
Make the following changes to packages that GO-Travel has available.
33. Return to the GOTravel-student number.xlsx, saved at the end of Exercise 3.4.
34. Add a record at the end of the table range, using the Insert Row method:
• Click in cell A29.
• Enter the code: peum
• Go to cell B29 and enter the Company: SA-Bus
• In cell C29 enter the Package Name: PE-Umtata
• In cell D29 enter the Destination: Bus Route
• In cell E29 enter the Mode: Luxury Bus
• In cell F29 enter the Duration: day
• In cell G29 enter the Cost: R170
• In cell H29 enter the Period: Jan-Dec
35. Press Enter or click in any other cell to complete entry of the new record.
36. Add the Form button on the Quick Access Toolbar.
37. Add a new record using the Data Form:
• Select any cell in the table range.
• Click Form on the Quick Access Toolbar.
• Select New to show a new blank record in which you can enter new data.
• Type in the record data as shown below, using Tab or the mouse to move to the next field:
Code: mep Mode: Drive
Company: AfriTour Duration: 2 nights
Package Name: Mid-week Escape – Plett Cost (pps): R1265
Destination: Plettenberg Bay Period: May-Sept
38. Close the form.
39. The Imperial River Cruise offered by BEA Inc is no longer available and must be deleted from the list:
• Open the form.
• Use the scroll bar to move between the records until the Imperial River Cruise offered by BEA
Inc is displayed.
• Select Delete to remove it from the table range.
• Click OK.
40. Find the information on all the packages to Victoria Falls offered by TransIT:
• The form will still be open.
• Select Criteria.
• Enter TransIT as the Company and Victoria Falls as the Destination.
• Select Find Next to show the first package that meets these criteria.
• Select Find Next repeatedly until there are no more records that match these criteria.
• In this case, you should find two records.
41. Select Close to exit from the Data Form.
42. Save the workbook as GOTravel-student number.xlsx but keep it open as you will be using it again in
Exercise 3.6.
SS-32
FCS Spreadsheets 3. Working with Excel tables
Exercise 3.6:
Adding and Editing a Total Row to a Table
Make the following changes to packages that GO-Travel has available.
43. Return to the GOTravel-student number.xlsx, saved at the end of Exercise 3.5.
44. Select the option to include a total row to your table.
45. Choose to apply the SUM function to the Cost (pps) column, and the COUNT function to the Package
Name column.
46. Add a Filter to show only items that use airline transportation only (Fly).
47. Click the AutoFilter arrow for the Mode column.
• Deselect the Select All option.
• Select the option that is Fly only.
• Select OK.
48. Save the workbook as GOTravel-student number.xlsx and CLOSE the file.
49. Upload your solution to the SMark project FCS Excel Lesson 3.1 and CHECK the feedback report, to
ensure that you completed this set of exercises 100% correctly. If not:
i. Return to the relevant concept explanations to improve your understanding
ii. Check that you have followed the relevant Exercise instruction exactly.
SS-33
FCS Spreadsheets 3. Working with Excel tables
If one knew the code of a package, one would look it up in the first column, then move across the table to find
out the information for each category (Company, Package Name, Destination and so on) of that package.
The code we wanted to look up is the lookup value. The first column in the table usually contains the compare
values, or the whole range of values, that can be looked up. That is, we match the lookup value against the
compare values until we find the same value, then move across the table to find the information related to the
particular lookup value.
Excel has lookup functions that can be used to retrieve values from a lookup table.
The most commonly used lookup function is VLOOKUP. It has the general format:
VLOOKUP(lookup_value, table_array, col_index_num, range_lookup)
• The lookup_value is the value you want to look up in the table.
• The table_array is the cell range for the rows and columns that make up the entire lookup table, for
example A4:H28 using the table in Figure 3.1.
• The col_index_num is the column number of the value you want to retrieve. For example, in Figure 2-1,
if you were using a package code to look up the destination, which is the fourth column in the table, the
col_index_num would be 4.
• The range-lookup can be either TRUE or FALSE. If you are searching for a value within a range of values,
it is TRUE. If you are searching for an exact match, it is FALSE.
For example, in Figure 3-1, using the code as a compare value, you would use the range_lookup FALSE as it
would need to be exactly the right code.
If you were to lookup a commission percentage in the rate table shown in Figure 3.2, you would be looking for a
value that fell within the range of values, so the range_lookup would be TRUE.
If you leave out this last parameter, the system automatically assumes it to be TRUE (that is, the default).
Therefore, when you are not looking up an exact value, this parameter can be omitted – BUT, much safer to
SS-34
FCS Spreadsheets 3. Working with Excel tables
always add this 4th parameter to ensure that you are clearly being specific about the type of search that you
want Excel to do. When looking up an exact value, it must be included, and would be FALSE.
Exercise 3.7:
Using a Lookup Table (Exact Match)
When you first set up the monthly sales sheets, you entered formulas to calculate the total cost for each
client, based on the per person cost and the number of people booking. The sheets used the package
code to identify the booking. Now you will automate the entry of the destination and the per person cost
by using lookup functions. The lookup functions will find the destination and cost of a package from the
Packages sheet, when the code is entered into the monthly sales sheets.
1. Download and open the FCS Excel Lesson 3.2a data file from SMark, GOTravelLookup7-student
number.xlsx
2. The lookup table you will use is the list range defined on the Packages sheet.
• The Code column will be the compare values (first) column of the table.
• The Cost (pps) column will be the value you want to retrieve. It is the seventh column in the
table, so the col_index_num will be 7.
• The lookup value will be the code that is going to be entered for each client on the various
monthly sheets.
3. Start by setting up the formulas for January. Select the January sheet tab.
4. Enter the lookup formula in the first row of the Cost column: D4.
• =VLOOKUP(B4,
• Then switch to the Packages tab and select the list range A4:H28, tap F4 on your keyboard to
add absolute cell addressing to the list range, then type a comma ,
The formula should now look like this – either check the Formula Bar or use Ctrl+~ to switch
between Formula View and Image View:
=VLOOKUP(B4,Packages!$A$4:$H$28,
SS-35
FCS Spreadsheets 3. Working with Excel tables
5. Do NOT click on the January sheet at this point, just continue completing the formula in the
Formula Bar, even if the Package sheet is still selected. Complete the formula by adding the
column index number that you want returned 7, and the range lookup value for the exact match
False, close the ) and then press Enter:
=VLOOKUP(B4,Packages!$A$4:$H$28,7,FALSE)
6. Fill the formula down: D4:D20. Select to fill without formatting.
An alternative method to do this is to Copy D4, select D5:D20 and then use
Paste Formulas (F), rather than the regular fill down, in order to maintain the
original row formatting of those cells.
The cells in the rows without data will show #N/A.
7. Now copy the formula to the other monthly sheets:
• Select the January-March sheets so they are grouped.
• Select the January sheet tab, then select the range D4: D20.
SS-36
FCS Spreadsheets 3. Working with Excel tables
Exercise 3.8:
Using a Lookup Table (Approximate Match)
Zach’s commission structure has been changed. Instead of a flat rate of 12% on all sales, his parent
company have decided to offer a new rate structure as incentive for their agents to achieve higher sales.
If Zach’s total monthly sales are up to R10,000, he will receive a commission of 10%. For monthly sales
between R10,000 and R25,000, his commission will be 12%, and for a total monthly sales over R25,000
it will be 15% (as shown in Figure 3-3 above).
He has asked you to set up a new income workbook that will calculate his monthly income and expenses
based on the new commission structure.
The old income workbook has been edited to allow for space to include the new commission rate table.
You have to set up the table and enter the lookup formulas to show the commission percentage for each
month.
1. Download and open the FCS Excel Lesson 3.3 data file from SMark, NewIncome-student
number.xlsx – if you get the following message when you open the file, click Continue
SS-37
FCS Spreadsheets 3. Working with Excel tables
Exercise 3.9:
Trapping and handling errors
The monthly sales sheets are automated to determine the destination by using a lookup function – but
for incorrect entries (or empty entries) the #N/A error message is displayed. Instead of displaying the
error message, a value of 0 or nothing (“”) can be displayed. In this exercise, you will use IFERROR to
display nothing if the Code is not found.
11. Download and open the FCS Excel Lesson 3.2b data file from SMark, GOTravelLookup-student
number.xlsx
12. Group the January, February and March sheets, if they are no longer grouped.
13. Click on C4, then click in the formula bar, and to edit the formula to trap any errors that may occur
with the VLOOKUP, to display nothing if the Code in B4 is not found:
=IFERROR(VLOOKUP(B4,Packages!$A$4:$H$28,4,FALSE),””)
Note that there is no space between the quotes as a space character has a digital value and would
not be nothing!
14. Press Enter.
15. Use the same method you used in Exercise 3.7 to fill the formula down for C5:C20 while
maintaining the formatting in the cells. You should no longer see #N/A in cells C11:C20.
16. Check that the formula has been corrected and filled down on all the monthly sales sheets.
17. Save the workbook as GOTravelLookup-student number.xlsx but keep it open as you will be using it
again in Exercise 3.10.
Note: Do NOT apply the same error handling technique to D4:D20 or F4:F20 as a different technique
will be used in Exercise 3.10.
SS-38
FCS Spreadsheets 3. Working with Excel tables
You could also use a combination of IF, ISNA and VLOOKUP functions.
At the start of each semester, the lecturers have to regularly check the registration lists on ITS, to find out who
is legitimately in their classes, in order to maintain the class record and communicate with their students. In the
example below, note the two examples of error handling used:
1. In the class record, the IFERROR function is used to get the students; details from the ITS list – e.g. the
surname, etc. If the student number is not found on the ITS list, the student appears as Not Registered
on the class list.
2. In the ITS list, the ISNA function is used in combination with an IF and VLOOKUP function to display one
message if a student is newly registered or nothing if the student exists in the class record.
The syntax of this combination of functions would be: =IF(ISNA(VLOOKUP( )), value_1, value_2) where
all the relevant arguments for the VLOOKUP function are in their correct positions. For simplicity it was
left out in the example above.
SS-39
FCS Spreadsheets 3. Working with Excel tables
Tip:
Ask yourself the following question: Do you want the result to be:
a) The result of a calculation or nothing (i.e. 0 or “”), OR
b) Something different to the calculation if true and another value if false?
If your answer is a) then the most efficient method to use is IFERROR, but if your answer is b)
then you must use the ISNA method, combined with IF.
27. In G4:G20, edit the formula to handle possible errors in the calculation. Display a zero if the
calculation results in an error.
• Make sure that your monthly sheets are still grouped and select the January sheet.
• Edit the formula in G4 to include the more effective error-handling technique.
• Fill down this formula to G5:G20 while maintaining the existing formatting.
• Check that formula has been updated on the other two sheets.
28. Save the workbook as GOTravelLookup-student number.xlsx and CLOSE the file.
29. Upload your solution to the SMark project FCS Excel Lesson 3.2b and CHECK the feedback
report, to ensure that you completed this set of exercises 100% correctly. If not:
i. Return to the relevant concept explanations to improve your understanding
ii. Check that you have followed the relevant Exercise instruction exactly.
SS-40
FCS Spreadsheets 3. Working with Excel tables
SS-41
Handling Multiple Conditions and Multiple Outcomes
There are instances where the value in a cell will depend on certain conditions. For example, a salesperson’s
commission rate may vary for different products; a student may pass or fail a course depending on marks
achieved for different sections of a course; a taxpayer’s tax rate differs according to the total taxable income
amount.
In Excel workbooks, logical functions are used in this decision making process. A logical function contains logical
expressions, or conditions. The conditions have logical operators to compare values. A condition can be
evaluated as either true or false. The action or result that occurs will depend on whether the condition is true or
false.
Logical functions are therefore used so that different results can be shown in cells, depending on the values in
other cells. For example, a formula can be set up to show whether or not a student has passed a course, without
knowing in advance what the student’s mark is. The formula will state that if the mark is 50% or more, the result
is a pass, otherwise it is a fail. Once the student’s mark is entered into the worksheet, the worksheet will
automatically show either pass or fail, depending on the actual mark.
In this section you will learn how to construct logical expressions (or conditions) and how to use them in logical
functions to assist decision making processes.
Case: Go-Travel
In this lesson, you will use logical functions in Zach’s worksheets to highlight different packages (those he should
focus on selling and those he should consider a low priority), as well as help him work out how much money he
can save each month.
SS-42
Handling Multiple Conditions and Multiple Outcomes
A. Logical Expressions
Logical expressions, or conditions, are used in a decision making process.
For example, in your module guide, there is a section where the conditions you have to satisfy in order to pass
the module are given. At the end of the semester, your record is checked against these conditions. If you satisfy
the conditions (true) you will receive a pass for the course, otherwise (false) you will not. In other words, the
conditions are used to help the module coordinator make decisions.
When used in a worksheet, a condition must always contain at least one of the relational (or logical) operators
shown below.
Operator Meaning
> Greater than
< Less than
>= Greater than or equal to
<= Less than or equal to
= Equal to
<> Not equal to
These operators are used in logical expressions or conditions where the result is always either true or false. For
example, 16>12 is true, while 100<=95 is false. The table below shows some examples of how a condition can
relate to values in a spreadsheet. Text values that are part of logical expressions must be enclosed in double
quotes.
SS-43
Handling Multiple Conditions and Multiple Outcomes
Exercise 4.1:
Using the IF Function
Zach decides that he will save some money every month, but the amount will depend on how much
income he has earned. If his nett income is up to R1000, he will put R50 into his savings account. If it
is more than R1000, he will save R250. You have already set up a workbook for him to keep track of his
income and expenses. Add a section that will calculate his savings for each month.
1. Download and open the FCS Excel Lesson 4.1 data file from SMark, Savings-student number.xlsx
2. Click in cell B26.
3. Click the Insert Function button.
4. From the Select a function box, select IF.
5. Click OK.
6. Enter the parameters for the function as follows:
• Logical_test: B24<=$B$7
• Value_if_true: $B$8
• Value_if_false: $B$9
7. Click OK to enter the function.
8. The formula in cell B26 should be – result 250:
=IF(B24<=$B$7,$B$8,$B$9)
9. Copy the formula into the range C26:D26.
10. Add the savings amount for each month in the total column:
• Click in cell E26.
• Enter the sum function using either the sum tool or typing the formula: =SUM(B26:D26)
11. Format the range B26:E26 as currency.
12. Save the workbook as Savings-student number.xlsx and CLOSE the file.
13. Upload your solution to the SMark project FCS Excel Lesson 4.1 and CHECK the feedback report, to
ensure that you completed this set of exercises 100% correctly. If not:
i. Return to the relevant concept explanations to improve your understanding
ii. Check that you have followed the relevant Exercise instruction exactly.
SS-44
Handling Multiple Conditions and Multiple Outcomes
SS-45
Handling Multiple Conditions and Multiple Outcomes
The example below is similar to the one for the AND function (above), but this time the condition has been
changed so that Zach can focus on selling two completely different types of packages (column I): those where
the cost per person (column G) is over R5000 or all the packages offered by SA-Bus (in the company column,
column B).
Exercise 4.2:
Using AND & OR functions
Zach’s parent company decide to offer all their agents an incentive to increase sales in January. Clients
whose package has a total cost over R8000 or those whose package is for more than 4 people will
receive a discount of 5%. The agent (that is, Zach for GO-Travel) will receive a bonus of R2000 if their
monthly total (excluding discount) is over R20 000 and they have sold 10 or more packages.
You need to update GO-Travel’s January sales worksheet to include this information.
1. Download and open the FCS Excel Lesson 4.2 data file from SMark, GOTravelJanuarySales-student
number.xlsx
2. Create a formula to determine whether or not a client receives the 5% discount. The result should
be either 5% or 0% – expected result for all cells except F13 is 0% and F13 is 5%
• Click in cell F10.
• Enter the formula: =IF(OR(E10>$B$2,D10>$B$3),$B$4,0)
• Ensure that the cell is formatted as percentage.
• Copy the formula in cell F10 to the range F11:F26. Click on the down arrow below Paste in
order to see the different Past Options. Select to Paste only the formulas (second option
under Paste) - this leaves your formatting intact.
3. Calculate the total cost including discount for each client – expected G13 result R31984:
• Click in cell G10.
• Enter the formula: =E10-(E10*F10).
• Copy the formula to the range G11:G26. Paste only the formulas.
SS-46
Handling Multiple Conditions and Multiple Outcomes
4. Enter the formula to calculate how many packages Zach has sold (this will be done by counting the
number of package codes that have been entered):
• Click in cell E30.
• Enter the formula: =COUNTA(B10:B26). Make sure the result is an ordinary number, not
currency - expected result is 7.
5. Calculate whether or not Zach receives a bonus:
• Click in cell E31.
• Enter the formula: =IF(AND(E28>B7,E30>=B6),B5,0) – no absolute cell addressing as this
formula is not being copied anywhere – expected result R2000.
6. Save the workbook as GOTravelJanuarySales-student number.xlsx and CLOSE the file.
7. Upload your solution to the SMark project FCS Excel Lesson 4.2 and CHECK the feedback report, to
ensure that you completed this set of exercises 100% correctly. If not:
i. Return to the relevant concept explanations to improve your understanding
ii. Check that you have followed the relevant Exercise instruction exactly.
The nested IF function can be in the place of any of the last two arguments of the first IF function. (In the place
of the value_if_true or value_if_false arguments).
SS-47
Handling Multiple Conditions and Multiple Outcomes
Exercise 4.3:
Creating a Nested IF Function
Zach earns a vacation of his choice if he has sold a certain number of packages within a specific quarter–
5 days if he has sold at least 20 packages, but he gets 15 days if the least number of people booked is
50 or the total sales value exceeds R100,000.
Use a nested IF function to help him figure out if he has earned a vacation and if so, how long his vacation
will be.
1. Download and open the FCS Excel Lesson 4.3 data file from SMark, GoTravelFirstQuarterSales-
student number.xlsx
2. Select the First Qtr sheet tab.
3. Calculate the total number of packages and the total number of people booked from January to
March:
• Click in cell B13.
• Enter the formula: =COUNTA(January:March!B4:B20) – remember to use group 3-D
referencing (see Lesson 2, Page 20 – Entering Formulas using a 3-D Reference)
• Click in cell B14.
• Enter the formula: =SUM(January:March!E4:E20)
4. Calculate the number of vacation days Zach has earned in this quarter:
• Click in cell B15.
• Enter the formula: =IF(OR(B14>=B4,B10>B5),B7,IF(B13>=B3,B6,0)).
Tip
When you use a nested IF function, always start either with the highest condition or the lowest
condition, otherwise your condition may be true for more than 1 situation. For example, if you had
entered the packages-condition before the people/sales-condition, you may very easily have done
Zach out of 10 vacation days!
SS-48
Handling Multiple Conditions and Multiple Outcomes
Financial functions are calculations related to the value or worth of money and how it changes over time. These
functions are used to calculate amounts related to loans and investments, and involve compound interest.
Consider a study loan you might have—the amount you will eventually repay after a number of years (future value)
is quite different to the amount you originally borrowed (present value)! This is due to compound interest being
added to the balance at periodic intervals.
In this section you will learn how to use financial functions in calculations relating to loans and investments, as
well as some date and time functions, as these calculations usually occur over specific periods of time.
Case: Go-Travel
In this lesson, Zach decides to take out loans to set up the GO-Travel office and buy a car, while investing a
merit bursary and his monthly savings. You will use financial and date functions to calculate his repayments and
earnings.
SS-49
Working with Financial Functions
A. Financial Concepts
Figure 5-1 explains the different financial concepts that are used in financial calculations. Figure 5-2 shows how
to calculate some of these amounts.
Depending on the information available, you can do your calculations with the help of formulas or Excel functions.
Concept Explanation
Lump Sum A once-off amount. This can be a once-off deposit at the start of an
investment, or the amount borrowed in a loan application.
Present Value (PV) / The initial amount. For a loan, this is the amount borrowed. For an
Principal Amount investment, this is the initial amount deposited.
Payment (PMT) A recurring amount. Equal sized deposits made at the start or end of
every interest period. Used to reduce debt (loan) or increase the final
amount (investment).
Nominal Interest Rate The interest rate applicable for the whole year—stated as a percentage
per annum (per year).
Effective Interest Rate The interest rate as a percentage for one interest period—the interest
(RATE) rate per annum converted to apply to each interest period per annum.
Interest Periods per The number of times per year that interest is calculated. Payment is
Annum usually made at the start or end of each interest period and interest in
calculated and added to the balance of the investment/loan.
Duration and Number The total duration of the investment/loan. Duration is usually given in
of Investment Periods years, while the number of investment periods is the total number of
(NPER) times interest will be calculated in the lifetime of the investment/loan.
NPER must correspond to the correct number of interest periods per
annum.
Future Value (FV) The final amount. For a loan, this will be zero (0), as the entire amount
borrowed, plus interest will have been paid back. For an investment, this
will be the initial amount, plus any additional payments made and the
interest earned.
Interest Amount The difference between the future value and the present value.
Loan Amortization, When a loan is paid back, every payment made can be divided into two
Repayment of Principal portions. A portion of the payment is made against the principal amount,
and Interest Portion while the rest is paid against the interest amount due. The process of
determining the size of these portions is called a loan amortization.
SS-50
Working with Financial Functions
Concept Formulas
Effective Rate (RATE) = Nominal Interest Rate / Interest Periods per Annum
Interest Periods per Usually stated corresponding to the number of times per year interest is
Annum calculated. For calculation purposes, this needs to be indicated as a
number corresponding to the number of interest calculations per year.
Examples:
• Monthly = 12 (12 interest calculations per annum)
• Quarterly = 4 (every 3 months, or 4 interest calculations per
annum)
• Half yearly or bi-annually = 2 (every 6 months, or 2 interest
calculations per annum)
• Yearly = 1 (1 interest calculation per annum)
Number of Months per Frequently necessary in NPER or PMT calculations.
Interest Period
= 12 / Interest periods per annum
Examples:
• Monthly: 12 / 12 = 1 (1 month)
• Quarterly: 12 / 4 = 3 (3 months in a quarter)
• Half yearly: 12 / 6 = 2 (2 months in half a year)
• Yearly: 12 / 1 = 12 (12 months in a year)
Duration and Number There are three ways of calculating this value, depending on the
of Investment Periods information you have:
(NPER)
1. = Duration (in years) * Interest periods per annum
2. = Difference between Start Date and End Date (in months) / Number
of months per interest period
Payment (PMT) PMT must be given in terms of the stated interest periods per annum. If it
is not, a calculation is necessary before it can be used in other
calculations.
Example:
• Earn R200 per month, but interest is calculated quarterly:
= R200 * 3 (months per quarter)
i.e. R600 every quarter
Interest Amount = FV – PV
SS-51
Working with Financial Functions
Financial functions can be used to determine any of these financial concepts or values. Figure 5-3 shows the
syntax of various financial functions, while Figure 5-4 explains the arguments used in the functions.
Function Syntax
Future Value (FV) =FV(RATE, NPER, PMT, PV)
Present Value (PV) =PV(RATE, NPER, PMT, FV)
Number of Interest Periods (NPER) =NPER(RATE, PMT, PV, FV)
Payment (PMT) =PMT(RATE, NPER, PV, FV)
Portion of Payment towards Principal =PPMT(RATE, PER, NPER, PV, FV)
(PPMT)
Portion of Payment as Interest (IPMT) =IPMT(RATE, PER, NPER, PV, FV)
Parameter Explanation
RATE Interest rate per period (effective rate, not the nominal rate).
PER Specifies a period and must be in the range 1 to NPER.
NPER Total number of payment periods over the lifetime of the
investment/loan.
PMT Size (amount) of the payment made each period.
FV Future value—cash balance after last payment.
PV Present value—the total amount that a series of future payments are
worth now.
SS-52
Working with Financial Functions
Analysis Checklist
Most financial scenarios make use of the same set of values, so it can be useful to use the following checklist
to identify the values you know and what you will need to calculate.
1. Nominal Interest Rate 20%
2. Number of Interest Periods p.a. 4 (quarterly)
3. Rate (Effective Interest Rate) = nominal rate / number of interest periods p.a.
=20% / 4
4. Months per Investment Period =months in year / number of interest periods p.a
=12 / 4
5. Duration of Investment (years) 2
6. Number of Interest Periods = duration in years * number of interest periods p.a.
=2*4
7. Payment 0 (he does not plan on making additional deposits)
8. Present Value 10,000
9. Future Value ?
Scenario Timeline
It may be helpful to you to construct a timeline to get an overview of the problem. Use the timeline to list the
parameters that you will need for the financial functions. These include PV, FV, RATE, PMT and NPER. Figure 5-
5 shows a timeline for the Merit Bursary scenario.
PMT = 0
RATE = 20%/4
PV = R10000 FV = ?
SS-53
Working with Financial Functions
Worksheet Design
When you design the worksheet, write down the checklist labels, and the known values. Then complete the
required calculations and functions, using cell references. Figure 5-6 shows the completed design for the Merit
Bursary scenario. (You may wish to try it yourself before looking at the solution.)
When you take money out of your wallet (paid out) to pay for something, you are subtracting (-) this money from
the amount already there.
When calculating values relating to loans and investments, money paid to the
bank is no longer in your “wallet”, so it must be negative in your calculations.
The money you will receive from the bank is reflected as positive.
Complete checklist
When having to complete a financial scenario, first write down the checklist
labels. If the scenario does not supply all the details required by the checklist, it
can be left empty to start with. While completing the scenario, some of the
details will be calculated, while others might not be applicable for the specific
scenario.
When coming across items that needs new labels – add them to the bottom of
the existing checklist.
SS-54
Working with Financial Functions
Exercise 5.1:
Using Financial Functions to Work Out Loan Repayments
Zach’s business is doing very well and he decides it is time to set up a proper office. He wants to leave
his savings untouched, and decides to take out a loan of R5000 to purchase the equipment he requires.
His bank can offer him a loan at an interest rate of 10.5% per annum, payable over 3 years.
Help him work out what his monthly repayments will be.
1. Download and open the FCS Excel Lesson 5.1 data file from SMark, Loan-student number.xlsx
2. The workbook contains the labels (as given in the checklist) for the different values that are
required for the calculation. Some of these values are already given in the scenario, and others
will need to be calculated.
3. Begin by entering the values you already know:
• Nominal Interest Rate: In B2 enter 10.5%.
• Number of Interest Periods p.a.: Zach will be making monthly repayments, so this will be
12, which you must enter in B7.
• Duration of Investment: In B10 enter 3. Do not type years.
• Present Value: This is the amount that Zach receives from the bank when he takes out
the loan R5000 Enter this value In B13.
• Future Value: Once the loan has been paid back, the value will be 0. Enter this amount in
B15.
4. The Effective Rate is the nominal interest rate divided by the number of interest periods per
annum. Enter a formula in B3 to calculate this:
=B2/B7.
5. The Months per Period is always the number of months in a year (12) divided by the number of
investment periods in the year, so enter the formula that will calculate this value in B8:
=12/B7.
6. The Total Number of Periods is the number of interest periods from the start of the loan until all
the money is paid back and can be calculated by multiplying the number of periods per annum by
the duration of the investment in years. Enter the formula in B11:
=B7*B10.
7. You have now calculated all the values that you need to be able to use the PMT financial function
to calculate Zach’s payment per period (which in this case is the same as a monthly payment, but
note that his is not always so). In B14 enter the formula:
=PMT(B3,B11,B13,B15).
Note that the value in B13 should not get a negative sign in front, as Zach is receiving the
money (it is a loan), and not making an initial pay-out.
8. Save the workbook as Loan-student number.xlsx and CLOSE the file.
9. Upload your solution to the SMark project FCS Excel Lesson 5.1 and CHECK the feedback report,
to ensure that you completed this set of exercises 100% correctly. If not:
i. Return to the relevant concept explanations to improve your understanding
ii. Check that you have followed the relevant Exercise instruction exactly.
SS-55
Working with Financial Functions
SS-56
Working with Financial Functions
Exercise 5.2:
Using Financial and Date Functions to calculate Payments and Final Values
Zach’s cousin buys a new car and offers to sell Zach his old car for R12,500. Zach can take out a car
loan for this amount, payable over 4 years at a nominal interest rate of 10.5% with monthly repayments.
If he took out the loan today, calculate how much he would need to pay back each month, and what the
date would be when he would finish paying off the loan.
1. Download and open the FCS Excel Lesson 5.2 data file from SMark, CarLoan-student number.xlsx
2. The workbook contains the labels for the different values that are required for the calculation.
Some of these values are already given in the scenario, and others will need to be calculated.
3. Begin by entering the values you already know:
• Nominal Interest Rate: In B2 enter 10.5%.
• Number of Interest Periods p.a. Zach will be making monthly repayments, so this will be 12,
which you must enter in B7.
• Duration of Investment: In B10 enter 4.
• Present Value: This is the amount that Zach receives from the bank when he takes out the
loan R12500 Enter this value In B13.
• Future Value: Once the loan has been paid back, the value will be 0. Enter this amount in
B15.
4. The effective rate is the nominal interest rate divided by the number of interest periods per annum.
Enter a formula in B3 to calculate this:
=B2/B7.
5. The months per period is always the number of months in a year (12) divided by the number of
investment periods in the year, so enter the formula that will calculate this value in B8:
=12/B7.
6. The start date will be today’s date. Enter a formula in B5 so that the calculation will be relevant for
whatever day the workbook is accessed:
=TODAY()
SS-57
Working with Financial Functions
7. The total number of periods is the number of interest periods from the start of the loan until all the
money is paid back and can be calculated by multiplying the number of periods per annum by the
duration of the investment in years. Enter the formula in B11:
=B7*B10.
8. You have now calculated all the values that you need to be able to use the PMT financial function to
calculate Zach’s monthly payment. In B14 enter the formula:
=PMT(B3,B11,B13,B15).
Note that the value in B13 should not get a negative sign in front, as Zach is receiving the money
(it is a loan), and not making an initial pay-out.
9. Since (in this scenario), the total number of periods = duration in months, you can calculate the
date when the loan will be paid back by adding the total number of periods to the start date. In B6
enter the formula:
=EDATE(B5,B11) and format the result as the Short Date number format (should show Date).
Note: if the loan was paid back on (for example) a quarterly basis, you would have to convert the
total number of periods (which would be an answer in quarters) to months (using cell B9), and
then use B9 in the EDATE calculation.
10. If the end date in cell B6 is displayed as a number, and not as a date, change the formatting of the
cell to the mm/dd/yyyy date format.
11. Save the workbook as CarLoan-student number.xlsx and CLOSE the file.
12. Upload your solution to the SMark project FCS Excel Lesson 5.2 and CHECK the feedback report, to
ensure that you completed this set of exercises 100% correctly. If not:
i. Return to the relevant concept explanations to improve your understanding
ii. Check that you have followed the relevant Exercise instruction exactly.
SS-58
Projects
Projects
Check your module’s weekly Application Guides to find out which Projects you are required to do.
Project 1. Temps
1. Download and open the FCS Excel Project 1 data file from SMark:
Temps-studentnumber.xlsx
Only change the filename if you have downloaded more than once; there should be no version number –
e.g. (1) – in the filename; otherwise do not change the filename.
2. On the Documentation sheet, enter the date in cell B3, your surname & initials in cell B5 and your
student number in cell C5. All remaining tasks are on the Hours sheet.
3. You need to put data validation in place for the entry of the Level – this needs to be done for all data in
the column and ONLY the data:
• The rule: only a whole numbers between 1 and 10 may be entered.
• The input message:
Title: Level
Message: Enter a value between 1 and 10
• If the data entered is invalid, the following Stop style message should appear:
Title: Level Error
Message: Invalid enter a value between 1 and 10
4. Set a conditional formatting rule for the data range of the Level column (D3:D8) so that entries greater
than 3 appear in Red Text (use one of the available pre-set options).
5. Set a conditional formatting rule for the data range of the Review Cycle column (E3:E8) to apply Solid
Fill, Green Data Bar (use one of the available pre-set options).
6. Ensure that users will only be able to enter data in range D3:E8 – no other cells should be able to be
Selected or accept data. Note:
• Do NOT set any passwords if asked to do so – leave them blank
• Do NOT use the Allow users to edit ranges method for this task.
7. Save the final version of your file. Before closing the file in MS Excel, check in File Explorer that your file
shows the current date & time – if not, return to MS Excel and SAVE your final document as instructed.
Only when you have checked this date & time and are satisfied, CLOSE the file to ensure that you upload
the latest edited version.
8. Return to the SMARK system. Upload the Temps-studentnumber.xlsx solution file, for online checking (if
necessary, remove any version number in the filename).
SS-59
Projects
Project 2. Stock
1. Download and open the FCS Excel Project 2 data file from SMark:
Stock-studentnumber.xlsx
Only change the filename if you have downloaded more than once; there should be no version number –
e.g. (1) – in the filename; otherwise do not change the filename.
2. On the Documentation sheet, enter the date in cell B3, your surname & initials in cell B5 and your
student number in cell C5.
3. Convert the data (A1:E28) in the Details sheet to a spreadsheet list-table.
4. Freeze the first row and column.
5. In the type column, use one action to replace all the entries Lily with Daylily.
6. Add the following entry to the list-table:
7. Find the record for code CR0003, and change the quantity in stock to 9.
8. Sort the list-table in ascending order of Type (make use of the list table options to do this).
9. Filter the list-table to only show the Roses (make use of the list-table options to do this).
10. Add a total row to your list-table. Choose to apply the SUM function to the Quantity in Stock column, and
the COUNT function to the Type column (do not remove the filter from the previous step).
11. Save the final version of your file. Before closing the file in MS Excel, check in File Explorer that your file
shows the current date & time – if not, return to MS Excel and SAVE your final document as instructed.
Only when you have checked this date & time and are satisfied, CLOSE the file to ensure that you upload
the latest edited version.
12. Return to the SMARK system. Upload the Stock-studentnumber.xlsx solution file for online checking (if
necessary, remove any version number in the filename).
SS-60
Projects
SS-61
Projects
4. Complete the Total Quantity column from the Details sheet by referencing the necessary cells from the
BranchSales workbook (get the total for each branch). Note that you should have a copy of the
BranchSales workbook from when you were working on Project 3. You should have it saved amongst
your files.
5. Determine the Bonus% for each branch.
6. Format all relevant values as percentages, displaying no decimal places.
7. Save the final version of your file. Before closing the file in MS Excel, check in File Explorer that your
file shows the current date & time – if not, return to MS Excel and SAVE your final document as
instructed.
Only when you have checked this date & time and are satisfied, CLOSE the file to ensure that you
upload the latest edited version.
8. Return to the SMARK system. Upload the BranchBonus-studentnumber.xlsx file, for online checking (if
necessary, remove any version number in the filename).
SS-62
General & Logical Scenarios
Scenarios
SS-63
General & Logical Scenarios
SS-64
General & Logical Scenarios
SS-65
General & Logical Scenarios
SS-66
General & Logical Scenarios
SS-67
General & Logical Scenarios
SS-68
General & Logical Scenarios
SS-69
General & Logical Scenarios
SS-70
General & Logical Scenarios
SS-71
General & Logical Scenarios
SS-72
General & Logical Scenarios
SS-73
General & Logical Scenarios
SS-74
General & Logical Scenarios
SS-75
General & Logical Scenarios
SS-76
General & Logical Scenarios
SS-77
General & Logical Scenarios
SS-78
General & Logical Scenarios
SS-79
General & Logical Scenarios
SS-80
General & Logical Scenarios
SS-81
General & Logical Scenarios
SS-82
General & Logical Scenarios
The merchant is offering the following volume discounts in order to promote sales:
Number of phones Discount %
30 or more 15%
At least 20 and less than 30 10%
At least 10 and less than 20 5%
Below 10 No Discount
As an additional promotion, some customers can receive either a diary or a CD player. To receive a diary the
customer must buy at least 5 SonyJ70 phones. Customers buying at least 12 Nokia 9210 or SonyEricssonZ700
phones will receive a CD player.
For the customer, you should record the following: type of phone as well as quantity. You should determine the
price per phone, the amount due per type as well as message indicating whether the phone type was entered
correctly. You should also determine which promotional item is due (if applicable).
As this is an invoice, you should also calculate the total amount before the discount, the discount amount as well
as the total amount due after discount. Make provision for 6 items on the invoice.
SS-83
General & Logical Scenarios
SS-84
General & Logical Scenarios
SS-85
General & Logical Scenarios
SS-86
General & Logical Scenarios
SS-87
General & Logical Scenarios
SS-88
General & Logical Scenarios
SS-89
Financial Scenarios
B. Financial Functions
Scenario 27. Investments
10 Years ago your father invested R1000 at 20% interest per annum into a savings account, calculated
monthly at the Stay Rich Bank (Investment One).
Today he decides to make another investment at First Country Bank, providing 22% interest per
annum, calculated monthly. He will pay R200 monthly into this account (Investment Two).
He would like to know:
• For how many periods must he deposit R200 monthly in order for Investment Two to be worth
R10000? I.e. determine the number of months for this investment to reach at least R10000.
• What would the total amount of the investments be at the end of the number of periods calculated
for Investment Two?
SS-90
Financial Scenarios
SS-91
Financial Scenarios
SS-92
Financial Scenarios
SS-93
Financial Scenarios
SS-94
Financial Scenarios
SS-95
Financial Scenarios
You have an amount of R 6500 available per month, and you have decided to use half of this to pay off the loan
(as payment is only due every quarter, you will save up every month).
• Determine how long it would take you to pay off the loan?
• Determine the date when the loan would be paid off.
Option 2:
You can also finance it at 13 % interest per annum, compounded monthly.
• What would your monthly payment be for the same period as option 1?
SS-96
Financial Scenarios
SS-97
Financial Scenarios
SS-98
References
References
SS-99