Elective Excel Note
Elective Excel Note
APPLICATION
ELECTIVE ICT
What is a spreadsheet?
4. Formulas Tab
This tab has commands to use when
creating Formulas. This tab holds an
immense function library which can
assist when creating any formula or
function in your spreadsheet.
5. Data Tab
This tab allows you to modifying
worksheets with large amounts of data by
sorting and filtering as well as analyzing
and grouping data.
6. Review Tab
This tab allows you to correct spelling and
grammar issues as well as set up security
protections. It also provides the track
changes and notes feature providing the
ability to make notes and changes
someone’s document.
7. View Tab
This tab allows you to change the
view of your document including
freezing or splitting panes, viewing
gridlines and hide cells.
NAVIGATING/MOVING AROUND IN
THE EXCEL ENVIRONMENT.
• 1.ARROW KEYS: Move one cell up, down, left,
or right in a worksheet. SHIFT+ARROW KEY
extends the selection of cells by one cell.
• 2. BACKSPACE: Deletes one character to the
left in the Formula Bar. Also clears the content
of the active cell. In cell editing mode, it
deletes the character to the left of the
insertion point.
• 3. DELETE: Removes the cell contents
(data and formulas) from selected cells
without affecting cell formats or
comments. In cell editing mode, it
deletes the character to the right of the
insertion point.
• 4. END: Moves to the cell in the lower-
right corner of the window when SCROLL
LOCK is turned on.
• 5. ENTER: Completes a cell entry from
the cell or the Formula Bar, and selects
the cell below (by default).
• 6. ESC: Cancels an entry in the cell or
Formula Bar. Closes an open menu or
submenu, dialog box, or message
window.
• 7. HOME: Moves to the beginning of a
row in a worksheet. CTRL+HOME moves
to the beginning of a worksheet.
• 8. PAGE DOWN: Moves one screen down in
a worksheet.
• 9. PAGE UP: Moves one screen up in a
worksheet.
• 10. SPACEBAR: In a dialog box, performs
the action for the selected button, or
selects or clears a check box.
CTRL+SPACEBAR selects an entire column
in a worksheet. SHIFT+SPACEBAR selects
an entire row in a worksheet.
Performing some
basic skill in excel
Selecting Cells or Range
• To delete a row,
1. right-click on the row number
2. click Delete from the pop-up
menu
Deleting Columns
• To delete a column,
1. right-click on the column letter
2. click Delete from the pop-up
menu
Column Width and Row Height
• On a worksheet, you can specify a column
width of 0 to 255 and a row height of 0 to
409. This value represents the number of
characters that can be displayed in a cell
that is formatted with the standard font.
The default column width is 8.43
characters and the default row height is
15 points. If a column/row has a width of
0, it is hidden.
Set Column/Row Width/Height
1. Select the column(s) or row(s) that you want
to change.
2. On the Home tab, in the Cells group, click
Format.
3. Under Cell Size, click Column Width or Row
Height.
4. A Column Width or Row Height box will
appear.
5. In the Column Width or Row Height box,
type the value that you want your column or
row to be.
Set Column/Row Width/Height
with Mouse
1. Place you cursor on the line
between two rows or columns.
2. A symbol that looks like a lower
case ‘t’ with arrows on the horizontal
line will appear
3. Drag the boundary on the right
side of the column/row heading until
the column/row is the width that you
NOTE
• At times, a cell might display
#####. This can occur when the cell
contains a number or a date that
exceeds the width of the cell so it
cannot display all the characters that
its format requires. To see the entire
contents of the cell with its current
format, you must increase the width
of the column.
Merge Cells
• When you merge two or more
adjacent horizontal or vertical
cells the cells become one larger
cell that is displayed across
multiple columns or rows. When
you merge multiple cells, the
contents of only one cell appear in
the merged cell.
•
Merge and Center Cells
1. Select two or more adjacent cells
that you want to merge.
2. On the Home tab, in the
Alignment group, click Merge and
Center.
3. The cells will be merged in a row
or column, and the cell contents
will be centered in the merged cell.
Wrap Text
• You can display multiple lines of text inside a
cell by wrapping the text.
• Wrapping text in a cell does not affect other
cells.
1. Click the cell in which you want to wrap the
text.
2. On the Home tab, in the Alignment group,
click Wrap Text.
3. The text in your cell will be wrapped
Renaming, Inserting, and
Deleting Worksheets
• How to Insert a Worksheet
• The fastest way to insert a
worksheet in a workbook is to
simply:
• Click on the NEW SHEET ICON
• A new work sheet will automatically
appear next to the previous sheet.
How to Rename a Worksheet
• To rename a spreadsheet,
1. right-click on the spreadsheet tab,
2. select Rename from the context menu,
3. and type a new name.
OR
• Double-click on the worksheet tab and
type a new name
How to Delete a Worksheet
• To delete a worksheet:
1. Right-click on the worksheet
tab
2. And select Delete from the
context menu.
Hide or Display Rows and Columns
6 CHELSEA 20 30 40 52 20 =Average(B6:D6,F6)
The MAX Function
• The MAX function determines the largest
value from the range specified in the
arguments..
• The syntax of the MAX function is:
• MAX(number1, number2, ... )
• Where: ► number1, number2, etc. are
from 1 to 255 arguments, which can
contain cell references, formulas, or
functions that resolve to numeric values.
Examples of the MAX Function
A B C D
1 502 300 200 =MAX(A1:A5)
2 325 100 105 =MAX(A2:B2,105)
3 200 401 201 =MAX(A1,B1,A5,B5)
4 502 330 220 =MAX(A1:B5)
5 110 202 111
The MIN Function
• The MIN function determines the smallest
value from the range specified in the
arguments.
• The syntax of the MIN function is:
• MIN(number1, number2, ... )
• Where: ► where number1, number2, etc.
are from 1 to 255 arguments, which can
contain cell references, formulas, or
functions that resolve to numeric values.
Examples of the MIN Function
What is the COUNT Function?
• This excel function calculates the
number of cells that contain
numeric values or the number of
arguments in the function, if any,
that are numeric.
• The syntax of the COUNT function
is:
• COUNT(value1, [value2], . . . )
• Where: ► value1 is required and is
an item, cell reference, or range of
cells, and ► [value2] . . . are
optional and are 1 to 255 additional
items, cell references, or ranges.
Examples of the COUNT
Function
A B C
1 COST SALES =COUNT(A1:A5)
2 6.89 35 =COUNT(A1:A5,10
3 15/03/2024 GOOD =COUNT(A1:A5,B1:B5)
4 7/7/2014
5 40179 #REF!
The COUNT IF Function
• This Excel function allows you to
display the number of cells in a
single range whose values meets
specific criteria. The default action
or operator for the COUNTIF
function is equals and is not
included when writing the
function.
• The syntax of the COUNTIF
function is:
• COUNTIF(range,criteria) ... where
range is a group of cells, and
criteria is the value a cell must
have to be counted
Examples of the COUNTIF
Function
A B C
1 4 4 =COUNTIF(B1:B5,4)
2 21 20 =COUNTIF(B1:B5,A5)
3 YES 4 =COUNTIF(A1:B5,”YES”)
4 35 20
5 20 4
Other COUNTIF Function
Operators
• As discussed above, the default operator for the
COUNTIF function is equals. However, advanced
users can specify the other operands listed
below, and this lesson discusses, and provides
examples of, the use of these other operands.
• > greater than
• < less than
• >= greater than or equal to
• <=less than or equal to
• <> not equal to
Examples of the COUNTIF
Function Operators
A B C
1 BAKER 40 =COUNTIF(A1:A4,”<>SMITH”)
2 KING 10 =COUNTIF(B1:B4,”<”&B1)
3 KEN 110 =COUNTIF(A1:A4,”<>*”)
4 30 =COUNTIF(A1:A4,”<>”&””)
Example 1
• Count the cells in a range whose values
do not equal a string of text.
=COUNTIF(A1:A4,"<>Smith") - The
operand and criteria must be wrapped in
quotes as shown. This function returns a
value of 4 as there are FOUR cells in the
range that do not equal Smith. Excel
excludes empty cells, cells with numbers,
and error messages.
• Many tutorials instruct users to
concatenate every value that
follows an operator. For instance,
it is perfectly OK to write the
function as
=COUNTIF(A1:A7,"<>"&"Smith").
Example 2:
• Count the cells in a range that are < the
contents of a particular cell
=COUNTIF(B1:B4,"<"&B1) - When using
an operator AND referencing a cell name in
the criteria, two rules must be followed.
•The operator must be enclosed in
quotation marks, and
•An ampersand (&) must precede the cell
name
• The ampersand (&), which is the
concatenation operator, must
precede the cell name so that Excel
knows you are referencing a cell
name. If you omit the ampersand,
Excel will display the dreaded "The
formula you typed contains an error"
popup window.
• Referencing a cell name with an
operator is one of the few instances
that concatenation must be specified.
Example 3:
• Count the number of cells in a range that
do not contain text
• =COUNTIF(A1:A4,"<>*") - In this
example, the criterion must be wrapped
in quotation marks since we are using an
operator. We use the wildcard * to refer
to any text. Excel counts the number of
cells that do not contain text and returns
a value of 1 (cell A4).
• Excel will count all cells other than
cells containing text: empty cells, cells
with numbers, and cells with error
messages. Excel will not count,
however, cells that have been cleared
of data by pressing the space bar.
Clearing cells this way places a blank
space character in the cell. Use the
delete key to clear the contents of a
cell instead.
Example 4:
• Count the number of cells in a
range that are not empty
=COUNTIF(A1:A4,"<>"&"") - In
Excel, a blank or empty cell (one
that does not contain a blank space
character) is referenced by a pair
of double quotation marks, "".
• This example counts the number
of cells in A1:A4 that are not
empty. We wrap the operator in
quotation marks "<>" - and then
place the concatenate operator &
before the pair of double
quotation marks symbolizing
'empty.' Excel returns a value of 3.
Logical
Function
• If function
• The IF function of Excel is a very
powerful function. It allows the
user to specify certain criteria,
and then instruct Excel to perform
one action if the criteria is true,
and perform a different action if
the criteria is not true.
• The syntax of the IF function is:
• IF(logical-test, value-if-true, value-if-
false)
• where: logical-test is a condition which
must evaluate to either TRUE or FALSE
• value-if-true is the value Excel returns if
the logical test evaluates to TRUE
• value-if-false is the value that Excel
returns if the logical test evaluates to
FALSE
Example 1
• This example is texting whether
the employee deserve a bonus or
no bonus. In order for the
employee to receive a bonus
he/she’s job rate must be 3 and
above otherwise no bonus.
Formulas
• =if(B2>=3,1000,0)
• =if(B2>=3,"bonus",”no
bonus")
Example 2
• This Excel checks to see if the sum
of the contents of cells A2 through
C2 equals 50. If so, Excel returns a
value of Slow D2. If not, Fast is
displayed.
• =IF(SUM(A1:A3)=50,"Slow","Fast
")
Nested IF FUNCTION
• The IF function allows the user to ask
Excel to test certain criteria and to
perform different actions depending on if
the criteria is met or not. Because data
analysis can be complex, often the
logical-test, value-if-true, and/or value-if-
false portions of our IF function must, in
themselves, contain an IF function. When
IF functions are used inside of IF
functions, we call this nested IFs.
• The way a nested IF function works is a
logical_test is tested, if that test returns a
TRUE value, something will happen, but if
it returns a FALSE value, another IF
function will be used to determine if the
logical_test fits into another qualifier.
• An example of a nested IF function may
look similar to this;
• =IF(logical_test,value_if_true,IF(logical_tes
t,value_if_true,value_if_false))
Example 1
• Review the worksheet below. Each team
plays two rounds and their scores are
added. Scores are always integers;
there are no "half" points for example. If
their total score is 12 or greater (> 11),
they get a Gold medal. If the total score
is 8, 9, 10, or 11 (>7 but < 12), they are
awarded a Silver Medal. If 7 or less, they
receive no prize.
A B C D
1 ROUND ROUND PRIZE
ONE TWO
2 TEAM A 7 3
3 TEAM B 4 9
4 TEAM C 3 4
•=IF((C2+D2)>11,"Gold",IF((C2+
D2)>7,"Silver","No Prize"))
Example 2 (EXERCISE)
• A common example of nested IF functions
is when grades or awards are based upon
a numeric scale.
• The spreadsheet below shows the first 6
students of a class. The cells in Column C
contain a formula with nested IF
functions for Excel to determine the letter
grade based upon the numeric grade that
the instructor entered in column B.
A B C
1 NAME NUMERIC GRADE LETTER GRADE
2 BEN 65
3 JANE 95
4 JOSE 55
5 ROSE 95
6 FRANK 75
7 DAVID 85
•=IF(B2>89,"A",IF(B2>79,"B",IF
(B2>69,"C",IF(B2>59,"D","F")))
)
•OR
•=IF(B2>=90,”A”,IF(B2>=80,”B
”,IF(B2>=70,”C”,IF(B2>=60”D
”,”F”))))
Using AND & IF Functions
• To combine IF & AND functions you
have to just replace logical_test
argument in IF function with AND
function.
• By using AND function you can specify
more than one condition.
• Now, AND function will test all your
conditions here.
• If all the conditions are true then
AND function will return true and
IF function will return the value
which you have specified for true.
• And, if any of the conditions is
false then AND function will return
false and IF function will return
the value which you have specified
for false
Syntax
• If(AND(logical1,logical2),Value_if_true,value_if_false)
Example 1
• Now let's look at our worksheet
examples. Each month sales reps make
a bonus of 500 or 250. To make a 500
bonus, they must sell 11 or more units
AND sell more than 800 cost. So our IF
function tests to see if BOTH of these
conditions are met via an AND function.
If so, Excel returns a value of 500;
otherwise, a value of 250.
A B C D
1 NAME UNITS COST BONUS
2 DELA 11 810
3 KATE 9 880
4 SAM 14 860
5 RUSH 14 770
•=IF(AND(B2>10,C2>800),500,2
50)
Using OR and IF Functions
• In the syntax of IF function, have a logical
test argument in which we use to specify a
condition to test.
• IF(logical_test,value_if_true,value_if_false)
• And, then it return a value based on the
result of that condition.
• Now, if we use OR function for that
argument and specify multiple conditions
into it.
•
• If any of the conditions is true OR
will return true and IF will return
the specific value.
• And, if none of the conditions is
true OR with return false and IF
will return another specific value.
• In this way, we can test more than
one value with IF function.
Example 1
• In this example, we are testing whether any
of the three Sales Teams qualify for the
weekly bonus. In order to qualify, the team
must have sold at least 4 computer systems
OR at least 9,000 in sales
• The teams are listed in column A, the
number of systems sold in column B, and
the total price of the sales in column C.
Column D contains the functions and the
function
A B C D
2 TEAM 1 5 9400
3 TEAM 2 3 9200
4 TEAM 3 3 8800
=IF(OR(B2>=,C2>=900),”YES”,
”NO”)
LOOKUP
FUNCTION
• Introduction
• A lookup formula essentially returns
a value from a table by looking up
another related value. A common
telephone directory provides a good
analogy. If you want to find a
person’s telephone number, you first
locate the name (look it up) and then
retrieve the corresponding number.
Types of lookup functions
• There are multiple lookup functions
in Microsoft Excel and these include:
• 2. HLOOKUP(HORIZONTAL)FUNCTION
VLOOKUP
• Vlookup: You use vlookup to find
data in a table by searching for a
value in the first column of the
table and then returning the
corresponding value in another
column.
• According to Excel’s formula
description, VLOOKUP “looks for a
value in the leftmost column of a
table, and then returns a value in
the same row from a column you
specify.” In simpler terms,
VLOOKUP lets you pull information
about selected cells from another
excel document, into your current
excel document.
The VLOOKUP SYNTAX
• =VLOOKUP(lookup_value,table_array,col_in
dex_num,[range_lookup])
• 2. APROZIMATE MATCH
VLOOKUP FOR EXACT MATCHES
• Generally, the VLOOKUP function uses
three arguments: the lookup-value, the
table location and the column number.
This lookup will find a row based on a
numeric range. However, you may only
want to return a value if you get an exact
match, and the optional fourth argument,
match-type, makes this possible. By
adding FALSE to the function, #NA is
returned if a match isn’t found.
Example
FUNCTION
• COSMETIC
• =VLOOKUP("COSMETIC",ProductTable,4,0
)
• 8040-2140-000
• =VLOOKUP(B3,B7:D8,3,0)
HLOOKUP
• HLOOKUP – the horizontal lookup. This
function searches horizontally across
a sorted data table looking for a
match with the lookup-value (or the
next lowest value). It then looks down
the table to the row you have
specified to find the value to return.
This can be used to search for text,
numbers, or logical values
SYNTAX
• =HLOOKUP(lookup_value,table_arra
y,row_index_num,[range_lookup])
Example
FUNCTION
Charts
and
Graphs
Charts and Graphs
• A chart or graph is a visual
representation of numerical
information
• When a data set is especially
large, graphs make numerical
information easier to read and
analyze
SIR PROSPER 142
Parts of chart or graph
Chart Title
$10,000.00 GRIDLINE
$9,000.00
$8,000.00
$7,000.00
$6,000.00
DATA
$5,000.00
VERTICAL MARKER
$4,000.00
AXIS $3,000.00
$2,000.00
$1,000.00
$0.00
2020 2021 2022 2023 2024 2025 2026 2027 2028 2029
Series1
HORIZONTAL
AXIS
LEGEND
SIR PROSPER 143
Creating a Chart Using the
Chart Wizard
• 1. Navigate A B C
QTR SALES
SALES
QTR 3 $2,600.00
QTR 4 $6,000.00 QTR 1 QTR 2 QTR 3 QTR 4
$8,000.00
2022 $4,200.00 $7,000.00
2028 $7,400.00
$1,000.00
$0.00
Series1
2025 2026 2027 2028 2029
$350.00
$250.00
$150.00
$50.00
Series1
QTR3
Series2
QTR4