View
328
Download
3
Category
Preview:
Citation preview
7/26/2019 Unit 27 Spreadsheet Modelling
1/44
The spreadsheet and the word processor were the business applications
that started the personal computer revolution, and they remain the
most popular and useful applications. The popularity of spreadsheets
comes from their ability to carry out financial calculations with ease.
But the software is very versatile and, in addition to its financial andmathematical uses, it can be utilised for a number of other applications
such as maintaining simple lists and databases, presenting data as charts
and graphs, and creating complex tables of text and numbers.
Spreadsheets are also widely used in business, science and other areas to createmodels. A spreadsheet model helps you answer a question, such as How much will itcost me to run a car?, or predict a likely future outcome, such as How much profit willmy business make next year? For these reasons, they are a powerful tool for planning.
This unit links closely with Unit 9: Customising software, which covers improvingspreadsheets and other applications software by introducing templates,
shortcuts and macros.
Learning outcomesAfter completing this unit you should:
1. know what spreadsheets are and how they can be
2. be able to develop spreadsheet models
3. be able to test and document spreadsheet model
Credit value: 10
27Spreadshee
modelling
7/26/2019 Unit 27 Spreadsheet Modelling
2/44
Assessment and grading criteriaThis table shows you what you must do in order to achieve a pass, merit or distinction, and whyou can find activities in this book to help you.
To achieve a passgrade the
evidence must show that youare able to:
To achieve a meritgrade the
evidence must show that, inaddition to the pass criteria,you are able to:
To achieve a distinctiongrade
the evidence must show that, inaddition to the pass and meritcriteria, you are able to:
P1 describe the uses ofspreadsheet softwareSee Assessment activity27.1 on page 8
P2 explain why spreadsheetsmay need to be converted toalternative file formatsSee Assessment activity27.1 on page 8
P3 develop a spreadsheet modelto meet particular needsSee Assessment activity27.2 on page 35
M1refine a spreadsheet modelby changing rules and valuesSee Assessment activity27.3 on page 40
D1 evaluate a spreadsheetmodel suggesting furtherrefinementsSee Assessment activity27.2 on page 35
P4 use simple formulae andfunctions to process information
See Assessment activity27.2 on page 35
D2 use automated features in thespreadsheet model
See Assessment activity27.4 on page 42
P5 use data types and formattingto present informationSee Assessment activity27.2 on page 35
M2justify choice of tools forpresenting dataSee Assessment activity27.3 on page 40
P6 use appropriate tools topresent dataSee Assessment activity27.3 on page 40
M3analyse and interpret datafrom a spreadsheet modelSee Assessment activity27.3 on page 40
P7 test a spreadsheet to ensurethat it is fit for purposeSee Assessment activity27.4 on page 42
P8 produce user documentationfor a spreadsheet modelSee Assessment activity27.4 on page 42
2
BTECs own resources
7/26/2019 Unit 27 Spreadsheet Modelling
3/44
How you will be assessedThis unit is internally assessed. You will provide a portfolio of evidence to showthat you have achieved the learning outcomes.Your portfolio of evidence canbe supplied in many formats including electronically as well as paper-based. Thegrading grid in the specification for this unit lists what you must do to obtain pass,merit and distinction grades. The Assessment activities in this unit will guide youthrough tasks that will help you to be successful in this unit.
Your tutor will tell you exactly what form your assessments will take, but you couldbe asked to produce:
written documentation, for example a pamphlet or leafleta short report, spreadsheet files annotated screenshots
practical work a presentation.
Unit 27Spreadsheet m
Feroz Kapoor, a 15-year-oldBTEC First learner
I really enjoyed this unit. Spreadsheets are amazing because theres
so much they can do and theres always more to learn about them. Id
already learned the basics of using spreadsheets before I did this unit,
so I was worried that Id find it a bit boring. But we didnt spend a lot
of time on the basics. The unit is more about building spreadsheets which
answer the sort of questions you might come across in business. In the future I
really want to run my own business, so for me learning about how to use a spreadsheet toplan and forecast things like business costs and profits was really interesting.
The assessments for this unit were quite hard, especially the merit and distinction ones. I had
particular trouble justifying my choice of a chart for presentation data (M2) and evaluating
my spreadsheet and suggesting refinements (D1). Our tutor suggested we got together in
small groups and discussed each others spreadsheets. It turned out it was much easier to
suggest improvements on other peoples spreadsheet models than on our own. I think we
thought our own ones were perfect! We also came up with some good ideas for justifying
spreadsheets by comparing the numerical data and the chart, you could see how much
easier it was to make sense of the data from the chart.
Over to you! Do you know something about how to use spreadsheets already?
What sort of things should you think about when you need to justifyusing a certain feature?
7/26/2019 Unit 27 Spreadsheet Modelling
4/444
BTECs own resources
1. Know what spreadsheets are and howthey can be used
4
BTECs own resources
Warm upStart up Ideas for spreadsheet modelsA model is something that mimics real life. With a model you can make predictions
or plans and try to answer questions. There are lots of things you might want to
model, such as How many merit grades do I have to get on this course to get a
merit overall? or How many matches does my team need to win to come top
of the league? We tend to think of spreadsheet models in a business or financial
context, but there are many more areas where creating a model is useful or
interesting.
In a group, discuss the sorts of models you would like to create.
Choose one idea for a model from those you discussed.
What kind of data will you need to build your model?
Could you use a spreadsheet to build your model?
A spreadsheetworkbookis made up of tables known asworksheets,
with rows and columns making up individual cells. The columns are
labelled with letters of the alphabet and the rows are numbered. Each
cell has an address, which is its column letter and row number.Workbook a spreadsheet file, which is
made up of a group of worksheets that
are saved together in a single file.
Worksheet a page of tables used to
create a spreadsheet.
Key terms
Figure 27.1: A worksheet
7/26/2019 Unit 27 Spreadsheet Modelling
5/44
Unit 27Spreadsheet mUnit 27Spreadsheet m
By default, a spreadsheet has three worksheets, but you can add more
if required. A single spreadsheet workbook can, therefore, hold a very
large amount of data.
There are basically three things you can enter in a worksheet cell:
Textcan be formatted in a variety of ways, for example you can
change its font, size or colour.
Numberscan be formatted depending on what kind of numbers
they are. For example, you can choose the Currency format, which
will display a number with a currency symbol in front ( in the UK)
and two digits after the decimal point. You can also format the
appearance of numbers in the same way as you can text. Well look
at formatting in more detail later.
Formulaeare what make spreadsheets really useful. A formula
carries out a calculation on numeric values in other cells. Well also
look at formulae in more detail later.
Many people also use spreadsheets as simple databases to store flat filedata, i.e. single database tables.
1.1 Uses of spreadsheetsSpreadsheets are very flexible and are used for all sorts of applications.
They are most commonly used for storing, manipulating and analysing
numeric data. The table structure of the worksheet makes it ideal for
storing valuesthat represent something, such as the number of sales
made in each month of the year or a learners mark in an assignment.
What happens after column Z?
How many rows and columns does a worksheet have?
How many cells does this provide?If you want a real challenge, find out what other limits there are inMicrosoftExcel. For example, how many different worksheets canyou have in one workbook (spreadsheet file)?
Activity: Spreadsheet size andquantity
Do you know anyone who uses spreadsheets in their business? Findout what they use them for.
Do your tutors use spreadsheets for keeping track of your progresson this course? Look into how staff at your centre of learning usespreadsheets and find some examples of the spreadsheets they use.
Activity: Spreadsheet uses inindustry and commerce
Formulae used to carry out
calculations in a spreadsheet. A formulmust begin with an equals sign (=) and
can use either actual values (numbers)
references to cell addresses.
Value a number which can either
be a fixed number entered by the
spreadsheets user or a number that is
calculated by a formula.
Key terms
7/26/2019 Unit 27 Spreadsheet Modelling
6/446
BTECs own resourcesBTECs own resources
Presenting and interpreting informationLarge quantities of data can be stored in a spreadsheet. But lots of
numbers can be difficult to interpret, making questions such as Is the
value of sales we make each month increasing or decreasing? difficult to
answer. Therefore, spreadsheets provide tools, such as charts and graphs,
to enable you to present data in different ways and make interpretation
easier. It is much easier to see trends and to identify relationships between
data when looking at a graph than it is by looking at raw figures.
Case study: NEAL training
NEAL training is a small private training companythat offers vocational training for job seekers undercontract to local job centres. They need to keep track
of their learners attendance and punctuality, andmeet the targets set by the organisations that fund thetraining. Alice Haynes, the training manager, uses aspreadsheet to keep track of this data; an example isshown in Figure 27.2.
The spreadsheet uses formulae to calculate the weeklypercentages for attendance and punctuality for eachof the training programmes that the company runs. Italso uses an If function (see pages 1618) to highlightthe programmes that have below-target attendanceor punctuality. Charts are drawn from the data to helpidentify trends and problem areas.
Alice says: Although in some ways this kind of datamight be better suited to a database application, itsquicker and easier to set it up using Excel. Also, my
director prefers me to use spreadsheets to recordinformation because he understands them well. Thecharts are useful because they make it easy to see at aglance where the serious problems lie.
1. What reasons does Alice give for preferring touse a spreadsheet rather than a database?
2. What disadvantages might there be to usinga spreadsheet rather than a database in thisapplication?
3. Does your tutor collect or use statistics onattendance and punctuality? If so, how do theystore and present that data?
Figure 27.2: Weekly attendance and punctuality spreadsheet
7/26/2019 Unit 27 Spreadsheet Modelling
7/44
Unit 27Spreadsheet mUnit 27Spreadsheet m
CalculationsSpreadsheets are also useful for carrying out calculations repetitively
and, as long as the initial formulae are correct, you can rely on the
spreadsheet to be accurate. This can be useful in spreadsheets such as
monthly salary calculations.
List managementThe ability to manage and manipulate large lists of data is also one of
the spreadsheets strengths. This facility allows you to use a spreadsheet
like a simple database.
1.2 Alternative formatsIn addition to the standard format for saving spreadsheets (for Excel
this is known as the xls format because the file extension is .xls), there
are a number of alternative formats you can use for different purposes.
These include:
PDF (Portable Document Format). When you save a spreadsheet
as a PDF it can be viewed but not edited by others. The PDF
format is very widely used, so it is ideal if you want to publish your
spreadsheet online and allow anyone to download and view it (even
if they dont have a copy of MicrosoftOffice).
HTML (Hyper Text Markup Language).Saving your spreadsheet
as HTML means you could include the spreadsheet as part of a web
page. As with PDF, your spreadsheet can be viewed but not edited
in this format.
CSV (Comma Separated Values) file. This is a text file with the
contents of each cell separated by a comma. This format can beused to import the spreadsheet data into a database application.
TXT file. This is a plain text file.
XML file. This is an industry standard format so is useful when you
need to export spreadsheet data to other applications (especially
non-Microsoftones) such as a database.
When you save your spreadsheet in any of these formats, the formulae
are converted to values. This means you have created a final version of
the spreadsheet.
Did you know?
To find out more about the differe
file formats for saving spreadsheet
use the Help facility in Exceland
search for File formats.
Did you know?
You can download a free PDF view
from the Adobewebsite. To acce
this site, go to Hotlinks and click o
the link for this unit.
Just checking
1. What is the difference between a workbook and a worksheet?
2. Why might you want to save a spreadsheet as a PDF file?
3. Name one tool provided by spreadsheets to help analyse and interpret data.
4. How are the rows and columns of a worksheet identified?
7/26/2019 Unit 27 Spreadsheet Modelling
8/448
BTECs own resources
2. Be able to develop spreadsheet models
You have recently taken a job as a trainee IT support specialistat a university. The IT manager has asked you to write a guidefor non-technical lecturers about how they can use spreadsheetsfor different tasks P1 . The guide also needs to explain whyspreadsheets may need to be converted to other file formats P2 .
Grading tip
To make sure you cover all the required material, check theunit content in the specification under Learning outcome 1.
Assessment activity27.1
P1 P2PLTS
Researching the different uses of
spreadsheets will provide evidence
that you are an independent
enquirer.
Functional skills
Writing the guide will provide
evidence for your Functional English
skills in writing.
2.1 FormulaeFormulae provide the real power in spreadsheets. They are used to carry
out calculations. The key thing to remember is that, if you want to enter
a formula in a cell, it must begin with an equals sign (=). Lets look at a
simple example. The following formula will add together two numbers:
= 6 + 8
If you type this formula into a spreadsheet cell, the cell will display the
answer: the number 14. Thats because the cells in the worksheet display
the result of the formula; the formula itself is displayed in the formula
barwhen the cell pointer(the thick black box around a cell) is located
on that cell (see Figure 27.3).
Formula bar in Excelthis is located
under the Ribbon and shows the formula
of the current cell (if it contains one). The
cell itself shows the result of the formula.
Cell pointer indicates the current cell.
Before you can enter anything into a cell,
you must move the cell pointer usingthe cursor keys or the mouse to the cell
where you want to make the entry.
Key terms
Figure 27.3: The formula bar
7/26/2019 Unit 27 Spreadsheet Modelling
9/44
Unit 27Spreadsheet m
The cell pointer can be moved by the mouse by clicking in the cell
where you want it located, or by using the cursor keys to move one cell
at a time.
Entering actual values in a formula is fine, but it is much more useful to
be able to enter a cell addressinstead. If we enter the value 6 in cell
B5, we can change our formula to the following:
=B5+8
You can edit the formula by clicking in the formula bar, deleting the
number 6 and typing the cell address B5. The result of the formula (in
C5) will still be 14. However, if we make a change to the value in B5, e.g.
entering 12 instead of 6, the formula in C5 automatically recalculates the
new result. Figure 27.4 shows the changed formula.
Cell address the method used to refe
to the contents of a particular cell in a
formula. The cell address consists of the
column letter and row number of the ce
Key term
You can write a formula to add, subtract, divide, multiply and raise to
power. The symbols you need to use are shown in Table 27.1.
Table 27.1: Arithmetic symbols
Symbol Meaning
+ Add
- Subtract
* Multiply
/ Divide
^ Raise to power
Figure 27.4: Formula using cell address
7/26/2019 Unit 27 Spreadsheet Modelling
10/440
BTECs own resources
2.2 Spreadsheet models
A financial spreadsheet modelLets look at a simple example of how a spreadsheet model can be
used. Imagine you are saving money to buy a car that costs around
1,500. You want to buy the car in about nine months time, but youdont know how much youll need to save each month to reach your
target. The spreadsheet shown in Figure 27.5 shows the basic layout.
Figure 27.5: Saving for a car spreadsheet
The amount saved each month in B4 is a number, and so is the number
of months in D4. These two amounts need to be multiplied together to
give the total amount saved. A formula is needed in F4, which is:
=B4*D4
The target amount in H4 is entered
as the value of 1500. The shortfall (or
surplus) is the difference between the
amount saved (in F4) and the target
amount in H4. The following formula
will calculate the shortfall:
=H4-F4
Figure 27.6 shows the spreadsheet
completed, with example values incells B4 and D4.
Figure 27.6: Completed spreadsheet
7/26/2019 Unit 27 Spreadsheet Modelling
11/44
Unit 27Spreadsheet m
This demonstrates one of the main benefits of spreadsheets as the
formulae are constantly recalculated, we can change the amount saved
each month (in B4) and the number of months (in D4) to investigate
different possibilities. This kind of spreadsheet is sometimes called a
What if...? spreadsheet, since we can use it to answer questions such as:
What if you could only save 75 a month? Changing the number of
months shows it will take 20 months to save for the car. What if you choose a cheaper car, costing 900? Keeping the
number of months as nine, how much will you need to save each
month?
A budget spreadsheetAnother common type of spreadsheet is the budget spreadsheet. In
this type, columns of figures representing income or outgoings, to or
from various sources, are totalled up. Imagine you want to estimate the
monthly cost of running a car over four months. Figure 27.7 shows a
spreadsheet set up to calculate monthly costs. The values entered have
been formatted as currency. You can do this either by entering a signin front of each value as you type it or by highlighting all the cells with
the cell pointer (by dragging across them with the mouse pointer) and
clicking the Currencybutton in the Formattingtoolbar.
Since the costs of petrol and insurance stay the same each month, you
can enter the value once then copy and paste it into the other cells. Ifyou highlight all the cells where you want to paste the value, you can
then paste multiple copies in one go.
Relative cell referencingTo add up the costs for the month of January, you could enter the
following formula:
=C3+C4+C5
Figure 27.7: Monthly cost spreadsheet
7/26/2019 Unit 27 Spreadsheet Modelling
12/442
BTECs own resources
Once this formula has been entered, it can be copied as well. However,
when you copy formulae, something very important happens. In other
applications, when you copy and paste something it stays the same,
but not with spreadsheet formulae. Instead, the cell addresses change
relative to the cell into which they are copied.
When we copy this formula along the columns (i.e. into columns D,
E and F), the column letters in the formula change although the rownumbers remain the same. This is exactly what we want to happen it
means the formula adds up the correct values for each month. The
effect is known as relative cell referencing. Later in this unit we will
look at situations where you do not want the cell addresses to change
when you copy a formula this is called absolute cell referencing(see
pages 2123).
Figure 27.8 shows the completed spreadsheet.
Relative cell referencing a celladdress that changes when it is copied
to a different cell.
Absolute cell referencing a cell
address that does not change when you
copy it.
Key terms
Figure 27.8: The completed spreadsheet
Because spreadsheet software allows you to copy both values and
formulae simply, this makes it easy to create large spreadsheets. Since
the cell addresses in the formulae are automatically adjusted as you
copy them, you only have to enter them once. Many financial budget
spreadsheets include figures for a whole 12 months, i.e. one year. If you
only have to enter a formula to add up a monthly total once, instead of
12 times, this obviously saves a lot of time.
Complex formulaeMathematical precedence
Mathematical precedence means the order that calculations are done
in a complex formula. For example, what do you think the result of the
following formula would be?
=5+2*2
You might imagine that the result would be 14, because 5+2 is 7, then
multiplied by 2 is 14. However, calculations in spreadsheets are not
7/26/2019 Unit 27 Spreadsheet Modelling
13/44
Unit 27Spreadsheet m
done left to right. They are done based on the order of mathematical
precedence, and multiplication is done before addition. So the result
would be 2 multiplied by 2 is 4, then add 5 is 9.
The order of mathematical precedence is shown in Table 27.2.
Table 27.2: The order of mathematical precedence
Order Function Symbol
1 Brackets ()
2 Raise to power ^
3 Divide /
4 Multiply *
5 Add +
6 Subtract -
Note that anything in brackets is done first, so to get the answer 14 from
the previous example, the formula would need to be:
=(5+2)*2
2.3 FunctionsIn addition to the arithmetic operators we have used so far, formulae
can also include functions that carry out a wide range of mathematical
calculations. Excelhas hundreds of functions, but well look at just a
few of the most useful ones.
The Sum functionThe Sumfunction is one of the most widely usedfunctions. It is used to add up a column or row ofvalues. It is used so often that there is anAutoSumbutton on the Hometab of the Ribbon thatautomatically creates a formula using the Sumfunction.
First, lets look at how to use the Sumfunction
manually, so that we can understand how it worksbefore looking at the automatic version.
Imagine you have a spreadsheet like the one shownin Figure 27.9. This spreadsheet might be used by agames shop. It lists all the games they have, the price
and the number in stock.To add up the total number of games in stock, youcould enter a formula in C14 that adds each cellone by one, but this would be a long-winded way ofdoing it. The Sumfunction is much easier to use you only need to enter the starting cell (C4) and theending cell (C14) in the list to be added, separated by
a colon, like this:
=SUM(C4:C13) Figure 27.9: Games Store spreadsheet
Did you know?
In Figure 27.9, Column A has been
widened to fit the names of the
games. You do this by moving the
mouse pointer into the grey title b
of the columns, between the columyou want to widen and the next on
(between columns A and B in this
case). When the two-headed arrow
mouse pointer appears, you click a
drag the line to the right to widen
column A.
7/26/2019 Unit 27 Spreadsheet Modelling
14/444
BTECs own resources
If you useAutoSumbutton in the Ribbon, you dont have to type
anything. Just click in the cell where the formula should go (C15) and
click theAutoSumbutton. Excellooks for a row or column of numbers
above or to the left of the currently selected cell and creates the
formula using the Sumfunction for you (see Figure 27.10). It displays
the formula for you to check, and when you press the Enterbutton it
completes the automatic creation of the formula.
Figure 27.10: The AutoSum button
The Min, Max and Average functionsThese statisticalfunctions work in a similar way to the Sumfunction, but
there is no Ribbon button to create them automatically.
To find the maximum price of a game you would enter the following formula:
=MAX(B4:B13)
Column D on the spreadsheet shown in Figure 27.10 is meant to displaythe value of the games in stock (the price multiplied by the quantity).Enter the correct formula in D4 and copy it down to D14, then use the
AutoSumbutton to calculate the total value of the games in stock.
Activity: Using the AutoSum button
Statistics the science of making sense
of data.
Key term
7/26/2019 Unit 27 Spreadsheet Modelling
15/44
Unit 27Spreadsheet m
The Minfunction works in the same way and displays the minimum
value in the range.
TheAveragefunction displays the average value (or mean) across
the range.
The Count and Countif functionsCountis another simple statistical function. It counts the number of cells
within a range that contain numbers. For example, if we use the GamesStore spreadsheet shown above and enter the formula =Count(C4:C14),we will get the result 11. Thats because there are 11 cells in the range
that contain a number (all of them in this case).
The Countiffunction adds the ability to count only the values in a
range that meet certain criteria. The criteria can be a single value (such
as 3), a text value (such as Yes) or an expression using a comparison
operator (such as >10). Note that expressions and text values must be
enclosed in double quotation marks.
Enter the formulae to calculate the minimum, maximum and averageprices of the games. When complete, the spreadsheet should looklike Figure 27.11.
Activity: Finding minimum,maximum and average values
Figure 27.11: Spreadsheet with minimum, maximum and average prices
Did you know?
The Count function counts the cell
only if it contains a number. If the c
contains text it will not be counted
7/26/2019 Unit 27 Spreadsheet Modelling
16/446
BTECs own resources
Table 27.3 shows the comparison operators you can use.
Table 27.3: Comparison operators
Symbol Meaning
= Equal to
> Greater than
< Less than
>= Greater than or equal to
10,Too much, Not enough)
7/26/2019 Unit 27 Spreadsheet Modelling
17/44
Unit 27Spreadsheet m
In this example, if the value in C4 is greater than 10, then the text Too
much is displayed in the cell that contains the Iffunction. If the value in
C4 is not greater than 10, then the text Not enough is displayed.
These actions could also be a calculation, for example:
=IF(C4>10, C4+2, C4-2)
Here, if the value in C4 is greater than 10, then that value has 2 added
to it and the result is placed in the cell that contains the Ifstatement. If
the value in C4 is less than 10, then 2 is subtracted.
The If function in use
Now lets look at a real example of the Iffunction in use. Remember the
Games Store spreadsheet we used to demonstrate the other functions.
On page 16 we used the Countiffunction to show the number of
games that need reordering because the quantity in stock has fallen
below six. However, this function does not tell us whichgames need
reordering, only how many there are. With the Iffunction we can display
a message next to the game telling us to reorder it.
We start off by entering the formula using the Iffunction in cell E4. Thetest is Is C4 (the quantity) less than 6? The action, if the test is true (i.e.
C4 is less than 6) is to display the text Reorder. The action if the test is
false (i.e. C4 is 6 or more) is to display a dash. The formula is shown in
Figure 27.12.
Figure 27.12: The formula using the If function
7/26/2019 Unit 27 Spreadsheet Modelling
18/448
BTECs own resources
Once you have entered the formula in E4, copy it down through cells
E5 to E14. You can do this by copying and pasting or you can use the
copy box on the current cell pointer. This is the small black box on the
bottom-right corner of the current cell pointer, as shown in Figure 27.13.
When you move the mouse pointer over the copy box, it changes to a
black cross. If you drag down through the cells that you want to copy
into (E5 to E14) with the black cross mouse pointer, the formula will be
copied for you. The completed spreadsheet is shown in Figure 27.14.
Figure 27.13: The cell pointer copy box
Figure 27.14: The completed spreadsheet
7/26/2019 Unit 27 Spreadsheet Modelling
19/44
Unit 27Spreadsheet m
Using AND and ORThe Iffunction used in the previous example was able to test only one
cell (C4). However, there may be situations where you want to test the
values in two or more cells and do something if both the tests are true.
The AND logical operator
Lets look at an example. The Games Store wants to discount (reduce)the price of any game that costs over 26 if there are 10 or more
in stock. Here there are two tests that need to be done (>26 and
>=10). We only want to discount the game if both the tests are true,
so we use the AND logical operator. Figure 27.15 shows the modified
Iffunction.
The tests are now preceded by AND,
like this:
AND(C4>=10,B4>26)
If the test is true (i.e. we have more
than 10 in stock and the price is over
26), then the price in B4 has 10
subtracted from it. Otherwise the
price is kept the same. The complete
formula looks like this:
=IF(AND(C4>=10,B4>26),B4-10,B4)
Once the formula is complete you can
copy it down the rest of the column.
If you check carefully, you should see
that the prices have been reduced
on the games that meet the two test
criteria, as shown in Figure 27.16.
Figure 27.15: If function using AND
Figure 27.16: The new reduced prices (highlighted in red)
7/26/2019 Unit 27 Spreadsheet Modelling
20/4420
BTECs own resources
The OR logical operator
Using theANDlogical operator means that both tests must be true for
the true action to be carried out. However, if you use the ORlogical
operator, then the true action will be carried out if either one of the
tests is true.
If we modify the formula just entered to use OR, then the price of the
game will be reduced if there are 10 or more in stock or if the gamecosts over 26. This is shown in Figure 27.17. Note that now the prices
of almost all the games are reduced, since most of them meet one or
other of the test criteria.
Figure 27.17: Using the OR logical operator
Excelhas many more functions than the few we have looked at here.Find out more about the other functions by searching in Help for listof worksheet functions.
If you want a real challenge, find out how the following worksheetfunctions can be used and create example spreadsheets that usethem:
Today
Rand
Vlookup
Weekday.
Activity: Other worksheetfunctions
7/26/2019 Unit 27 Spreadsheet Modelling
21/44
Unit 27Spreadsheet m
2.4 Entering and editing data
Absolute and relative cell referencingWeve already introduced the concept of relative cell referencing.
This is the way cell addresses in formulae change when you copy
them. However, there are some situations when you dont want thecell address in a formula to change when you copy it. The following
example demonstrates why.
Well use the Games Store spreadsheet again, but for simplicity well
leave out the Iffunction formulae. This time we want to have a sale and
reduce all the prices by between 5 and 15 per cent. But we want to do
a bit of What if...? experimentation to see how different percentages
will affect the total value of our stock. Figure 27.18 shows the modified
version of the spreadsheet with an example percentage reduction
already entered in cell B16.
Did you know?
To enter a value as a percentage,
simply type the %sign after the
number.
We need to enter a formula in E4 to reduce the existing price in B4 by
the percentage in B16. First we multiply these two values together to
get 10 per cent of the current price (3.15). Then we need to subtract
that from the current price to get the sale price. The formula we need is:
=B4B4*B16
Figure 27.18: Games Store sale spreadsheet
7/26/2019 Unit 27 Spreadsheet Modelling
22/4422
BTECs own resources
We dont need brackets here, as the multiplication is done first anyway.
If we now copy this formula down the rest of the column we find that a
problem occurs, as shown in Figure 27.19.
Figure 27.19: Copying the formula
Figure 27.20: An absolute reference
The 10 per cent reduction has worked correctly on the first price, butnone of the other prices have been reduced. If we look at the formula
in E5 we can see why (look in the formula bar in Figure 27.19). Relative
referencing has changed the original B4 in the formula to B5 this is
correct as the value in B5 is the price of the next game. But it has also
changed B16, the cell with the percentage reduction, to B17, which
contains nothing. We dont want that part of the address to change
when we copy the formula we want it to stay fixed as B16. Fixing a cell
address so that it does not change is called absolutereferencing.
Did you know?
Pressing the F4 key (function key on
the top of your keyboard) after you
have entered a cell address will insert
the $ sign in front of the column
letter and row number for you.
7/26/2019 Unit 27 Spreadsheet Modelling
23/44
Unit 27Spreadsheet m
To make that part of the formula
use absolute referencing, we need
to return to the formula in E4 and
edit it in the formula bar. Click in
front of B16 then enter a dollar ($)
sign in front of the B and another $
sign in front of the 16. It should now
read $B$16, as shown inFigure 27.20.
Now, if you copy this formula down
through the column, the B4 part of
the formula will change (because of
relative referencing) but the B16 part
will not change (because of absolute
referencing). This new version of the
formula will display reduced prices
for all the games, as shown in
Figure 27.21.
If you wanted to fix only the row or
the column address, instead of both,
you can do this by inserting the $
sign in front of the column letter or
row number only. Figure 27.21: Reduced prices for all games
To complete the spreadsheet, add a formula in column F to calculatethe value of the games with their reduced prices (quantity multipliedby sale price). Then use theAutoSumbutton to provide a new totalvalue of the stock in cell F14.
What is the maximum percentage sale reduction that can begiven while keeping the total value of the stock above 2000?
Activity: Using absolutereferencing
Autofilling cellsSpreadsheet software contains lots of features to make creating
large spreadsheets easy; one of those features isAutoFill. Manybudget spreadsheets have the months across the top of the columns
(like the car cost calculator we created on pages 1012). Instead of
having to type each month, you can just type the first month. (It doesnt
have to be January you can start with any month and you can use
the abbreviated version, such as Jan, if you wish.) Then use the cell
pointer copy box (see page 8) to copy the cell across as many cells as
you need. AutoFill will enter the month names for you, as shown in
Figure 27.22.
7/26/2019 Unit 27 Spreadsheet Modelling
24/4424
BTECs own resources
Figure 27.22: Using AutoFill to complete month names
You can use AutoFill to enter the days of the week in the same way either
the full names (e.g. Monday) or the abbreviated versions (e.g. Mon). You
can also enter a date (e.g. 04/07/2011) and AutoFill will fill in subsequent
dates for as many days as you wish.
AutoFill can also complete a sequence of numbers or dates if you show it
what sequence you want. For example, to number cells sequentially, just
type 1 in the first cell you want to number, then 2 in the next one. Then
select these two cells by dragging across them
with the white-cross mouse shape, click and drag
on the copy box and keep dragging for however
many cells you want to number. AutoFill will fill in
the numbers for you.
Another example is if you want a series of cells
to show the dates on each Monday for severalweeks. Just enter the first two dates for example
22 March 2010 is a Monday, and the following
Monday is 29 March 2010 in two cells that are
next to each other. Select these cells and then use
the copy box to list as many Monday dates as you
require (see Figure 27.23). This can make creating
a timetable or schedule easy, as you dont need to
look up each date.
2.5 AutomationsLinking spreadsheetsOne of the benefits of having multiple worksheets in one spreadsheet is that
you can link information between the worksheets. You can see the benefits
of this by looking at some examples. There are two ways to create links:
enter links between worksheets as formulae
use Paste Link.
Figure 27.23: Using AutoFill to enter dates
7/26/2019 Unit 27 Spreadsheet Modelling
25/44
Unit 27Spreadsheet m
How to... Link spreadsheets using manual links
Figure 27.24: The Games shops sales spreadshe
Figure 27.25: Total Sales worksheet
Figure 27.26: Linking the worksheets
Imagine you have two computer games shops one in Luton and
one in Watford. You keep a record of each shops sales on two
worksheets in the same spreadsheet. The spreadsheet is shown in
Figure 27.24, with the Luton shop worksheet currently displayed.
The worksheet for the Watford shop is set up in exactly the same
way only the sales figures are different.
The worksheets have been given names (look at the tabs at
the bottom of the worksheets), rather than just Sheet1, Sheet2,
etc. (You can do this by double-clicking on the sheet name and
typing in the name you want.)
Now we are going to create a third worksheet, called Total
Sales, which will show the combined total sales from both the
Luton and Watford shops. The basic layout of this worksheet is
shown in Figure 27.25.
To copy the values from the other worksheets:
First click in cell B4, which is where the January total from
the Luton shop will go.
Type an equals sign to start a formula.
Now click on the Luton shop worksheet name to swap to
that worksheet.
Click in B7 on the Luton shop worksheet (which contains the
January total). Notice that, on the formula bar, the address
of that cell in that worksheet (Luton shop!B7) has been
entered. (The worksheet name is in single quotes followed
by an exclamation mark and the cell name. This is the
format of a cell address that contains a worksheet name.)
(See Figure 27.26.)
Now press Enterto complete the formula.
You will now be returned to the Total Sales worksheet, with
the value from the Luton shop worksheet displayed. This
value is linked with the Luton shop worksheet if a change
is made to that value on the Luton shop worksheet, it will
change here too.
Now copy the formula that you created for the Luton Shop
January sales total across to February and March (cells C4
and D4). Relative addressing works in just the same way
as it does with cells that are on the same worksheet the
formula adjusts the cell addresses to pick up the correctmonthly totals.
Insert the totals for the Watford shop in the same way
create a formula that links with the Watford shop worksheet
for January then copy the formula across for February and
March. The grand totals can be completed using a simple
formula (e.g. =B4+B5 for January, and so on).
The completed sheet should look like Figure 27.27.Figure 27.27: The completed Total Sales sheet
7/26/2019 Unit 27 Spreadsheet Modelling
26/4426
BTECs own resources
How to Link spreadsheets using Paste Links
Paste Linkprovides an alternative method for creating links between
worksheets.
Click on the cell containing the formula you want to copy (e.g. B7 in
the Luton worksheet) and choose Editthen Copy(or click the copy
icon in the Ribbon).
Now go to the cell where you want the formula to be copied into
(e.g. B4 in the Total Sales worksheet) and choose Edit thenPaste
Special. This will display the Paste Specialdialog box.
Click the Paste Linkbutton and the link formula will be inserted.
However, note that the cell references have been made absolute, so
the formulae cannot be copied as described above. So although Paste
Linkprovides an easy way to create links between worksheets, in this
example it would be easier to create the linking formulae manually.
MacrosMacros allow regularly used functions to be automated. A task that might
take several keystrokes or menu selections can be simplified by creating
a macro that carries out the task with a single mouse click. The subject of
macros is covered in Unit 9: Customising software, pages 164169.
2.6 Refining spreadsheet models
Improving efficiency
Excel
provides many shortcut key combinations to make it easy tomove around large or multiple worksheets. Some of the more useful
ones are listed in Table 27.4.
Table 27.4: Commonly used shortcut keys
Shortcut key Effect
For moving around a worksheet
Ctrl + End Moves cell pointer to the last used cell in aworksheet (bottom-right cell)
Ctrl + Home Moves cell pointer to cell A1
Home Moves cell pointer to the beginning (i.e.column A) of current row
Page Down Moves one screen down
Page Up Moves one screen up
Selecting cells
Ctrl + A Selects the current data region
Ctrl Allows you to select non-adjacent areas (i.e.areas that are not next to each other)
Data region an area of cells that
contains something and is surrounded
by empty cells or the edge of the
worksheet.
Key term
7/26/2019 Unit 27 Spreadsheet Modelling
27/44
Unit 27Spreadsheet m
Moving between worksheets
Ctrl + Page Up Move to next worksheet
Ctrl + Page Down Move to previous worksheet
Formatting
Ctrl + Shift + $ Applies currency format
Ctrl + Shift + % Applies percentage format
There are many more shortcut keys, but it can be difficult to remember
them all unless you use them often. You can find out about them all by
searching the Help menu in Excel.
2.7 Combining informationThere are some situations when you will want to select information
created in Exceland insert it into another software package, such as a
Worddocument. For example, you may wish to do this if you need toproduce a financial report.
Simple copy and pasteThe simplest way to insert data into a Worddocument is to copy the
required cells from Exceland paste the data into Word. Once pasted
into a Worddocument, worksheet cells will become a Wordtable and
can be edited in the normal way. An example is shown in Figure 27.28,
but as you can see, the columns of the table need widening to display
the data on one line.
Cells pasted in this way are no longer connected with the originalspreadsheet.
Table 27.4: Contd.
Figure 27.28: Excelspreadsheet
cells pasted into a Worddocument
7/26/2019 Unit 27 Spreadsheet Modelling
28/4428
BTECs own resources
Retaining a link to the original dataIts also possible for the pasted cells in the Worddocument to remain
linked with the original spreadsheet, so that changes made in the
spreadsheet will be reflected in the pasted cells in the Word document.
How to Save a spreadsheet file
Save a file in Excelby going to the Officemenu and choosing Save. To
save an existing file with a different name, choose Save As. Alternatively,
you can use the Savebutton in the Quick Accesstoolbar.
If the spreadsheet has not been previously saved, or you choose Save
As, you will see the Save Asdialog box. You will be offered a default file
name such as Book1.xls.
If you want a different format for your spreadsheet, you can select the
format you want from the drop-down list from the Save as typebox on
the Save Asdialog box.
2.8 File handlingYou must, of course, save the spreadsheet file you produce. Normally
you will save the spreadsheet as an Excelfile, but in some situations
you may want to export the file in an alternative format, for example to
use the spreadsheet in a database or web page.
When you are creating lots of spreadsheets and other files, its a good
idea to create a folder structure to keep related files together.
Did you know?
Its not a good idea to use the default
name such as Book1, as it tells you
very little about what the spreadsheet
contains. It is much better to think ofa more descriptive name that gives
some clue to the contents of the
spreadsheet. For example, you might
call a monthly budget spreadsheet
Budget for Jan 11.
How to Retain a link to the original data
Copythe cells from Exceland switch to the Worddocument.
Select the Hometab in the ribbon and click the
arrow under the Pasteicon.
From the menu that appears choose Paste Special.
This will display the Paste Specialdialog box (see
Figure 27.29). Click the Paste Linkbutton.
Select the document type Microsoft Office
Excel Worksheet Objectfrom the list box then
click OK.
The cells will be inserted in the Worddocument
as before, but not as a Wordtable. Rather, the
cells behave as a graphic image.
To edit the cells, double click on them and the
original spreadsheet will open up in Excelbut
inside Word. Figure 27.29: The Paste Special dialog box
7/26/2019 Unit 27 Spreadsheet Modelling
29/44
Unit 27Spreadsheet m
2.9 Presenting data
So far weve kept our spreadsheets fairly plain, but there are many
options that allow us to format the data in a spreadsheet, thereby
improving the way it is presented.
Data typesThere are several different ways that numbers can be formatted
in Excel:
Default number format.This is the format you get when you enter
plain numbers.
Comma format.This numeric format will add two digits after the
decimal point and a comma after the thousands. There is a button
on the Hometab to choose this format.
Currency.If you enter a number with a currency symbol ( in the UK)
before it, the currency format will automatically be applied. There is
also a button in the Hometab to apply it.
Percentage.If you enter a number followed by a % sign, the
percentage format will be applied. There is also a button in the
Hometab to apply it.
Date.If you enter a number in a date format (such as 7/5/10 or
7-May-10), the date format will be applied.
Figure 27.30 shows the same number (1234) formatted in different ways
using the standard Hometab buttons. Note that the percentage format
button multiplies a number by 100, so if you want, for example, 50% to
be displayed, then you must enter 0.5.
Figure 27.30: The number formats
7/26/2019 Unit 27 Spreadsheet Modelling
30/4430
BTECs own resources
Date format is automatically set in a cell if you enter something that
Excelrecognises as a date, such as 5/2/06 or 5-Feb-06.
Deleting data
If you delete the contents of a cell or cells that have been formatted (by
selecting the cells with the current cell pointer and pressing Delete), you
will delete what is in the cell but you will not remove the formatting. This
can have some confusing results. For example, if you enter a date in acell, the cell will automatically be formatted as a date. If you then delete
the date but at some time later enter a simple number in the same
cell, the number will be displayed as a date. If this happens, you can
change the formatting using one of the format buttons in the toolbar.
Alternatively, when you delete the date initially, use theClearicon(a
pencil eraser) on theHometab and choose Clear allfrom the drop-
down menu; this will remove both the contents and the formatting.
Increase and Decrease decimal
Also shown in Figure 27.30 are the Increasedecimaland Decrease
decimalbuttons (next to the number format buttons). These allow you
to control the number of digits displayed after the decimal point.
Formatting cellsExcelhas a full range of facilities to control the way information is
displayed, including being able to modify the font, size, attributes
(bold, italics, underline) and alignment (within the cell). As with the
number formats, you can set many of these using the icons in the Home
tab, but you can find the full range of options by clicking the menu
button on the bottom right of each section.
You can set many other number formats, as well as different versionsof the formats already described.
On the Hometab, click the menu launcher button at the bottomright of the Numbersection. This brings the Formatcellsdialogbox on to the screen.
The Numbertab allows you to choose the different formats fornumbers. Have a look at this dialog box and experiment withthe different formats. If there are any that you dont understand,or that you want more information about, search under help fornumber formats.
If you want a real challenge, consider a mythical currency calledthe Zap. This has a rather strange format: the currency symbolis a capital Z and it has three digits after the decimal point (thereare 1000 pennies in a Zap). The pennies are always preceded bya letter p, so 25 Zap and 75 pennies would be written Z25.p075.Create a custom number format for the Zap currency.
Activity: Experimenting withnumber formats
7/26/2019 Unit 27 Spreadsheet Modelling
31/44
Unit 27Spreadsheet m
Some of the formats are worth mentioning in more detail:
Colours. You can set both the background colour of the cell and the
colour of its contents. The background colour button in the Font
section of the Hometab is a drop-down button called Fill Color.
When you click on it, it displays a choice of different colours.
Borders. Its often useful to add borders to your spreadsheet, to
highlight important information such as totals and to separatedata into different sections. The Bordersbutton is also a drop-
down button. It displays diagrams showing how the borders will be
applied to the currently selected cell or cells.
Alignment. By default, numbers are aligned to the right of a cell
and text to the left, but you can change this alignment using the
buttons in the toolbar. If you click the menu launcher button at
the bottom of theAlignmentsection of the Hometab (see Figure
27.31) you will find some useful additional options you can set.
Figure 27.31: The Alignment tab of the Format Cells dialog box
You can set the vertical alignment in rows for text to be displayed at the
top, bottom or centre. You can also set the orientation of text so that you
can, for example, have text rotated through 90 degrees (i.e. on its side).
The Text controlcheck boxes allow you to set the following options:
Wrap text. Text wraps within the cell (as it does in a text box).
Shrink to fit.The font size is automatically reduced so that text fits
in the cell. Without this option, when there is too much text to fit in
the cell, it will overflow across other cells.
Merge cells.This allows several cells to be merged so that they are
treated as one cell. This option can be useful if you want to enter a
lot of text, especially if combined with Text Wrap.
7/26/2019 Unit 27 Spreadsheet Modelling
32/4432
BTECs own resources
There is a wide range of formatting options available. Make sure that
you use these options to improve the readability and appearance of
your spreadsheets. However, dont overuse them or your spreadsheets
will look garish and unprofessional. Also, make sure you use formatting
in a consistent way, otherwise your spreadsheets will look messy.
Formatting sheetsUnlike a word-processing program, Exceldoes not display the
spreadsheet as it will look when printed. You need to check this and, if
necessary, adjust various settings, such as the position of page breaks
and the page orientation.
To check the way the spreadsheet will look when printed, click the
Page Layoutbutton in the Viewtab on the Ribbon. You will then see a
display similar to Figure 27.32.
Figure 27.32: Page Layout view
Page settings
On a spreadsheet larger than a single page of paper, you can use the
Page Setupdialog box to make sure that there are no page breaks in
awkward places. There are several ways of doing this:
adjust the margins so that the spreadsheet fits on a single sheet of
paper
adjust the page orientation to portrait or landscape
scale the spreadsheet so it fits on one page
adjust the position of the page breaks.
You can display the Page Setupdialog box by clicking the menu button
at the bottom right of the Page Setupsection of the Page Layout tab.
7/26/2019 Unit 27 Spreadsheet Modelling
33/44
Unit 27Spreadsheet m
Adjust the margins
If the spreadsheet is slightly larger than one page, but not much bigger
than that, you can adjust the margins so that it fits onto one page. Click
the Marginsbutton on the PageLayouttab of the Ribbon. This will
display a series of pre-set margin options. Alternatively, you can click
Custom Marginsat the bottom of the menu to display the Marginstab
of the Page Setupdialog box, shown in Figure 27.33.
Adjust the page orientation
In some cases, adjusting the page orientation will enable a spreadsheet
to fit on a single sheet. You will need to adjust the page orientation in
any case to suit the layout of the spreadsheet. For example, if it has
more columns than rows, it will print better in landscape.
Select the Pagetab of the Page Setupdialog box and then set the
orientation.
Scale the spreadsheet
Scaling the spreadsheet means making it smaller or larger so it fits on a
single sheet of paper. This only works if the spreadsheet is only slightlylarger than one page, otherwise the text can get too small. On the Page
tab of the Page Setupdialog box, you can choose to scale to a fixed
percentage or to fit on a certain number of pages (Excelworks out the
percentage scaling for you).
Adjust the position of the page breaks
You can move the page breaks so they occur in more convenient
places (e.g. not right in the middle of a set of data). The Page Layout
view allows you to see where the page breaks fall in your document.
Figure 27.33: The Page Setup dialog box
7/26/2019 Unit 27 Spreadsheet Modelling
34/4434
BTECs own resources
(Remember that you can swap between Page Layoutand Normalview
using the icons on the Page Layouttab of the Ribbon.) By clicking the
Page Break Preview icon (next to the Page Layouticon), you can drag
them to the positions you want with your mouse.
If you drag the page breaks to the right or down, more information will
have to fit on a page, and the spreadsheet will automatically scale the
information to allow this. (See Figure 27.34.)
Figure 27.34: Page break preview
Header and footer
You can use the Header/Footertab of the Page Setupdialog box to
choose from a selection of preset header and footer entries or you can
enter your own custom information. There are various buttons that allow
you to add page numbers and dates, etc., and format them, as shown in
Figure 27.35.
Figure 27.35: The Header/Footer
dialog box
7/26/2019 Unit 27 Spreadsheet Modelling
35/44
Unit 27Spreadsheet m
Sheet
The Sheettab of the Page Setupdialog box offers several options for
printing:
Gridlines the lines separating rows and columns will appear in
print.
Row and column headings the numbers of the rows and letters
of the columns will appear in print Page order you can select the order in which the pages of data
will be printed, as indicated by the pictures within the dialog box.
If you dont want to print the whole spreadsheet, you can set a print
area. First select the area of the spreadsheet you want to print then click
the Print Areaicon in the Page Layoutsection of the Page Layouttab
in the Ribbon.
The university where you work as a trainee IT support specialisthas asked you to produce an automated class register using aspreadsheet. It should be formatted in a similar way to a paper-based class register, with learner names down the side and thedate of each class across the top. P3 , P4In addition to the things you would normally expect to find ona paper-based register, the spreadsheet version should displaypercentage attendance rates for each learner as the lessonsprogress. The spreadsheet should also display a warning if anylearners attendance falls below 80 per cent. P5
Once you have completed the spreadsheet, write an evaluation ofit suggesting further improvements that could be made. D1
Grading tips
To achieve D1 you will have to consider how well yourregister spreadsheet meets the users need. You might findit helpful to show it to a tutor and ask them how well theythink it would work as a class register, whats good aboutit and what could be better. Remember that when yousuggest further improvements you dont actually have todo the improvements, but you should explain how they willmake the spreadsheet better.
Assessment activity
27.2
P3 P4 P5 D1PLTS
Producing the register spreadsheetwill provide evidence that you are an
independent enquirerand a creati
thinker.
The evaluation you write for D1 will
provide evidence that you are a
reflective learner.
Functional skills
The spreadsheet you produce may
provide evidence for your Functiona
Mathsskills.
7/26/2019 Unit 27 Spreadsheet Modelling
36/4436
BTECs own resources
2.10 Analysing and interpretingdataExcelincludes some tools to help you analyse and interpret the data
in a spreadsheet. These tools can be particularly helpful when making
sense of large amounts of data.
Charts and graphsOne of the best ways to present data in an accessible format is to display
it as a graph or chart. Creating charts in Excelis quite easy, although
you need to be careful to make sure that the correct data is included.
How to... Create a chart using the chartwizard
To create a chart you use the Charts sectionon the Inserttab of the
Ribbon. The chart buttons work best with blocks of data that have
titles along the top and down the left-hand side. Figure 27.36 shows an
example of this layout. Before you click the Charticon you should select
all the data including the titles then click the type of chart you want (in
this case a column chart) and the subtype (2D column shown below).
Figure 27.36: Creating a chart
Selecting an appropriate type of chart
The type of chart you need to choose partly depends on the data you have.
Line and area chartshave data points that are joined up, so should
be used for data that represents a continuous change, such as
temperature over time.
Column or bar charts are better for financial data, such as the data
in Figure 27.36.
7/26/2019 Unit 27 Spreadsheet Modelling
37/44
Unit 27Spreadsheet m
Pie charts are good at representing proportions, such as the
percentage of people who voted for each party at an election. A
single pie chart cannot show multiple sets of data, as appears in
Figure 27.36. (We would need separate charts for North, South, East
and West regions.)
Choice of 2D or 3D is really personal preference, but 3D charts can
be hard to read accurately.
It may be that the standard chart Excelproduces is not quite what you
want. In that case, you can modify most aspects of the chart. You can also
resize your chart by dragging on the handles at the sides of the chart. Be
aware that if your chart is too small, the titles may not display properly.
x-axis the scale or items that run alon
the bottom of the chart.
y-axis the scale that runs up the side
the chart.
Key terms
How to Modify a chart
Once you have created a chart, or selected an existing
one, the Chart Toolsset of tabs will be added to the
Ribbon. In the Designtab you can do a number of thingssuch as:
change the chart type
change the title of the chart or the labels for the x
and y axis
change the colour scheme of the chart (the Chart
Stylessection provides a scrolling list of many
different colours and effects).
To select the data to use for the chart, the Select Data
icon in the Datasection allows you to choose the cells
to include or exclude from your chart. This is useful if the
data has an empty row or column in it, or if you want toleave out one of the rows or columns of data.
To choose a different chart layout, the Chart Layouts
section provides a scrolling list of different layouts. For
example, the standard chart does not have a title but you
can choose a layout with a title from this list. This will insert
the text Chart Titlein your chart, but you can click in this
and type your own title. Some of the chart layouts let you
add titles to the axis as well.
As well as using the Charttools to modify your chart, you
can also click on the part of the actual chart you want
to change. For example, you might want to change the
scale of thex-axisor y-axisof the chart. First click on the
axis to select it, then right click and choose Format Axis.This will display the Format Axisdialog box, as shown in
Figure 27.37.
In the example shown in Figure 27.37, the minimum value
on the y-axis has been changed to 2000 and the major
units indicated on the axis have been set to an interval of
2000. You can see the result on the chart itself.
Figure 27.37: The Format Axis
dialog box
Filtering and sorting listsDealing with lists and simple databases is one of the many strengths of
Excel. People often use Excelto keep track of lists, rather than using
a database product such as MicrosoftAccess, because it is easier to
understand and set up. In fact, all you really need to do to set up a list
in Excelis add field titles at the top.
7/26/2019 Unit 27 Spreadsheet Modelling
38/4438
BTECs own resources
Figure 27.38 shows a version of the Games Store spreadsheet we used
before. We will use it to look at how lists can be filtered and sorted. Every
column of data has a title (or fieldname in database terminology). Columns
for the types of game and the hardware platform have been added.
Figure 27.38: The Games Store games list
Filtering is more sophisticated than sorting, as it lets you pick out a
record or records in the list that match certain criteria.
How to Sort lists
There are various reasons why people want to sorts list to find the
cheapest, the newest, the best selling and so on. To sort a list, all you
need to do is make sure
the current cell pointer
is somewhere in the
column you want to sort,
then, from the Home
tab click Sort and Filter
and choseAZor ZA
(this works with both
alphabetic and numeric
data). Excelwill thensort the whole table
of data. Figure 27.39
shows the games sorted
in ascending order by
price (cheapest first).Figure 27.39: Games sorted by price
7/26/2019 Unit 27 Spreadsheet Modelling
39/44
Unit 27Spreadsheet m
How to Filter data
Figure 27.40: Filtering a list
Figure 27.41: A filter applied
Figure 27.42: Custom Filter dialog box
Figure 27.43: Games under 30
As long as you have field titles in the first row of your list,
you can use the data filter.
Make sure the cell pointer is somewhere in the list
of data and then choose Filterfrom the Sort andFilterdrop-down menu. This will display a little
drop-down arrow beside each of the fieldnames in
the top row of the list, as shown in Figure 27.40.
If you only want to display the Xbox games, click on
the arrow next to the Platformtitle and remove the
tick next to PS3 in the Text Filterarea at the bottom
of the menu, so only Xbox has the tick next to it (see
Figure 27.40).
Now click OKat the bottom of the menu and the
filter is applied (see Figure 27.41). The drop-down
box in the Platformcolumn now has a little filter
icon in it, indicating that the field has a filter applied.
To return to the display of all the data, click the Filter
icon again and the Select Alloption. Then click OK. You can apply more sophisticated filters if you wish.
For example, you might want to list all the games
with a price of less than 30. To do this, click the
Filtericon next to the Pricefieldname, then choose
the Numbersfiltersoption and the Less than
option. The Custom Filterdialog box shown in
Figure 27.42 will appear.
Enter 30in the box on the right (see Figure 27.42) and
click OKto apply the filter. Your list will now display
only games under 30, as shown in Figure 27.43.
7/26/2019 Unit 27 Spreadsheet Modelling
40/4440
BTECs own resources
Analysing large and complex
spreadsheetsWhen you are trying to analyse data from large and complex
spreadsheets, you may make more sense of the figures if you restrict
your analysis to just the totals or subtotals. Although sorting and
drawing charts make interpreting data easier, if there is a very largeamount of data in the first place, then the resulting chart, sort or search
may not make much sense.
For example, if you draw a bar chart from a very large amount of data,
then the resulting chart will have so many bars it will be difficult to read.
In this situation it may be better to create subtotals based on a date or
month range and then graph this data. The resulting chart will be much
smaller and, therefore, easier to read and interpret.
Just checking1. If a cell contains the number 10, and you use the percentage format button in the toolbar to format
the cell, what will be displayed?
2. Your spreadsheet is slightly larger than a single sheet of paper. How can you make it print on just
one sheet?
3. How can you select non-adjacent cells (i.e. cells that are not all together in one block)?
4. What must you do before you use the Filter menu option?
5. Where is the x-axis on a graph along the bottom or up the side?
You have been asked to further refine the registerspreadsheet you produced earlier.
1. Add some example data to your spreadsheet andcreate appropriate charts showing the learnersattendance percentage figures and the total classattendance each week over the weeks of thecourse. P6
2. Write a justification for using a chart to present thelearner attendance figures and for the type of chartyou chose. M2
3. The spreadsheet currently displays a warning if alearners attendance falls below 80 per cent. Adda facility to your spreadsheet so that the user canchange this percentage. Test your spreadsheet withdifferent percentages and check that the warningmessages work correctly. M1
4. Write a report for the Head of Departmentanalysing the attendance data, identifyingoverall trends for the whole class and forindividual learners. M3
Grading tips
It may be best to ask your tutor to providesome real attendance data for question 4. Justusing random data will not make analysis easy.
When writing your report for question 4, youmight comment that over the weeks of thecourse the overall attendance has improved.For individual learners their overall attendancemight have improved or got worse over thecourse, or there may have been several weekswhen they did not attend due to illness. Includethe chart you have created in the report.
Assessment activity 27.3 P6 M1 M2 M3
PLTS
Justifying the use of a chart will
demonstrate that you are a reflective
learner.
Analysing the attendance data
will demonstrate that you are anindependent enquirer.
Functional skills
Writing reports for these assessment
tasks will provide evidence for your
Functional Englishskills in writing.
7/26/2019 Unit 27 Spreadsheet Modelling
41/44
Unit 27Spreadsheet m
3. Be able to test and documentspreadsheet models
3.1 TestIts very easy to assume that, because a computer is doing the
calculations, they must be correct. However, the computer only does
what you tell it to do, so you must be careful that the formulae you enter
are correct. If not, the calculations will be done correctly but they will
be the wrong calculations! To make sure your formulae are correct, you
need to check them manually with a calculator. Where your spreadsheet
contains automations such as macros or links to other spreadsheets you
will need to check these work correctly. You should also check that the
formatting and layout of the spreadsheet is neat and consistent.
As well as checking that your spreadsheet works correctly, you also need
to check that it meets the requirements of the users you produced itfor. You can do this by revisiting the design document you originally
produced, which defines what the spreadsheet should do. Check to
make sure your spreadsheet does what you said it would do and you
havent forgotten anything.
3.2 DocumentationDocumentation is an important part of any solution. Producing a
working solution without documentation will lead to problems later.
The user guide you produce should provide all the required information
that your users will need to make use of the spreadsheet model. Youshould already be aware of how the users will want to use what you have
produced, and your documentation should guide them step-by-step
through that process. You will need to add a troubleshooting section
to your documentation which explains how to deal with common
problems.
As part of developing your documentation, you might find it useful to
show your spreadsheet model to someone who has not seen it before.
Ask them to try to use it following your step-by-step instructions. See
what problems they have and what questions they come up with.
7/26/2019 Unit 27 Spreadsheet Modelling
42/4442
1. Create another worksheet in your class register spreadsheetwhich contains the register for another class. Add someexample data for this register. Then create a third worksheetin your class register which will be used as a managementsummary of the attendance data from the other two sheets.The management summary sheet should only show the overalllearner attendance percentages, not the attendance figures foreach class. D2
2. To make a new register for a class it is necessary to copya blank register (with no attendance data in it) to a newworksheet. Record a macro for your class register spreadsheetwhich will do this task for you. D2
3. Test your class register to ensure it works correctly andcalculates learner attendance percentages correctly. P7
4. Produce user documentation for your register spreadsheetwhich explains how to use it. P8 .
Grading tips
As you are a learner, you will probably not have real endusers for your class register. But you should consider askingyour tutor or fellow learners to review what you have doneand compare it to your design. Doing this will help you toensure that your work meets the pass grade requirements(test a spreadsheet to ensure that it is fit for purpose). Itmay also provide some evidence for a distinction (evaluate aspreadsheet model suggesting further refinements).
Assessment activity27.4
P7 P8 D2Functional skills
Producing user documentation for
your spreadsheet will provide evidence
for your Functional English skills in
writing.
BTECs own resources
7/26/2019 Unit 27 Spreadsheet Modelling
43/44
Unit 27Spreadsheet mBTECs own resources
Simon Osoba
1. What spreadsheet skills will Simon need to use to producethe spreadsheet he mentions above?
2. What could spreadsheet models be used for in your schoolor college? Think of four or five different uses.
3. What about in business? Think about how spreadsheetscould be used in a small company such as a shop.
Thinkaboutit!
Junior Technician in an IT suort departmen
I have recently been working on a user
satisfaction survey. We do this every year to check how good ajob the users think we are doing. I was asked to create a spreadsheet that
we could put all the results in and analyse them. The IT director wanted chartsshowing the results for every question on the survey. I also had to link this years
spreadsheet with the results from last year, so she could compare the two and seewhere we are getting better and where we are getting worse.
I quite enjoy using spreadsheets there is so much they can do and there isalways something new to learn.
I use spreadsheets
frequently in my work. Most of the time Ijust use them to manage lists of data. For example,
I keep a spreadsheet of all the computers we have andthe software that is installed on them so we can checklicensing.
When we buy new equipment we often create a spreadsheetto compare different options. We put all the different pricesin and then play around with the quantities, suppliers andthings like cheaper or more expensive items, to see howthis changes the total cost.
WorkSpace
7/26/2019 Unit 27 Spreadsheet Modelling
44/44
BTECs own resources
Just checking
1. What are the different sorts of ways in which a spreadsheet can be used?
2. What are the formats in which you can save a spreadsheet? Why might you want to use these
different formats?
3. Explain the difference between relative cell referencing and absolute cell referencing
4. List four useful spreadsheet functions and explain what they do.
5. Explain how AND and OR logical operators can be used in an If function.
6. Explain what a macro is and how you can create one.
7. What are the main data types you can use to format numbers in a spreadsheet?
8. What are the main types of chart you can use and what sort of data is each type best at displaying?
9. Why is it important to test a spreadsheet?
Assignment tips
This unit links with Unit 9: Customising software. Both units require you to produce a macro, so you can
cover both requirements with the macro you create in this unit.
Remember that this unit is not just about spreadsheets it is also about spreadsheet models, so thespreadsheet you develop for assessment must have an aspect of modelling to it. Your spreadsheet needs
to have rules (based on formulae) which can be changed so you can see the effects.
Recommended