Excel Formula and Functions
Excel Formula and Functions
Name :
Course Outline
Lesson 1 : Building Basic Formulas to Advanced Formula
Writing and Troubleshooting
Statistical Functions
Database Functions
Logical Functions
Mathematical Functions
Lesson 2 : Lookup, Reference and Information Functions
Vlookup & Hlookup
Index & Match
Lookup
Iferror
Lesson 3 : Manipulating Text , Date and Time
Lesson 4 : Applying Protections
Lesson 5 : Import , Export and Filtering Data
Lesson 6: Analysing Data Using Pivot Tables, Slicers and
Pivot Charts
Lesson 7: Working with Macros
The Ribbon
• SUM , SUMIF, SUMIFS, AVERAGE , AVERAGEIF, AVERAGEIFS : Totaling and averaging functions
• COUNT(), COUNTA(), and COUNTBLANK() , COUNTIF , COUNTIFS
: Counting Items in a List
• ROUND(), ROUNDDOWN(), ROUNDUP(): Rounding Numbers
• MROUND(), CEILING(), and FLOOR(): More Rounding Functions
• PRODUCT(), FACT(), POWER(), and SQRT(): Products, Factorials, Powers, and Square Roots
11 Prepared by : Ms Shabenah Mohd (MCT)
Chapter 1 : Kick Start with Excel Formulas
(Basic to Advanced)
One of the most powerful features in Excel is the ability to calculate
numerical information using formulas. Just like a calculator, Excel can
add, subtract, multiply, and divide. In this Chapter, we'll show you how
to use cell references to create simple formulas.
Mathematical operators
Excel uses standard operators for formulas, such as a plus sign for
addition (+), a minus sign for subtraction (-), an asterisk for
multiplication (*), a forward slash for division (/), and a caret (^)
for exponents.
All formulas in Excel must begin with an equals sign (=). This is
because the cell contains, or is equal to, the formula and the value it
calculates.
If the values in the referenced cells change, the formula automatically recalculates:
To name a cell
or range, follow
these steps:
1. Select the cell or cell
range that you want to
name.
2. You also can select non-
contiguous cells (press Ctrl
as you select each cell or
range).
3. On the Formulas tab, click
Define Name in the
Defined Names group.
4. The New Name dialog box
appears.
TIP! Alternatively, you can enter a range name into the Name box located at
the left end of the Formula bar and press Enter to create the name.
To use a named cell or range, click the down arrow in the Name box at
the left end of the Formula bar.
Select the range name you want to access, and Excel highlights the named
cells.
Option: it is also a numeric value ranging from 0 to 7 and determines which values
are to be ignored while calculations
However, there are situations in which you need to get the minimum under a condition.
In the following post, we are going to illustrate how to return the minimum using a
simple example. We got an Excel table with two columns “Car type” and “Price”. We
want to know the minimum price for each car type. Sounds easy? Unfortunately, Excel
makes it unnecessarily difficult to calculate.
The minimum (or maximum) range: In this range, Excel will search for the
minimum or maximum value and return it.
The first criteria range: The range of cells which contain the first criteria.
The first criteria: This is the value, which Excel searches for in the first
criteria range.
If you got more criteria, you can just extend the formula and repeat
number 2 and 3 from above. Let’s take a look at an easy example: We got
car names in column A, their colors in column B and their prices in column
B. We want to know the lowest price of a blue VW Golf:
=MINIFS(C:C,A:A,"VW Golf",B:B,"Blue")
=IFS(A1=1,1,A1=2,2,A1=3,3)
Argument Description
logical_test1 (required) Condition that evaluates to TRUE or FALSE.
Result to be returned if logical_test1 evaluates to TRUE.
value_if_true1 (required)
Can be empty.
logical_test2…logical_test127
Condition that evaluates to TRUE or FALSE.
(optional)
Result to be returned if logical_testN evaluates to TRUE.
value_if_true2…value_if_true127
Each value_if_trueN corresponds with a condition
(optional)
logical_testN. Can be empty.
Which says IF(the value in cell F2 equals 1, then return the value in cell D2, IF the value in cell F2
equals 2, then return the value in cell D3, and so on, finally ending with the value in cell D8 if none of
the other conditions are met).
To specify a default result, enter a condition that will always be true for your final
logical_test argument, such as TRUE or 1=1. If none of the other conditions are
met the corresponding value will be returned. In Example 1, rows 6 and 7 (with
the 58 grade) demonstrate this.
If a logical_test argument is supplied without a corresponding value_if_true, this
function shows a "You've entered too few arguments for this function" error
message.
If a logical_test argument is evaluated and resolves to a value other than TRUE or
FALSE, this function returns a #VALUE! error.
If no TRUE conditions are found, this function returns #N/A error.
Advanced Lookups
MATCH(): Finding the Position of Items in a Range
INDEX(): Retrieving the Value from a Cell
Performing a “Left Lookup”
Performing a Double Lookup
Information Functions
The “IS” Functions: Checking the Value Inside a Cell
Tutorial: Generating Invoices from a Product Catalogue
To begin with, let's create the general formula pattern. We just take the INDEX /
MATCH formula you already know and add one more MATCH function to it, which
will return the column number:
=INDEX (your table, (MATCH (vertical lookup value, column to lookup against, 0)),
(MATCH (horizontal lookup value, row to lookup against, 0))
LEFT(), MID(), and RIGHT(): Copying DAY(), MONTH(), and YEAR(): More
Text to Columns