0% found this document useful (0 votes)
10 views26 pages

Comp102 BT Week 9 Excel2 Eng

The document provides an overview of various Excel functions categorized into Basic Functions, Text Functions, Logical Functions, Lookup and Reference Functions, Date and Time Functions, and Error Handling Functions. Each category includes specific functions such as SUM, AVERAGE, CONCATENATE, IF, VLOOKUP, TODAY, and IFERROR, along with their descriptions and usage examples. It serves as a reference guide for users to understand and apply these functions effectively in Excel.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views26 pages

Comp102 BT Week 9 Excel2 Eng

The document provides an overview of various Excel functions categorized into Basic Functions, Text Functions, Logical Functions, Lookup and Reference Functions, Date and Time Functions, and Error Handling Functions. Each category includes specific functions such as SUM, AVERAGE, CONCATENATE, IF, VLOOKUP, TODAY, and IFERROR, along with their descriptions and usage examples. It serves as a reference guide for users to understand and apply these functions effectively in Excel.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 26

Basic Functions

• SUM: Adds up a range of cells.

• AVERAGE: Calculates the average of a range of cells.

• COUNT: Counts the number of cells in a range that contain numbers.

• MIN/MAX: Finds the smallest/largest value in a range.


SUM
When we need to SUM up one or more cells we use
this functions. We can sum individual cells or input a
range.
=SUM(A2:A10) Adds the values in cells A2:10.
=SUM(A2:A10, C2:C10) Adds the values in cells A2:10,
as well as cells C2:C10.

Error when an input is


numeric

Reference is updated automatically


when a cell is inserted

Error when an input reference is deleted


AVERAGE
Returns the average (arithmetic mean) of the arguments. For example, if the range
A1:A20 contains numbers, the formula =AVERAGE(A1:A20) returns the average of
those numbers.
COUNT
The COUNT function counts the number of cells that contain numbers, and counts
numbers within the list of arguments.
Use the COUNT function to get the number of entries in a number field that is in a
range or array of numbers.
For example, you can enter the following formula to count the numbers in the
range A1:A20: =COUNT(A1:A20). In this example, if five of the cells in the range
contain numbers, the result is 5.
MIN / MAX
Returns the smallest / largest number in a set of values.
Text Functions
• CONCATENATE: Combines multiple text strings into one.

• LEFT/RIGHT: Extracts a specified number of characters from the left/right side


of a text string.

• MID: Extracts a specified number of characters from the middle of a text


string.

• TRIM: Removes extra spaces from text.


CONCATENATE
Use CONCATENATE, one of the text functions, to join two or more text strings into one string. In
Excel 2016, Excel Mobile, and Excel for the web, this function has been replaced with the
CONCAT function.
For example:
=CONCATENATE("Stream population for ", A2, " ", A3, " is ", A4, "/mile.")
=CONCATENATE(B2, " ",C2)
LEFT/RIGHT
LEFT returns the first character or characters in a text string, based on the number
of characters you specify.
RIGHT returns the last character or characters in a text string, based on the
number of characters you specify.
MID
MID returns a specific number of characters from a text string, starting at the
position you specify, based on the number of characters you specify.
=MID(text,start_num,num_chars)
 text - The text to extract from.
 start_num - The location of the first character to extract.
 num_chars - The number of characters to extract.
TRIM
Removes all spaces from text except for single spaces between words. Use TRIM
on text that you have received from another application that may have irregular
spacing.
Logical Functions
• IF: Performs a logical test and returns one value for a TRUE result and another
for a FALSE result.

• AND/OR: Combines multiple logical tests.

• NOT: Reverses the value of its argument.


The IF function is one of the most popular functions in Excel, and it allows you to
make logical comparisons between a value and what you expect. So an IF
statement can have two results. The first result is if your comparison is True, the
second if your comparison is False.

For example, =IF(C2=”Yes”,1,2) says IF(C2 = Yes, then return a 1, otherwise return
a 2).
AND
Use the AND function, one of the logical functions, to determine if all conditions in
a test are TRUE.

=IF(AND(B5>750,C5>750),"Approve","Deny")

Use the OR function, one of the logical functions, to determine if any conditions in
a test are TRUE.
NOT
Use the NOT function, one of the logical functions, when you want to make sure
one value is not equal to another.
Lookup and Reference Functions
• VLOOKUP: Searches for a value in the first column of a table and returns a
value in the same row from another column.

• HLOOKUP: Searches for a value in the top row of a table and returns a value in
the same column from a specified row.

• INDEX/MATCH: More flexible lookup functions that can be used together.


VLOOKUP
Use VLOOKUP when you need to find things in a table or a range by row. For example,
look up a price of an automotive part by the part number, or find an employee name
based on their employee ID. In its simplest form, the VLOOKUP function says:

=VLOOKUP(What you want to look up, where you want to look for it, the column
number in the range containing the value to return, return an Approximate or Exact
match – indicated as 1/TRUE, or 0/FALSE).
HLOOKUP
Searches for a value in the top row of a table or an array of values, and then
returns a value in the same column from a row you specify in the table or array.
Use HLOOKUP when your comparison values are located in a row across the top of
a table of data, and you want to look down a specified number of rows. Use
VLOOKUP when your comparison values are located in a column to the left of the
data you want to find. The H in HLOOKUP stands for "Horizontal."
INDEX/MATCH
The INDEX function returns a value or the reference to a value from within a table or range.
INDEX(array, row_num, [column_num])
The MATCH function searches for a specified item in a range of cells, and then returns the
relative position of that item in the range. For example, if the range A1:A3 contains the values 5,
25, and 38, then the formula =MATCH(25,A1:A3,0) returns the number 2, because 25 is the
second item in the range.
Date and Time Functions
TODAY: Returns the current date.
NOW: Returns the current date and time.
DATE: Creates a date from individual year, month, and day components.
TODAY
The TODAY function returns the serial number of the current date. The serial
number is the date-time code used by Excel for date and time calculations. If the
cell format was General before the function was entered, Excel changes the cell
format to Date. If you want to view the serial number, you must change the cell
format to General or Number.

The TODAY function is useful when you need to have the current date displayed on
a worksheet, regardless of when you open the workbook. It is also useful for
calculating intervals. For example, if you know that someone was born in 1963,
you might use the following formula to find that person's age as of this year's
birthday:

= YEAR( TODAY())-1963
NOW
Returns the serial number of the current date and time. If the cell format was
General before the function was entered, Excel changes the cell format so that it
matches the date and time format of your regional settings. You can change the
date and time format for the cell by using the commands in the Number group of
the Home tab on the Ribbon.

The NOW function is useful when you need to display the current date and time
on a worksheet or calculate a value based on the current date and time, and have
that value updated each time you open the worksheet.
DATE
Use Excel's DATE function when you need to take three separate values and
combine them to form a date.
Error Handling Functions
IFERROR: Returns a value you specify if a formula evaluates to an error; otherwise,
it returns the result of the formula.
ISERROR: Checks whether a value is an error and returns TRUE or FALSE.
IFERROR
You can use the IFERROR function to trap and handle errors in a formula. IFERROR
returns a value you specify if a formula evaluates to an error; otherwise, it returns
the result of the formula.
IFERROR(value, value_if_error)
ISERROR
The Excel ISERROR function returns TRUE for any error type excel generates,
including #N/A, #VALUE!, #REF!, #DIV/0!, #NUM!, #NAME?, or #NULL! You can use
ISERROR together with the IF function to test for errors and display a custom
message, or run a different calculation when an error occurs.

You might also like