Ms Excel
Ms Excel
Definition of a spreadsheet
A spreadsheet is a ledger sheet that lets you enter, edit and manipulate numeric data. It
can be manual or an electronic spreadsheet.
Types of spreadsheets
i. Manual Spreadsheet
This spreadsheet consists of a book like ledger with many sheets of papers
divided into rows and columns on which data elements are entered manually
using a pen or pencil.
ii. The electronic spreadsheet offers a larger virtual sheet for data entry and
manipulation. For example the largest paper ledger you can get is one that does
not exceed 30 columns and 51 rows while with an electronic spreadsheet, the least
ledger has 256 columns and over 30,000 rows
iii. The electronic spreadsheet utilizes the large storage space on computer storage
devices to save and retrieve documents.
iv. The electronic spreadsheet enables the user to produce neat work because the
traditional paper, pencil, rubber and calculator are put aside. All the work is edited
on the screen and a final clean copy is printed. With a handwritten spreadsheet,
neatness and legibility depends on the writer's hand writing skills.
v. Electronic spreadsheets have better document formatting capabilities.
vi. Electronic spreadsheets have inbuilt formulae called functions that enable the user
to quickly manipulate mathematical data.
vii. An electronic spreadsheet automatically adjusts the result of a formula if the
values in worksheet are changed. This is called the automatic recalculation
feature. For a manual sheet, changing one value means rubbing the result and
writing the correct one again.
Components of Spreadsheet
i. Worksheet
This is the component in which data values are entered. It's made up of Rows and
Columns. The intersection between a row and a column is called a cell. A row is a
horizontal arrangement of cells while a column is a vertical arrangement of cells.
ii. Database
It’s a collection of related data stored in a computer in some organized manner so
as to provide a consistent and controlled access to the data.
The data management feature of spreadsheet can be found on the data menu. Data
entered in spreadsheet can be manipulated by sorting, filtering, calculating
subtotals etc.
iii. Graphs
A graph is a pictorial representation of data on a worksheet
i) Statistical analysis
Spreadsheets have in-built statistical analysis tools that can be used to speed up
data manipulation when developing complex statistical or engineering analyses.
The user is usually expected to provide the appropriate data and parameters for
each analysis.
Some of statistical functions found in MS Excel include
Average Rank
Median SumIf
Mode Sum
Maximum Minimum
ii) Accounting
Many Accountants and business people find spreadsheet a useful tool to use in
recording daily transactions and keeping of financial records. Spreadsheet
provides a user-friendly environment for financial management since they have
inbuilt functions that make accounting tasks easier.
iii) Data Management
Spreadsheet enables neat arrangement of data into tabular structure. Related data
can be typed on the same worksheet but also different worksheets can be linked to
enhance accessibility Data management functions include sorting, filtering, using
forms to enter and view records.
A sales manager in the company can ask the following question: What if sales
increase by 20%, how much profit will the company make? The manager
substitutes the total units sold value with one that is 20% higher and the
spreadsheet automatically displays the new profit. A traditional analysis method
would require a different work sheet to be prepared. Therefore, this method can
be used for financial forecasting, budgeting, stock portfolio analysis, cost
analysis, cash flow etc.
v) Scientific Application
Engineers, Scientific and technical users store empirical / experimental data,
perform statistical analysis, build and prepare complex mathematical models
using spreadsheet.
Vertical
Rows Scroll bar
Title Bar
It displays the title of the application and control buttons Cell for minimizing,
maximize and closing application.
The Menu Bar
Displays a list of menu options e.g. inserts, view, edit etc.
Standard Tool Bars
Has shortcuts to some of the most commonly used menu commands e.g. copy,
cut, save, print, open.etc.
Formula Bar
It enables the user to enter or edit a formula or data in a cell.
Cell Pointer
It marks the position of the current cell or the insertion point.
Worksheet
Consists of cell, rows and columns where data is entered.
Workbook
It consists of several worksheets
Components of a Worksheet
Cells:
An intersection between a row and a column
Row
Horizontal arrangement of cells
Columns
Vertical arrangement of cells
Range
A group of rectangular cells that can be selected and manipulated as a
block
a) Labels
Any text or alphanumeric characters entered in a cell are viewed as labels in a
spreadsheet program. Labels can be row and column headings used to describe the
contents of row or column. E.g. CLASS, NAME, SEX etc.
b) Values
They are numbers that can be manipulated mathematically. E.g. Currency, date, numbers
(0 - 9) etc
c) Formulae
They are user designed mathematical expressions that create a relationship between cells
and return a value in a chosen cell.
NB: Formula must start with an = sign.
d) Functions
They are in-built predefined formulae that the user can quickly use instead of having to
create a new one each time a calculation is to be done. E.g. SUM, COUNTIF, IF etc.
Cell References
A cell reference identifies a cell or a range of cells on the worksheet and shows
Microsoft excel where to look for the values or data needed to use in formulas.
Ms-excel uses the A1 cell reference style that identifies a cell by it's column label
followed by Row number. E.g. B1, E10 e.t.c
RICI reference style can also be used where a cell is referenced by its row number
followed by it's column number e.g. R3 C4, R5 C20 etc.
A. Relative Reference
This is a cell reference whose cell references keep on changing automatically depending
on their position in the worksheet. .
E.g. If you type formula = 82 + C2 in cell D2 if the formula is copied to cell D3 it
automatically changes to =82 + C3.
B. Absolute Referencing
This is used when you copy a formula to different cell and you don't want Excel to adjust
references. To make a formula absolute, add a dollar sign before the parts of cell
reference that do not change e.g. = A5 x $8$2
COUNT
Counts the number of cells that contain values within a range. e.g. = COUNT
(E2:E7) returns 6 if all cells have values. NB If any of the cells is blank it will be
ignored
COUNTBLANK
Is used to count all blank cells in a given range e.g. = COUNTBLANK (A1:A5)
MAX
Returns the largest value in a set of values. e.g. =MAX (A10:E10) return the
maximum value in the range.
MIN
Returns the smallest value in a set of values. e.g. = MIN (A10:E10) will return the
lowest value in the range.
MODE
Returns the most frequently occurring value in a set of values e.g. = MODE
(A10:E10)
COUNTIF
Counts the number of cells within a specified range that meet the given condition.
E.g. If Cell (A10:A14) contains values 5, 8, 10,12,20.
= COUNTIF (A10:A14,”>10”) will return 2.
SUMIF
Adds values in the cells specified by a given criteria. e.g. If cell (A2:A5) contains
values 6, 10, 50, 11 to sum all values greater than 10, use the following formulae
=SUMIF (A2:A5,">10") will return 61.
PRODUCT
Multiplies values in a range of cells.
E.g. =Product (A2:A7) or =PRODUCT(5,2,4) Will return 40
Order of precedence
As we have been used to BODMAS operators in ms excel have their order of precedence
during execution. NB brackets will always make that part to be calculated first
Copying data
Copying means creating a duplicate of cell or cells or an object
Procedure:
i. Select the cells you want to copy.
ii. Click Copy on the Standard toolbar or Click the Edit menu then select Copy
command.
iii. Select the cell in which you want to place a copy of the information
iv. From the Edit again, click Paste command. The Paste command puts a copy from
the clipboard on the specified location
Moving data
Unlike the Copy command where a duplicate copy is created, the Move command
transfers the contents of the original cell (s) to a new location.
To move a range of cells:
i. Highlight the range you want to move.
ii. From the Edit menu, select Cut.
iii. Specify the location you want to move the contents to.
iv. From the Edit menu again, click Paste.
Worksheet formatting
Worksheet formatting refers to enhancing the appearance of the worksheet to make it
more attractive and appealing to the reader. Appropriate formatting should be used to lay
emphasis, catch attention and bring otherwise hidden detail to the fore of the document.
The golden rule of formatting is to use simple clear formats.
Formatting essentially consists of changing text colour and typeface (font), size, style and
alignment.
Font tab
Number tab
Formatting numbers
i. Highlight the cells that have the numbers to be formatted.
ii. Click Format menu then cells command. .The dialog box below will appears.
iii. Select the Number tab as shown in the figure below.
iv. You can now choose number formats as explained below:
Number
format
Worksheet borders
You may need to put a printable border around your worksheet or in a range of cells to
make it more attractive and appealing. To put a border:
i. Highlight the range you wish to insert borders. From the format menu, click
cells command.
ii. Click the borders tab as shown in below and specify the border options for left,
right, top and bottom.
iii. From the Style options, select the type offline thickness and style. Also select the
preset options.
iv. Click the OK button. The selected range will have a border around it.
Click this to
insert top
boarder in the
highlighted
range
Alternatively,
i. Selelect one of the cells on the column you adjust
ii. Then click Format, point to Column then click Width command from the sidekick
menu.
iii. Type a width in the dialog box that resembles the one below.
Click in here
and type the
column width
NB: To change the widths of several columns at the same time, highlight them first
before following this method.
Alternatively
i. Click Format point to Row then click Height from the sidekick menu that appears.
ii. Type the height that you wish in the dialog box that appears and then click OK
button to apply.
Alternatively
Click insert then column to insert a column to the left of the selected cell or column. This
shifts all the others to the right.
Alternatively
Click insert then cells to display the dialog box below
Then Select the entire row or column respectively.
Using autoformat
It allows the user to apply one of sixteen sets of formatting to a selected range on the
worksheet. This quickly creates tables that are easy to read and are attractive to the eye.
.
i. Select a range of cells you wish to autoformat.
ii. Click format then select autoformat command on the menu that appears. Select a
format from the autoformat dialog box shown
iii. Click the OK button to apply the format to the selected range.
Select an
autoformat
Data management
At times, it becomes necessary to use advanced data management tools to manage large
data stored on a worksheet e.g. if the worksheet has many records, it may become
necessary to arrange them in a particular order using a method called sorting for easier
access to data items. Other methods of data management include use of filters,
total/subtotal function and forms.
Sorting
To carryout sorting proceed as follows:
i. Highlight the range that you wish to sort by clicking its column header letter.
ii. Click Data then Sort to display the dialog box shown below. Notice that the Sort
by field is already reading the field that yu selected.
This field is called the criteria field. '
iii. Select the field to be used as the key for sorting and the sort order as either
descending or ascending then click OK button to apply.
Highlight data
to be sorted
Select the
column you
want to sort
by
Select a
sort criteria
Sort
Filtering data
Filtering is a quick and efficient method of finding and working with a subset of data in a
list. A filtered list will only display the rows that meet the condition or criteria you
specify. Microsoft Excel has two commands for filtering lists:
i. The auto filter: It uses a simple criteria and includes filter by selection
ii. Advanced filter: It uses more complex criteria.
Autofilter
Sometimes while looking through a list of values on a large worksheet, you may come to
a value of interest and want to see all other occurrences of the value in the spreadsheet.
Simply click the cell that has the value then click autofilter on the standard toolbar.
Microsoft Excel turns on AutoFilter and then filters the list to show only the rows you
want.
Subtotals function
Consider the following scenario:A company that has
many salespersons will need to know how much each of
them sold at the end of a period by looking at individual
sales volumes.
Select a function
iv. In the At each change in box, select Sales man from the drop down list because
we want a subtotoal for each of the sales man.
v. In the Use function box select the sum function as shown in the Figure above then
select the list for which subtotals will be inserted in the add subtotals box by
checking the appropriate label. In this case it is the sales.
vi. Click ok button to apply and the list will now have subtotals inserted as shown
below
Subtotals inserted and the grand total will appear at the bottom
Totals function
Use the AutoCalculate feature in Microsoft Excel to automatically show the total of a
selected range. When cells are selected, Microsoft Excel displays the sum of the range on
the status bar. Right clicking this function displays other functions like Min, Max and
Average that can also be used. To find the total of a range, highlight it then click the
autosum icon on the standard toolbar.
Form
A form is a specially prepared template specifically formatted to enable users to enter
data in a worksheet in a format that is more convenient to them. If data is collected on
paper before entering in the computer, then a form can be created to have the layout of
the data on the paper to quicken data entry procedures.
To display a form:
i. Click Data then Form
Charts / Graphs
Charts / graphs are graphics or pictures that represent values and their relationships. A
chart helps the reader to quickly see trends in data and to be able to compare and contrast
aspects of data that would otherwise have remained difficult to understand.
Types of charts
i. Line chart
Represents data as lines with markers at each data value in the x-y plane
ii. Column chart
Represents data as a cluster of columns comparing values across categories
iii. Bar chart
Data values arranged horizontally as clustered bars. Compares values across
categories
iv. Pie chart
It displays the contribution of each value to a grand total.
v. Scatter chart
Compares pairs of values on the same axis
Creating a chart
A chart must be based on values that are already entered in the worksheet.
To create a chart:
1. Select the range of values for which you want to create a chart.
2. Click the Chart-wizard button on the standard toolbar and the chart wizard dialog box
will open as shown in below.
This will shrink the dialog box so that only the category labels text box is shown.
Highlight the data labels from the worksheet.
7. At step 4 determine whether the chart will be inserted in the current worksheet or a
new worksheet then click Finish button
Data ranges
A data range is a rectangular block of cells that provides the base data that is used to
create the chart. In charting, a data range is referenced as an absolute range e.g.
To see the data range of a chart, right click it then select the Source data command.
Labels
Each representation of data on a chart can either be labeled by a value or text label. For
example, in a bar chart that compares the height of pupils, each bar can be given a value
label to make it more readable.
To label:
I. Right click the chart then select the chart options command from the shortcut menu.
2. Click the label tab and choose whether you want value or text labels then click OK
button to apply.
Legends
Its a key that explains what each colour or pattern of the data representation in the chart
means. e.g. Excel may give red colour to one data value and green to the other etc.
Without a legend it would be difficult to differentiate between two or more sets of values
in a chart.
To create a legend:
i. Right click the chart then select the Chart option command
ii. Click the Legend tab and specify that it be displayed in the chart area
iii. Click OK button to apply.
Printing worksheets
A worksheet can be printed for sharing with others or for filing purposes. For charts that
do fit on a standard printing page the use can adjust using the default printing options and
settings. Therefore, Microsoft Excel allows the user to preview and set up the pages of a
worksheet in order to fit themTab
Margin on the Insert
hard copy page.
a header and or footer
Page setup
i. Click File: menu option then Page setup command to display the page setup
dialog box.
Page
ii. On the Page tab, select the orientation of the page. Study the meanings of each
Tab
buttons and options in Figures below
iii. After making the necessary selections, click OK to apply.
Check this to
print to file
printer (send
to file)
Set the
number of
copies to print
Page orientation
This refers to the layout of the text on the page. A worksheet can also be printed on either
landscape (longer side placed horizontally) or portrait (Longer side placed vertically)
depending on the number of columns across the worksheet.
Printing
After selecting all the options, click the OK button to print.