Professional Documents
Culture Documents
Beginner's Guide
IT SERVICES,
The Robert Gordon University
St Andrew Street Aberdeen AB25 1HG
Excel XP
Beginner's Guide
6. Formulae .........................................................................................................8
To calculate the sum of a set of numbers ............................................................8
To use Insert Function .........................................................................................8
An Excel file is called a workbook. You can work on a number of workbooks at any
time.
Each workbook contains one or more worksheets. The worksheet on which you are
currently working is termed the active worksheet.
When you first enter Excel the screen will look like the following:
b. Menu Bar
a.Title Bar
c. Tool Bar
e. Name box
g. Fill Handle
h. Column and
Row Headings
k. Task Pane
i Sheet Tabs
j. Tab Split Line
a. Title Bar. This contains the name of your workbook. For new workbooks
Excel gives default names, Book 1, Book 2, etc.
b. Menu Bar. The list of Excel commands. For example the Save command is
found in the File menu to the far left of the menu bar.
c. Tool Bars. Shortcut versions of commands. For example simply clicking the
appropriate button can access the Save command.
Note: If you are uncertain of what a button does, simply position the pointer
over it and a small box will appear giving a description of its function.
d. Active Cell. The active cell, or range of cells, indicates where data you are
entering or editing will be put.
e. Name Box. Shows the column and row reference for the active cell.
To select a group of cells: Click on the top leftmost cell of the group
and drag the mouse across the range of
cells.
To select groups of non- Hold down the Ctrl key whilst selecting the
adjacent cells: cells with the mouse.
To alter the proportion of the Point at the Tab Split line and click
display given to the sheet tabs and and drag to slide it along.
the screen scroll bars:
k. Task Pane
This may be visible and contains common commands or tasks that you may want
to do. The pane can be closed with the X, and can be opened from the View
menu.
As with any program where you are inputting data you should get into the habit of
regularly saving your workbooks. If you try and exit from Excel, without first saving
your work you will be asked if you want to save the changes. If you choose not to,
your work will be irretrievably lost.
To enter data into a cell Click on it and type in the contents you
want.
To edit a cell Double-click on it and make whatever
changes you want using the standard
Windows editing features.
To enter the data into the worksheet you
can either press ‘Enter’ or simply make
another cell active.
Note how the current contents of the active cell are displayed in the formula bar.
This area can be used for editing as an alternative to editing in the cell itself. Use the
tick to accept the edits, or the X to cancel them.
Pressing Enter moves you down a row, whereas Tab moves you along a column.
(The Enter default can be changed in Tools… Options, Edit if wanted.) If groups of
cells are selected, Tab will also move you through each selected cell in turn.
To remove the contents of a cell you need to understand the distinction between
clearing a cell and deleting it. Clearing simply clears the contents of the cell from
the worksheet. It is identical to selecting the cell for editing and repeatedly pressing
the delete key to remove all the characters in it. Deleting is more drastic and actually
deletes the cell itself as well as its contents. Having removed a cell in this way Excel
will shuffle adjacent cells along to fill the gap that has been left.
To insert a completely new row Select the one before which you
want to make the insertion (by
clicking on the row heading), and
Insert...Rows.
To insert a completely new column Select the one before which you
want to make the insertion (by
clicking on the column heading), and
Insert... Columns.
More than one row or column at a time can be inserted in this way by selecting the
required number of rows or columns before Inserting.
It is quite likely that whenever you are creating worksheets much of the data you are
entering is similar in character.
As well as having copy and paste operations, Excel provides a quick way of entering
repetitive data using Auto-Fill.
To repeat data across rows or Select one or more cells, click and drag
columns (Autofill) the fill handle (the square at the bottom
right-hand corner of a selected cell)
across the rows or columns
you want to fill.
To undo part of an Autofill Select the cells you want to clear, and
click and drag the fill handle back over the
selection.
To Autofill a complete Select the whole column(s) and drag the
column(s) fill handle.
It is often quicker to repeat fairly repetitive data in this fashion and then edit the
differences, than enter the raw data from scratch.
As well as simply copying data in this manner Excel can also automatically change
data as it proceeds with the Autofill.
• If a cell contains text and a number, the number will automatically be incremented
when autofilling i.e. Week 1 will become Week 2, Week 3 etc. as it autofills; 1st
Quarter will become 2nd Quarter, 3rd Quarter etc.
• If the content of the cell is part of a Custom List, then the values from the list are
used to autofill i.e. Tuesday will become Wednesday, Thursday etc. as it
autofills. The lists already set up can be seen by looking under Tools…
Options, Custom Lists tab. There are lists for days of the week and months of
the year. You can make your own custom lists.
• Immediately after an Autofill operation, you will see a Smart tag . Clicking
on this will give options on what sort of Autofill you want, such as a series, or
copying values, which is useful if the default is not giving you what you want.
In particular, Excel provides a special button on the top toolbar, for calculating the
sum of a set of numbers, as that is such a commonplace requirement.
When positioned on a cell containing a formula, the cell shows the result of the
formula and the formula bar displays the formula itself. Note how every formula
starts with an = sign.
Simple formulas can be typed into the formula bar directly. Start it with =, and
operators such as +, -, *, /, can be used. For cell references you can click on the
appropriate cells. Click on the tick when completed.
Changing a value used in a calculation will cause the result of the calculation to be
updated.
There are a number of built-in functions within Excel that you can use.
To use Insert Function Position on the cell where you want the
function, then click on the Paste Function
If your worksheet on your screen does not quite fit into the space available for
display; Excel offers a way around the problem.
Another problem commonly encountered is that as you enter or view data a long way
down or across the worksheet, you will lose from the display your column and row
headings. It can thus become difficult to determine to what the various cells refer.
Excel has a way around this by enabling you to freeze columns and rows so that
they stay on the screen as you move around the worksheet.
Excel also has a wide range of features to allow you to change the format of your
worksheet. The following is a brief overview of these functions:
On the Formatting toolbar are a set of five buttons that change the
way in which numeric information is displayed. From left to right they display
currency symbols, percent style, comma style (when displaying thousands),
increase zeros and decrease zeros after a decimal point.
You might find that some operations result in the number being displayed as a series
of ‘hash marks’; ########. This is Excel’s way of telling you that the number in that
cell is too long to fit into the space available. You can change the format until it does
fit, or change the size of the cells as described below.
To change the size of Point the cursor at the thin line dividing
columns and rows the column and row headings. The cursor
will change to a small bar marker and can
be dragged along the heading bars to
change the size of the column or row.
Double clicking on the divider at the right
of a column heading will AutoFit the
column width to accommodate the data.
OR
Format...Cells , Font and Alignment tabs, both of
which also provide further features.
To add borders
Select a cell(s) and use the Borders button
The drop-down list will give a choice of where the
border will be applied
OR
Format...Cells , Border tab
OR draw borders using the Borders toolbar.
To change the
colour of a cell Select a cell(s) and use the Fill Color button
OR
Format...Cells , Patterns tab
To change the Select a cell(s) and use the Font Color button
colour of text in a
cell
OR
Format...Cells , Font tab
Drastic changes to the look of the whole worksheet can be made by autoformatting it.
The ‘drawing’ button brings up the Drawing toolbar, which can be used to add
a variety of graphic objects such as shapes, arrows and WordArt etc.
8. Conditional Formatting
When conditional formatting is applied to a cell or range of cells then Excel can
automatically apply formatting to the cells if the values match criteria you specify (i.e.
the values fall within or outwith set limits). You are able to set multiple conditions on
the cells, for example all values below 0 may appear in red, while all values over a
thousand may have a blue background. Formatting can change the font, background
and border of the cells.
To apply conditional Select the cells to which you want to apply the
formatting conditional formatting, and choose Format...
Conditional Formatting from the menu.
To print
Use the print button on the Standard toolbar
OR
the menu option File...Print (or press Ctrl-P), and
choose the appropriate options.
To first see what your output will look like, use Print Preview.
To preview, before
printing Use the Print Preview button,
OR
the menu option File...Print Preview
You may often find that the worksheets you have produced will not physically fit on
the printed page without some adjustment, similar to the way in which you had to
shrink them to fit on the screen
To see page breaks In the Print Preview screen, there is a button named
Page Break Preview
OR
The menu option View… Page Break Preview.
When you change to this view the page breaks on
your worksheet appear as blue lines and each page
is clearly numbered in grey.
To adjust page Drag the blue lines to include the data you want
breaks for printing printed on each page. Excel automatically scales
the information on the page to fit. You can see the
results of this in the Print Preview window.
Another useful feature of spreadsheet programs is that they allow you to display your
data in the form of graphs and charts very easily. In Excel, charts can be placed
anywhere in a workbook, and can be easily moved and modified.
To move a chart Click on a blank area on the chart and drag to the
required position.
Each element of a chart, the type of chart, the title etc. can easily be changed. To
make changes the chart first has to be selected.
Having used the Chart Wizard or having selected a chart, a small ‘Chart toolbar’ will
be displayed on the screen.
Note that if a value changes in the table upon which the chart is based, the chart will
reflect the change and be automatically redrawn.
Further if an extra row of data is inserted with a new label within the data range, this
also will be added to the chart.
Spreadsheets also allow you to perform analysis of your data, exploring different
permutations of values to see what effect they have etc. You have already
encountered some examples of this when you saw how Excel automatically
recalculates formulae and redraws graphs whenever the data on which they depend
changes. Excel also however offers some more powerful tools to examine the effect
of changes.
Firstly, there is Goal Seek, which adjusts the value of a single cell until a formula
dependant on that cell reaches the result you specify. Thus if you are seeking an
answer to a question like ‘In order for this formula, which depends on values I, J and
K, to have value X, what would the value of I have to be?’.
A limitation of Goal Seek is that it only allows you to change one cell in order to reach
the goal. Another tool, Solver, is more flexible.
To use Select Tools...Solver from the menu. (If it is not there, you
Solver may need to go to Tools Addins, and add it in.)
Select the cell whose value you want to change. (It must
contain a formula).
To have the value of this cell be as large as possible, click
Max.
To have the value be as small as possible, click Min.
To have a particular value, click Value of, and type the value in
the box.
Then select the cell(s) you want to change to achieve the
result. You can specify up to 200. Clicking the Guess button
will suggest possible cells.
Enter any constraints you want to apply in the Subject to the
Constraints box.
Click Solve to set Excel off to find a solution.
You will be offered a choice of keeping the solution or
restoring the original values.
The on-line help facilities give detailed help on all of Excel’s features.
To get help on a topic Key words or a question can be typed into the Ask a
Question box at the top right of the screen.
Alternatively, go to the menu, Help, Microsoft Excel
Help .
Click the Contents tab to get a table of contents of help
files.
Click the Answer Wizard tab to bring up a search screen
for Help. Type what you want to know about and click on
the Search button. Select a topic from the list that
appears, in order to display it.
Click the Index tab to bring up a search screen for Help.
Type a keyword(s) or choose from the list of keywords
and click on the Search button. Select a topic, from the
list that appears, to display it.
When you are viewing a help screen, you could choose
from the toolbar buttons to print the topic or go back to
earlier help screens displayed, or X to close it down.