SPREADSHEETS NOTES
SPREADSHEETS NOTES
A spreadsheet produces a document that can be read, printed, and stored and retrieved.
A spreadsheet can have its calculations done in a fashion by which they may be redone
automatically if any of the data values upon which they depend, are changed.
The numbers that appear in a spreadsheet are easily used as the foundation of “charts” or
“graphs” that may be used to illustrate the relationships among these numbers. We can build
bar charts, pie charts, line charts, etc.
Etc.
Data may be entered into the cells of a worksheet in many types, including
Text data: typically consisting of words or phrases; typically used for explanation (e.g., row or
column headers); typically not used in arithmetic. Note we may enter more text than a cell, in
its current configuration, can display. We can stretch or shrink a column or row by placing the
mouse cursor at the right edge of a column margin header or the bottom edge of a row margin
header, holding down the left mouse button, and dragging to the desired width or height.
Numeric constants may be entered as text is entered. These values are typically used in
arithmetic.
Formulas are used to describe a calculation whose value is to be displayed in the cell. A formula
typically starts with the “=” character and may involve a variety of symbols that may be cell
references, functions, operators of arithmetic, and constants (numeric, text, etc), as well as “cell
ranges”. For example, the formula
=C2-B2
instructs the cell in which it appears to display the result of taking the value in C2 and
subtracting the value in B2. Notice that the cell reference (name, address) is treated as a
variable – the name of a quantity that has a value, which is substituted for the name of the cell in
a formula.
This is a program that deals with the calculations in rows and columns.
EXAMPLES OF SPREADSHEETS.
1. Microsoft excel
2. Lotus 1,2,3
3. Open Office Calc
4. Zoho Sheet
5. Spread 32
STARTING UP EXCEL
NAME BOX
WORKING AREA/CELLS
FORMULA BAR
SHEET TAB
TITLE BAR
This is the upper most bar and it bears the title of the opened work book and the file name.
MENU BAR
This bar contains menu options that you can choose commands to perform an operation.
The menu bar contains the following. HOME, INSERT, PAGE LAYOUT,REVIEW etc.
RIBBON
This is where the elements of the menu bar are displayed.
FORMULA BAR
It is at this bar that we enter a formula. It also indicates what you are entering in a cell.
NAME BOX
This shows the rows and the columns number of the active cell e.g D7, C6, B2 etc
SHEET TAB
ALIGNMENT
This is the position of a word within the cell space.
CELL
It is the intersection point between a row and a column with a single unit of a worksheet.
COLUMNS
They make the vertical blocks of cells in ready sheets identified by letters i.e. A, B, C, D etc.
ROWS
They make the horizontal blocks of cells in ready sheets and are identified by numbers i.e. 1, 2, 3 etc
LABELS
It is an entry that consists of texts and numerical characters.
VALUE
It is an entry that is a number of results of a formula and functions.
FUNCTIONS
Are inbuilt formulas used in mathematical operations.
WORKBOOK
This is a group of worksheets on a normal document.
CELL ADDRESS
It is an individual label used to identify each cell.
FORMAT
It is a style applied to a cell that controls how numbers are displayed.
RANGE
It is a group of selected cells/ a collection.
ACTIVE CELL
This is a selected cell for data entry.
DISADVANTAGES OF EXCEL
1. It takes a long time to view longer spreadsheets
2. A wrong formula brings wrong results.
3. It requires skills to work with.
USES OF SPREADSHEETS
1. It is used in budget preparation.
2. In making of cheque book registers.
3. Assist in calculations of loans and mortgage payment.
4. They are also used in preparation of loss and profit statement.
5. Can as well be used in preparation of income tax.
6. In giving of expense reports.
PROCEDURE
1. Click at the row or column where you want the new row or column inserted.
2. Click home from the menu bar then at the cells sector of the ribbon pull out insert then
select on what you want inserted.
NB: The newly inserted column or row is inserted at the column or row you had clicked on.
PROCEDURE
Click home then make another click on format that lies at the cells sector of the ribbon.
This gives the window alongside, where you will select
What you want adjusted, and then on the new window enter
The value you need and click ok.
ALTERNATIVE
Locate the mouse pointer on the vertical line between two columns or on the horizontal line
between two rows till it changes to a plus sign with two arrow head.
Press down the left mouse button and drag the column or row to the desired width.
ADDING A WORKSHEET
PROCEDURE
1. Click home from the menu bar then make another click on insert at the cells sector of the
ribbon and select insert sheet.
2. OR – right click at any sheet tab then choose insert among the retrieved options.
PROCEDURE
Right click on either a row or column you want deleted then choose delete among the
retrieved options.
DELETING A WORKSHEET
To define this I would say it is the removal of a worksheet from a selected workbook.
PROCEDURE
Right click on the sheet tab of the worksheet you want deleted
Among the options retrieved choose delete.
RENAMING A WORKSHEET
Right click on the sheet tab of the sheet that you want renamed.
From the options given select rename.
Type the name of the sheet and then click outside the sheet tab.
COPYING DATA
PROCEDURE
A formula is an expression which calculates the value of a cell. Functions are predefined
formulas and are already available in Excel.
Operator Precedence
Excel uses a default order in which calculations occur. If a part of the formula is in parentheses,
that part will be calculated first. It then performs multiplication or division calculations. Once this
is complete, Excel will add and subtract the remainder of your formula. See the example below.
Copy/Paste a Formula
When you copy a formula, Excel automatically adjusts the cell references for each new cell the
formula is copied to. To understand this, execute the following steps.
Insert a Function
Every function has the same structure. For example, SUM(A1:A4). The name of this function is
SUM. The part between the brackets (arguments) means we give Excel the range A1:A4 as input.
This function adds the values in cells A1, A2, A3 and A4. It's not easy to remember which function
and which arguments to use for each task. Fortunately, the Insert Function feature in Excel helps
you with this.
EXCEL FUNCTIONS
Count
To count the number of cells that contain numbers, use the COUNT function.
E,g Count(AI:A9)
Countif
To count cells based on one criteria (for example, higher than 9), use the following COUNTIF
function.
E.g countif(A1:A9,”>9”)
Countifs
To count cells based on multiple criteria (for example, green and higher than 9), use the following
COUNTIFS function.
E.g countifs(A1:A9,”green”,B2:B9,”>9”)
Sum
To sum a range of cells, use the SUM function.
E.g Sum(A1:A9)
Sumif
To sum cells based on one criteria (for example, higher than 9), use the following SUMIF function
(two arguments).
E.g Sumif(A1:A9,”>9”)
Sumifs
To sum cells based on multiple criteria (for example, blue and green), use the following SUMIFS
function (first argument is the range to sum).
E.g Sumifs(A1:A9,B2:B9,”blue”,B7:B12,”green”)
If Function
The IF function checks whether a condition is met, and returns one value if TRUE and another
value if FALSE.
1. Select cell C1 and enter the following function.
The IF function returns Correct because the value in cell A1 is higher than 10.
And Function
The AND Function returns TRUE if all conditions are true and returns FALSE if any of the
conditions are false.
1. Select cell D1 and enter the following formula.
The AND function returns FALSE because the value in cell B1 is not higher than 5. As a result
the IF function returns Incorrect.
Or Function
The OR function returns TRUE if any of the conditions are TRUE and returns FALSE if all
conditions are false.
1. Select cell E1 and enter the following formula.
The OR function returns TRUE because the value in cell A1 is higher than 10. As a result the IF
function returns Correct.
Relative Reference
By default, Excel uses relative reference. See the formula in cell D2 below. Cell D2 references
(points to) cell B2 and cell C2. Both references are relative.
Absolute Reference
See the formula in cell E3 below.
1. To create an absolute reference to cell H3, place a $ symbol in front of the column letter and
row number of cell H3 ($H$3) in the formula of cell E3.
2. We want to copy this formula to the other cells quickly. Drag cell F2 across one cell, and look
at the formula in cell G2.
Do you see what happens? The reference to the price should be a fixed reference to column B.
Solution: place a $ symbol in front of the column letter of cell B2 ($B2) in the formula of cell F2.
In a similar way, when we drag cell F2 down, the reference to the reduction should be
a fixed reference to row 6. Solution: place a $ symbol in front of the row number of cell B6 (B$6)
in the formula of cell F2.
Result:
Note: we don't place a $ symbol in front of the row number of B2 (this way we allow the reference
to change from B2 (Jeans) to B3 (Shirts) when we drag the formula down). In a similar way, we
don't place a $ symbol in front of the column letter of B6 (this way we allow the reference to
change from B6 (Jan) to C6 (Feb) and D6 (Mar) when we drag the formula across).
3. Now we can quickly drag this formula to the other cells.
To enter a date in Excel, use the "/" or "-" characters. To enter a time, use the ":" (colon). You can
also enter a date and a time in one cell.
Note: Dates are in US Format. Months first, Days second. This type of format depends on your
windows regional settings. Learn more about Date and Time formats.
Year, Month, Day
To get the year of a date, use the YEAR function.
Note: use the MONTH and DAY function to get the month and day of a date.
Date Function
1. To add a number of days to a date, use the following simple formula.
2. To add a number of years, months and/or days, use the DATE function.
Note: the DATE function accepts three arguments: year, month and day. Excel knows that 6 + 2 =
8 = August has 31 days and rolls over to the next month (23 August + 9 days = 1 September).
Current Date & Time
To get the current date and time, use the NOW function.
Note: use the TODAY function to get the current date only. Use NOW()-TODAY() to get the
current time only (and apply a Time format).
Hour, Minute, Second
To return the hour, use the HOUR function.
Note: use the MINUTE and SECOND function to return the minute and second.
Time Function
To add a number of hours, minutes and/or seconds, use the TIME function.
Right
To extract the rightmost characters from a string, use the RIGHT function.
Mid
To extract a substring, starting in the middle of a string, use the MID function.
Explanation: the VLOOKUP function looks for the ID (104) in the leftmost column of the range
$E$4:$G$7 and returns the value in the same row from the third column (third argument is set to
3). The fourth argument is set to FALSE to return an exact match or a #N/A error if not found.
2. Drag the VLOOKUP function in cell B2 down to cell B11.
Note: when we drag the VLOOKUP function down, the absolute reference ($E$4:$G$7) stays the
same, while the relative reference (A2) changes to A3, A4, A5, etc.
HLookup
In a similar way, you can use the HLOOKUP (Horizontal lookup) function.
Match
The MATCH function returns the position of a value in a given range.
Explanation: Yellow found at position 3 in the range E4:E7. The third argument is optional. Set
this argument to 0 to return the position of the value that is exactly equal to lookup_value (A2) or
a #N/A error if not found.
Index
The INDEX function below returns a specific value in a two-dimensional range.
Explanation: 92 found at the intersection of row 3 and column 2 in the range E4:F7.
The INDEX function below returns a specific value in a one-dimensional range.
Explanation: 97 found at position 3 in the range E4:E7.
Choose
The CHOOSE function returns a value from a list of values, based on a position number.
Financial Functions
Note: The last two arguments are optional. For loans the Fv can be omitted (the future value of a
loan equals 0, however, it's included here for clarification). If Type is omitted, it is assumed that
payments are due at the end of the period.
Result. The monthly payment equals $1,074.65.
Tip: when working with financial functions in Excel, always ask yourself the question, am I
making a payment (negative) or am I receiving money (positive)? We pay off a loan of $150,000
(positive, we received that amount) and we make monthly payments of $1,074.65 (negative, we
pay).
Rate
If Rate is the only unknown variable, we can use the RATE function to calculate the interest rate.
Nper
Or the NPER function. If we make monthly payments of $1,074.65 on a 20-year loan, with an
annual interest rate of 6%, it takes 240 months to pay off this loan.
We already knew this, but we can change the monthly payment now to see how this affects the
total number of periods.
Conclusion: if we make monthly payments of $2,074.65, it takes less than 90 months to pay off
this loan.
Pv
Or the PV (Present Value) function. If we make monthly payments of $1,074.65 on a 20-year loan,
with an annual interest rate of 6%, how much can we borrow? You already know the answer.
Fv
And we finish this chapter with the FV (Future Value) function. If we make monthly payments of
$1,074.65 on a 20-year loan, with an annual interest rate of 6%, do we pay off this loan? Yes.
But, if we make monthly payments of only $1,000.00, we still have debt after 20 years.
Statistical Functions
Average | Averageif | Median | Mode | Standard Deviation | Min | Max | Large | Small
This chapter gives an overview of some very useful statistical functions in Excel.
Average
To calculate the average of a range of cells, use the AVERAGE function.
Averageif
To average cells based on one criteria, use the AVERAGEIF function. For example, to calculate
the average excluding zeros.
Note: <> means not equal to. The AVERAGEIF function is similar to the SUMIF function.
Median
To find the median (or middle number), use the MEDIAN function.
Check:
Mode
To find the most frequently occurring number, use the MODE function.
Standard Deviation
To calculate the standard deviation, use the STEDV function.
Min
To find the minimum value, use the MIN function.
Max
To find the maximum value, use the MAX function.
Large
To find the third largest number, use the following LARGE function.
Check:
Small
To find the second smallest number, use the following SMALL function.
Check:
Tip: Excel can generate most of these results with the click of a button. Our Descriptive
Statistics example shows you how.
Round
Note: 1, 2, 3, and 4 get rounded down. 5, 6, 7, 8, and 9 get rounded up. In this example, 114.7211,
114.7221, 114.7231 and 114.7241 get rounded down to 114.72 and 114.7251, 114.7261, 114.7271,
114.7281 and 114.7291 get rounded up to 114.73.
2. Round a number to one decimal place.
RoundUp
The ROUNDUP function always rounds a number up (away from zero). For example, round a
number up to one decimal place.
RoundDown
The ROUNDDOWN function always rounds a number down (toward zero). For example, round a
number down to the nearest integer.
Formula Errors
##### error | #NAME? error | #VALUE! error | #DIV/0! error | #REF! error
This chapter teaches you how to deal with some common formula errors in Excel.
##### error
When your cell contains this error code, the column isn't wide enough to display the value.
1. Click on the right border of the column A header and increase the column width.
Tip: double click the right border of the column A header to automatically fit the widest cell in
column A.
#NAME? error
The #NAME? error occurs when Excel does not recognize text in a formula.
#DIV/0! error
Excel displays the #DIV/0! error when a formula tries to divide a number by 0 or an empty cell.
1a. Change the value of cell A2 to a value that is not equal to 0.
1b. Prevent the error from being displayed by using the logical function IF.
Explanation: if cell A2 equals 0, an empty string ("") is displayed. If not, the result of the formula
A1/A2 is displayed.
#REF! error
Excel displays the #REF! error when a formula refers to a cell that is not valid.
1. Cell C1 references cell A1 and cell B1.
2. Delete column B. To achieve this, right click the column B header and click Delete.
1. Place an equal sign at the location you want your answer to be displayed.
2. Enter a function that you want to use. i.e. sum, average, count e.t.c.
3. Open a bracket.
4. Enter the argument area.
5. Close the bracket.
6. After you are done, press on enter key.
This will appear this way if we for example use sum function
= SUM (B2:F2)
=AVERAGE (B2:B14)
=MIN (B6:F6)
=COUNT (C2:C12)
=MAX (F4:F15) e.t.c
SAMPLE DATA
BALANCE=E2-B2-C2-D2 .
IF STATEMENT
There are two types of IF i.e. simple IF and nested IF and are used in testing for conditions
meeting a certain criteria.
SIMPLE IF
This can only be used to test for not more than two conditions.
EXAMPLE
Please give me a chance to explain the above, it implies that if the value that is in G2 is greater
than 70, then comment that will be given is GOOD, but if it is below then the comment is POOR.
NESTED IF
This is used in a situation where there are many condition to be tested i.e. more than two.
EXAMPLE 1
EXAMPLE 2
= IF (F2=A,”DISTINCTION”, IF (F2=A-,”LOWER DISTINCTION“, IF (F2=B+, “CREDIT 1”,
IF (F2=B,”CREDIT”,…))))
NB: THE BRACKETS ARE CLOSED AT THE END DEPENDING WITH HOW MANY IF YOU HAVE
IN YOUR ARGUMENT.
PROCEDURE