Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Duncan Williamson
excelmaster.co
February 2016
Duncan Williamson
duncanwil@gmail.com
Contents
Basic Functionality
There are various basic rules that we need to appreciate as we build a spreadsheet file. We will look
at each rule the first time we use it.
This is what a brand new, blank Excel 2013 spreadsheet file looks like:
We will look at the various parts of the screen as we go along but for now, a spreadsheet is just a
grid of what are called cells. Every cell has an address. In the screenshot of a blank spreadsheet file
above, the cursor is currently in cell column A, row 1 which is therefore cell A1. There are 1,048,576
rows and 16,384 columns in an Excel 2013 worksheet. If you enter =1048576*16384 in cell A1 and
press enter it will tell you how many cells are available in every worksheet!
The answer to that calculation might look like this: 1.72E+10. Excel does that! Its a scientists way of
saying 17,179,869,184. Just make column A wider to see that number. If you still cant see that
number wait until we look at cell formatting and well show you how to work with numbers like
1.72E+10.
The Ribbon
The ribbon is the name Microsoft gave to the organisation of menus and sub menus from Excel 2007
and onwards and there are eight separate ribbons or ribbon tabs to work with:
Devised and Prepared by Duncan Williamson February 2016
Page 4 of 36
Home
Insert
Page Layout
Formulas
Data
Review
View
Developer: this is not, however, installed by default and we will discuss how to install and use
it later
Home:
Insert:
Page Layout:
Formulas:
Data:
Review:
View:
You can see here in our QAT and the best way to understand what is there is to use it/play with it:
Save
Undo
Redo
Find and Select
New File (Ctrl+N)
Shapes
Print
Camera Tool
Form
Customise Quick Access Toolbar (thats the down arrow to the right of the QAT)
If we click on the Customise arrows it shows us a number of options, including the ones we have
already chosen:
Select anything you like; but the real power of the QAT comes when you click the More Commands
entry. Try it!
Go to any Excel work book or open a new one and
Click customise QAT
Click More Commands
This is what you should see now, the customise the Quick Access Toolbar Dialogue Box:
What this means is that you can add anything you see here to your own personalised QAT: select the
option you want, click the Add>> button in the centre of the dialogue box and either click OK or
select some more.
Look at the down arrow area at the top right of the dialogue box where you can choose to have your
selections appear in all documents or just in the current one. Of course, you can also remove one or
more entries from the QAT if you dont like them or if you feel you have finished with them: select
the entry to delete and click the Remove button that will then be highlighted for you.
Similarly, there is even more to choose because the drop down arrow selection at the top left of the
dialogue box allows you even more options.
You need to study these options carefully to appreciate the power of the QAT and how you can get
the most out of it.
=2+2 <Enter> ... of course it should say 4 once youd pressed the Enter key
In cell A2 type the following: =2-2 <Enter> ... did you get 0?
In cell A3 type the following: =2*2 <Enter> ... did you get 4 again?
Note: Excel uses the asterisk key for multiplying and not the letter x
In cell A4 type the following: =2/2 <Enter> ... did you get 1?
Note: Excel uses the backslash key for dividing rather than the sign
Now in column B, enter these and see what happens:
Cell
B1
B2
Formula
=2+3*4
=5/2/1
Answer
14
2.5
Comment
Make sure you know why the answer here is NOT 20
=15-10+7
=6/9
12
0.66667
1
2
3
4
5
6
7
8
9
Sum
Average
Minimum
Maximum
In cell
A6
A7
A8
A9
enter
enter
enter
enter
After you have finished, put your cursor back in cell A6 and you will see that Excel has
automatically capitalised the word SUM and the range A1:A5... and AVERAGE(A1:A5) ... and
MIN ... and MAX ... it ALWAYS does this and there is no need for you to type in capitals.
Notice how Excel deals with ranges: rather than writing out A1 to A5 or from A1 to A5 or all
of the numbers in the range A1 to A5 inclusive, it just puts the first cell in the range and the
last cell in the range and separates them with a colon ... A1:A5
Use the spreadsheet you have used in the previous example to find the sum, average, minimum and
maximum of the values in the range C1:C5, as follows:
1
2
3
A
24
52
13
C
103
67
55
12
28
93
67
Sum
Average
Minimum
Maximum
385
77
55
103
=SUM(C1:C5)
IF Statements
A spreadsheet is commonly treated only as a calculator by many people. There is nothing wrong with
that necessarily as it can contain a massive amount of data and many relationships as it is prepared
for those calculations. One major resource that has always been built into spreadsheets is the IF
statement. This section takes you through the way to set up a spreadsheet with basic IF statements
and highlights one or two ways in which an IF statement can be enhanced.
An IF statement has the following basic structure =IF(x meets a condition, do A otherwise do b)
More formally, that is: =IF(logical_test,value_if_true,value_if_false)
For example, in cell B1 if cell A1 is equal to 10, write the word yes in this cell otherwise write no,
again more formally: if the test is true, do something, otherwise do something else if the test is not
true:
B1: =IF(A1=10,Yes,No)
Clear or open a worksheet and enter 10 in cell A1 and the above formula in cell B1
Change the value in cell A1 to 8 then 3 then 14 and see what happens in cell B1
We can use any operator in our IF statement: for example, enter the following variations of the
above formula in the cells shown below and see what happens:
B1:
B2:
B3:
B4:
B5:
B6:
=IF(A1=10,Yes,No) ...
=IF(A1<10,Yes,No) ...
=IF(A1>10,Yes,No) ...
=IF(A1<>10,Yes,No) ...
=IF(A1<=10,Yes,No) ...
=IF(A1>=10,Yes,No) ...
IF A1 is
IF A1 is
IF A1 is
IF A1 is
IF A1 is
IF A1 is
equal to 10
less than 10
greater than 10
not equal to 10
less or equal to than 10
greater or equal to 10
You should have this now and make sure you understand why you get these results:
1
2
3
4
5
6
A
10
10
10
10
10
10
B
Yes
No
No
No
Yes
Yes
A
1
2
3
Month
Budget
Actual
Variance
Jan
12,276
11,780
496
Feb
10,803
14,649
-3846
Mar
15,207
14,566
641
Apr
16,307
14,568
1739
May
10,209
12,074
-1865
Jun
10,088
10,088
10
Jul
11,826
14,620
-2794
11
Aug
11,509
10,994
515
12
Sep
11,634
12,147
-513
13
Oct
11,193
12,720
-1527
14
Nov
11,653
11,603
50
15
Dec
14,090
13,666
424
Comment
Program the Comment range, starting in cell E4, with an IF statement that says Favourable if the
variance in column D is positive and Adverse if the variance in column D is negative.
You might be a quality controller or a teacher or a student or someone who needs to set and manage
thresholds. Program the following work sheet and program an IF statement in the P/F Column to
record Pass against any value in the Results Column that is greater than or equal to 55% and Fail to
anything less than 55%. Your answer should look like this:
Results
P/F
47%
Fail
56%
Pass
88%
Pass
57%
Pass
92%
Pass
83%
Pass
67%
Pass
36%
Fail
86%
Pass
100%
Pass
Nested IF Statements
A nested IF statement is one in which an IF statement can have other IF statements built into it, like
this:
=IF(A1>0,Favourable,IF(A1<0,Adverse,))
You can nest your IF statements up to 64 levels deep. Here is the screenshot of our variance example
from above with the original IF statement still included (column E) and the new nested IF statement
(column F) ... make sure you can see the benefit of the new IF statement by concentrating on the
results in June:
Devised and Prepared by Duncan Williamson February 2016
Page 11 of 36
1
2
3
Month
Budget
Actual
Variance
Comment
Jan
12,276
11,780
496
=IF(D4>=0,"Favoura
ble","Adverse")
5
6
7
8
9
10
11
12
13
14
15
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
10,803
15,207
16,307
10,209
10,088
11,826
11,509
11,634
11,193
11,653
14,090
14,649
14,566
14,568
12,074
10,088
14,620
10,994
12,147
12,720
11,603
13,666
-3846
641
1739
-1865
0
-2794
515
-513
-1527
50
424
Adverse
Favourable
Favourable
Adverse
Favourable
Adverse
Favourable
Adverse
Adverse
Favourable
Favourable
Comment Nested
IF
=IF(D4>0,"Favoura
ble",IF(D4<0,"Adve
rse","-"))
Adverse
Favourable
Favourable
Adverse
Adverse
Favourable
Adverse
Adverse
Favourable
Favourable
With the original IF statement, all I said was, if a number is positive it is Favourable otherwise it is
Adverse. I did not allow for a zero value and Excel quite rightly said that according to our IF
statement, a zero value is something other than favourable so it must be Adverse.
Our nested IF statement, though, says this:
P/F
P/F
71%
Pass
Pass
60%
Pass
Pass
49%
Fail
Fail
46%
Fail
Fail
34%
Fail
Bad Fail
63%
Pass
Pass
64%
Pass
Pass
58%
Pass
Pass
92%
Pass
Pass
60%
Pass
Pass
In this revised table, the third column, nested IF, is programmed as follows, in row one which is cell
I19 in the spreadsheet file:
=IF(G19>=0.55,"Pass",IF(G19>=0.35,"Fail","Bad Fail"))
Devised and Prepared by Duncan Williamson February 2016
Page 12 of 36
Auto Fill
Another labour saving device from Excel is the Auto Fill function. Try this:
Open a new workbook and enter the numbers 1, 2, 3 in the range A1:A3. Now select the range A1:A3
by clicking on cell A1 and with the left mouse button pressed, drag down to cell A3. The selected
range A1:A3 should be highlighted in a blue/grey colour.
If youve never selected a range before, you might need to practise a bit until you get it right.
Now the clever part! Put your cursor over little dot you can see at the extreme bottom right hand
corner of the range. When you have done that your cursor will change to a + sign (this is the auto fill
handle). When you have got the + sign, keep the mouse still, press the left mouse button and drag
down until, say, cell A10. What do you find?
This is the result you should have got:
1
2
3
4
5
6
7
8
9
10
A
1
2
3
becomes
A
1
2
3
4
5
6
7
8
9
10
In the range B1:B3 enter Jan, Feb, Mar and fill down to B12 ... what do you get?
In the range C1:C3 enter 10, 20, 30 and fill down to C10 ... what do you get?
This is what you should now have in your worksheet:
1
2
3
4
5
6
7
8
9
10
11
12
A
1
2
3
4
5
6
7
8
9
10
B
Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
C
10
20
30
40
50
60
70
80
90
100
Use fill down for any series you like and Excel will give you an answer: please note, you need to use
this with caution as some of the answers Excel gives might not be what you are expecting and you
need to think about the answers carefully. What I mean is, Excel assumes your values come from a
linear (straight line) data set and if they dont, well, your fill down answers might be rubbish!
Fill down the values you see in the ranges D1:D3 and E1:E3 and comment on your results!
1
2
3
4
5
6
7
8
9
10
11
12
A
1
2
3
4
5
6
7
8
9
10
B
Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
C
10
20
30
40
50
60
70
80
90
100
D
105
110
115
E
37
29
33
A
1
2
3
4
5
6
7
8
9
10
Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
C
10
20
30
40
50
60
70
80
90
100
D
105
110
115
120
125
130
135
140
145
150
E
37
29
33
29
27
25
23
21
19
17
The answers in the range D4:D10 are fine but you will find that the answers in the range E4:E10 are
wrong when I tell you that the numbers 27, 29, 33 came from this function:
E1 =25+2^A1
E2 =25+2^A2
E3 =25+2^A3
Where ^ means raise to the power of ...
2^2 means 2*2 or 22
2^3 means 2*2*2 or 23
6^4 means 6*6*6*6 of 64
And so on
Enter =25+2^A1 in cell F1, fill down to F10 and compare your answers with what youve got in the
range E1:E10!
1
2
3
4
5
6
7
8
A
1
2
3
4
5
6
7
8
Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
C
10
20
30
40
50
60
70
80
D
105
110
115
120
125
130
135
140
E
37
29
33
29
27
25
23
21
F
27
29
33
41
57
89
153
281
9
10
Sep
Oct
Nov
Dec
90
100
145
150
19
17
537
1049
Account
Details
04 September 2016
Internet Connection
05 September 2016
Food
5 September 2016
Taxi Fare
07 September 2016
15 September 2016
Book
Book
15 September 2016
Book
16 September 2016
Book
18 September 2016
Postage
Destination/Other
Classification
Khartoum
Khartoum
Khartoum
Book
Book
Book
Book
Visa
See, a bit of a mess: the ####### characters tell you that the column is not wide enough to
display the values in that cell and the other text was wrapped around their cells. What do we do then
to overcome this problem? The answer is to let Excel do everything for us ... almost!
Go to your new worksheet and left click on the column heading A, keep the left mouse button clicked
and drag the cursor to the right until you have selected all of ccolumns A to D. Now carefully move
the cursor over the column headings until you get to the point where two columns meet: A and B or
B and C ... or even D and E. You should notice that the cursor changes from being a down arrow to a
two way arrow.
When you have got your two way arrow, keep the cursor still and quickly double click the left mouse
button ... you might need to practise this. Select the columns again and try again ... you might have
to make changes on a column by column basis if Excel doesnt do what you want. You might have to
format rows as well, using the same technique. When you get it right, this is the result:
Excel has automatically expanded each column to the width of the largest content in each column.
You should do this whenever some text spills over from one column to another.
Formatting Text
Sticking with the example from the previous section, imagine we want to format the table of data in a
simple way. For example, we just want to make column headings bold ... select the text and either
Press these two keys together <Ctrl>+<B>
Or click on the B icon in the Font section of the Home Tab:
You can see how to make the content of the range A2:A9 Italicised cant you?
<Ctrl>+<I>
Or click on the I icon in the Font section of the Home Tab ... next to the Bold icon above.
And underlining any text? <Ctrl>+<U>
Or click on the U icon in the Font section of the Home Tab ... next to the Italics icon above.
Cell Borders
In some cases you might want to put borders around some or all cells in your worksheet. Use the
Borders icon to make your current worksheet look like this:
To put borders round a cell or a range, this is the icon you need to use, also found in the Font section
of the Home tab. Just select the cell or cells you would like to put a border round and use this icon by
clicking on the drop down arrow on the right of that icon:
There are many options for borders and variations of them. Here is the icon expanded in full:
Its best if you experiment with the options that are available to you and here are just a few of the
things you can do with the borders and your tables: these are just a few examples to consider and
you will also see that there several other ways to do this and to add colours and shading too.
This dialogue box can tell you directly which functions are available by type of function:
Financial
Date and time
Statistical
And more
Find out which categories are available by clicking the down arrow next to where it says Or select a
category.
Add
Mean
Standard deviation
And then click the Go button. Excel will then either give you exactly what you want or what it thinks
are the best alternatives from what it thinks you have asked for. In the case of the three examples
above, Excel will probably give you:
Expression Entered
Add
Mean
Standard Deviation
Excels Suggestion
DSUM, SUM, SUMIF, RTD, SUMIFS
A long list that includes AVERAGE, the arithmetic mean
Another long list that includes STDEV, standard deviation, the one that
we want
When you click OK in that dialogue box, having found the function you want, Excel then opens
another dialogue box that allows you to enter the data you want to enter and it will then enter the
result in the current cell you have selected. In the case of Add, we will use the SUM function:
This dialogue box describes the function and will show you the results to date as you add more and
more data. As you enter your data, the number of numbers it will allow you to enter will grow. Try it
... and get used to how it works and what it does for you.
Alternatively, if you want more information before you start to use the function, you can see the
option to use Excels Help files where it says Help on this function in the bottom left hand corner of
the dialogue box.
Lets test this out: open a blank workbook and keep your cursor in cell A1. Click on the Insert
Function icon and search for sum, click Go and then OK. Now enter the following data into the
dialogue box number by number:
30, 63, 49, 38, 57, 73, 19, 53, 42
Click OK now and in cell A1 you should see the total of those 9 numbers is 424 and inside cell A1,
Excel has automatically built the function =SUM(30,63,49,38,57,73,19,53,42) for you.
Do it again but for the standard deviation this time (whats the standard deviation? Well, you can
read about it as you carry out this exercise, in the Help file ... its a very useful statistical function).
Use the same 9 numbers as before and this time put your cursor into cell A2 to start with. Format
your answer to two decimal places and your answer should be:
Consolidation Exercise
This consolidation exercise will help you to work through many of the things that we have done so
far. Create a new Excel workbook which you should open alongside these instructions.
Copy the following table or type the contents of the following table into the spreadsheet.
Make sure that you begin by typing the column heading Month into cell A1 and then complete
the table with no column or row gaps.
Month
March
April
May
June
July
August
September
October
November
In
In
In
In
In
In
In
cell
cell
cell
cell
cell
cell
cell
Machine
hours
30
63
49
38
57
73
19
53
42
Labour
347
521
398
355
473
617
245
487
431
If you copy and paste the table into the Excel file, use the Smart Tag Paste Option either
to keep the formatting as it is above or to change it to the destination formatting: the choice
is yours.
Resize columns A to C to make the headings fit properly.
A11
A12
A13
A15
A16
A14
A17
enter
enter
enter
enter
enter
enter
enter
Total
Average
Count
Minimum
Maximum
Range
Standard Deviation
In the ranges B11:B17 and C11:C17 enter the appropriate function to find the values suggested by
the row headings in column B and C, rows 11 to 17. Hint: fill the range B11:B17 with the functions
and then copy right to copy them into C11:C17. We havent covered all of these functions yet ...
time to do a bit of research by using the knowledge you gained in the section How to find a new
function?
Format your answers to two decimal places and resize the columns again if necessary.
There is in built no function for Range ... build a formula to find it!
How else could you have found the average, arithmetic mean, apart from using Excels in
built AVERAGE function?
Dont look at the following until you have done everything you should have done!
Copy the row headings in rows A1:A10 and paste them into the range D21:D29, use the
Paste Option smart tag to Match Destination Formatting.
Copy the column heading and data from the range B1:B10 and paste them into the range
E21:E29. Again, use the Paste Option smart tag to Match Destination Formatting.
Make the column headings in the cells D21:E21 bold
Select the range D22:E29 and use the fill handle to auto fill the data down to row 44: you
should now have the range D22:E44 filled with months and data. Format the data in the
range E22:E44 to two decimal place
Use the F5 key or <Ctrl>+<Home>to go back to cell A1
Did you get this? Notice I changed the colour of my borders for an earlier exercise and that colour
has stuck until I change it again.
CONCATENATION
Have you ever come across the word concatenate before? I hadnt either until I learned about it as
a function in Excel. Concatenate is a big word with a simple meaning: it means to join together. In
terms of a spreadsheet what it means is that we could have, for example, two names or numbers in
two cells and by using the concatenate function, join them together. There are two ways of using
concatenate:
=CONCATENATE("duncan ","williamson")
="duncan"&" williamson"
Copy and paste these two examples into separate cells in a worksheet and see what happens.
How could you use concatenate in other ways? Well, if you want to join two or more things,
concatenate. If you want to combine, say, a date with a title, concatenate. Heres an example for
you. In a blank worksheet enter this in the cells shown:
A1: DW Ltd Income Statement for the year ended
A2: 31st December 2016
A3: =A1& &A2 ... Note: you should retype these double inverted commas in Excel if you copy and
paste what you see here and get a #NAME! error
Take a look at the screenshot below, this really works!
Isnt that so simple: by the way, I never use =CONCATENATE(...) because & is so simple and direct.
But there is nothing wrong with it at all and in the next exercise I do demonstrate how to use it.
Try it!
Starting in cell B5 of your worksheet, type the following names exactly as you see here and then
concatenate row by row in column D, as you see here:
As a final example for now, you can join numbers together too: from what you see below, in cell E13
concatenate the numbers in cells E10, F11, G12 ... Leaving a one space gap between the numbers
In cell F13 concatenate the numbers in cells E12, F11, G10 ... Leaving no gap between the numbers
at all
One big clue that we have selected a range or ranges is that the selected cells turn grey as you can
see. This is how to select those non contiguous ranges, A1:C8 and F6:J12 and C15:F24.
1 Start by selecting any of the three ranges as normal: put the cursor in one of the four corners of
the range, click and hold the left mouse button and drag the cursor to select the rest of that range
and let go of the left hand mouse button.
2 Now go to a corner of the second range you want to select and before you click the mouse button
click and hold the <Ctrl> key, then left click the mouse button and drag the cursor to select the
second of your ranges. Let go of the left mouse button and the <Ctrl> key now.
3 Repeat step 2 for the third range
You can select as many non contiguous ranges as you wish at any one time. PLEASE be careful with
your left click and <Ctrl> clicking because if you make a mess of them you may well have to start all
over again. I am speaking from experience here: with my lack of coordination getting in the way at
times!
Devised and Prepared by Duncan Williamson February 2016
Page 25 of 36
Print Areas
You might have a simple work sheet in which case you can just ask Excel to print it and all could be
well. In the case of the above example, though, I have decided that, having highlighted the values I
want to highlight, I want to print those values and only those values. Do this:
Select the ranges as we have already discussed and then do this:
You should see that the selected ranges are now surrounded by a border. Lets preview our selection
now, before we print it out:
1
2
Office Button
Print
Unless there is something inside your ranges, you might see nothing with the print preview: type
something in a few cells to see the effect of selecting your work. I typed 1 in the four corner cells of
each range to help with this.
You will find each of the three ranges will be printed on its own page.
Alternatively, click on the View Tab and click on Page Break view to see this:
The three ranges are highlighted with the rest of the sheet dimmed. You probably cant see it here
but the range
A1:C8 has been designated as Page 1
F6:J12 has been designated as Page 2
C15:F24 has been designated as Page 3
How did Excel choose which area goes on which page? It didnt. I did! The order in which we selected
the ranges will tell Excel that this is the order in which we want to print them. If page order is
important, think carefully about this.
Devised and Prepared by Duncan Williamson February 2016
Page 26 of 36
Office Button
Print
Alternatively, simply press <Ctrl>+P and you will get the print dialogue box: make sure you choose
the correct printer and other settings and there you go!
I strongly recommend you work your way through the selection and printing routines because they
can be a bit of a bother until you have got used to clicking <Ctrl> and the left mouse, then letting go,
then clicking them again ...
The Camera Tool: Printing Non Contiguous Ranges ... and more
Imagine you have generated the work sheet that follows. The purpose of this work sheet is to
demonstrate how we might print on one page, two or more ranges that would otherwise have to be
printed on separate pages.
A1:D5 and
H15:K19
Click the down arrow to the right of the QAT and click More Commands
Just follow the steps in the order suggested below and you will find the Camera Tool in your
QAT
Select the range you would like to capture with the camera
Click the camera tool in the QAT ... you will now see the cursor as a cross, +
Click on the worksheet where you would like your picture to appear
Click on the new picture and move it as necessary to align it
The picture normally develops with a border round it: right click it to remove that border.
Set up a work sheet or open an existing work book and
Put the camera tool into the QAT if it isnt already there.
Devised and Prepared by Duncan Williamson February 2016
Page 28 of 36
Go to the range H15:K19, or your own equivalent original range. Make some changes to what
is in one or more cells or reformat the title or even change the title ... make any change you
like.
Go to the picture, in the range A1:D11 in our case, to see what it looks like now:
I made a couple of changes to the original range and the photo from the camera tool shows those
changes too. Marvellous!
Now print the range A1:H10
Transposing Data
Another word for transpose is rotate: we all know rotate but we might be unfamiliar with transpose!
In any case what transpose means in the context of an Excel spreadsheet is that we select a range
and paste it somewhere else in such a way that rows become columns and columns become rows.
Here is an example of data before and after being transposed. I used ranges 1 and 2 from the
previous, camera tool, example. The data in columns A:D are before being transposed and the data
in columns F:J are after being transposed. Can you see what has happened?
In the above example A2:D2 has now become G1:G4: from row to column
Study the Before and After Tables carefully to ensure you can see what has happened.
I use the transposition of data for a variety of reasons, including
Data can be easier to understand once they have been transposed in some cases
In some cases it is impossible to draw a chart properly unless the data are transposed
Before
Start
24 Nov 2016
20 Jun 2016
09 Jun 2016
08 Sep 2016
25 Sep 2016
04 Apr 2014
14 Mar 2015
21 Apr 2016
11 Aug 2016
13 Apr 2016
27 May 2014
18 Jun 2015
End
09 Dec 2016
29 Jun 2016
20 Jun 2016
17 Sep 2016
17 Oct 2016
23 Apr 2014
12 Apr 2015
29 Apr 2016
25 Aug 2016
21 Apr 2016
14 Jun 2014
30 Jun 2015
Days
15
9
11
9
22
19
29
8
14
8
18
12
Now transpose the table into a blank range anywhere you wish. You table should look like this:
In the range D4:D10 I have entered a series of taxable pay amounts for ten employees and in
columns E and F we want to find the income tax and After Tax Pay for each employee respectively.
In cell E4 I have entered the formula =D4*B1
In cell F4 I have entered the formula =D4+E4
Range Names
This is the final session in this booklet and it relates to something I use over and over again: range
names.
Up to now, I have defined ranges in this way: A1 and B8:D15 and BA101:ZF1000. As we have seen in
the previous section, though, there are times when we want to use a cell or a range more than once
and to that end we drag a cell or range reference and forget to turn it into an absolute address. We
might not spot what we have done and eventually find that we have made a real mess of our work.
A good example of the kind of situation we might come across where simply using notation like this
A1:D15 can be improved upon includes something like this, an example we have already seen:
Month
March
April
May
June
July
August
September
October
November
Machine
hours
30
63
49
38
57
73
19
53
42
Labour
347
521
398
355
473
617
245
487
431
select the range B2:B10 then in the name box type the word machine and press <Enter>
select the range C2:C10 then in the name box type the word labour and press <Enter>
1
2
You have now created two range names: machine and labour.
Now, here comes the productivity saving:
In B11
In B12
In B13
In B14
and so
we
we
we
we
on
can
can
can
can
enter
enter
enter
enter
=SUM(machine)
=AVERAGE(machine)
=COUNT(machine)
=MIN(machine)
In C11
In C12
In C13
In C14
and so
we
we
we
we
on
can
can
can
can
enter
enter
enter
enter
=SUM(labour)
=AVERAGE(labour)
=COUNT(labour)
=MIN(labour)
Complete the calculations in the range B11:C17 for Machine hours and Labour as
appropriate.
Wherever you are on that work sheet, you can use the range name machine instead of the range
B2:B10 and you dont need to remember whether it should be B2:B10 or $B2:$B10 or $B$2:$B$10 ...
Using range names is not only a good idea, it is a productivity saving device and it saves your
memory ... the bonus being that the chances of making mistakes with ranges is probably reduced by
using range names.
Text box
If you are a Microsoft Word and/or PowerPoint user then you are probably familiar with the Text Box
utility. Text boxes are also available to be used in Excel. We use text boxes to highlight features of a
work book or work sheet; or to enter text and instructions in such a way that they dont interfere with
the workings of the work sheet. To create a text box:
Open an existing work book or create a new work book and create a text box for one or more
work sheets: enter into it, for example, your name, the name of the work book and a sentence telling
the user what its for ...
You might then have this:
Not very exciting though is it: it doesnt stand out at all! Lets format the text box.
Try it!
Make sure you can change the formatting of the text in your own text boxes.
Here we are: the original, text box with some text formatting and an automatic style added
Notice that the text box has been reformatted along the lines of the style we chose and it has
retained the changes we made earlier. If you think the style options provided by Excel are not
enough, click on the more styles option to reveal even more options.
In case you hadnt noticed, you can move your text box about your work sheet, you can copy and
paste it and you can resize it: add more text and resize the box to your hearts content.
CHAR()
There are times when you might want to put a special character or symbol in a cell or a text box. You
can use
Change the font for that cell or check to make sure its the font you want (different fonts can
give different characters. For example, Wingdings only give pictures not numbers and letters)
In cell A1 of the work sheet you now see enter =CHAR(ROW())
Fill down to row 255
Print out your listing for ready reference and/or save the file for future use
Note that the first 32 characters are always NULL, that is blank or empty or having no value.
Of course, you do not have to prepare these tables just to find the symbol you want. It might pay
you to learn the ones that you use most and enter it directly into a cell or formula.
For example =CHAR(163) = and the UK Pounds sign is not always available on all keyboards but its
always available by using =CHAR().
As a third alternative, there is another character set you can access by
If you want to know why there are apparently TWO sets of characters, do an internet search for
ASCII and ANSI codes.
Closing Remarks
This is a really useful and comprehensive introduction to Excel spreadsheeting. Many of the main and
basic functions and ideas are in here. If you have genuinely worked your way through this booklet,
you will have learned a great deal and you will be able to do a great deal.
Now, you are ready to take it many steps further: to do that go and get my Excel Solutions for
Accountants books and get my Excel Project book. To get them, go to the web sites I mentioned at
the start and search for me or the book title. None of my books is expensive but they are
comprehensive and take you step by step through the topics.
Finally, my blog is ever open http://excelmaster.co and it is free to read and free to join. See you
there!
Feel free to tell me if you have a particular Excel problem or if you think this booklet would benefit
from another topic: I will happily consider adding it!