Formulas and Functions
Formulas and Functions
Examples of a Formula
When a user types an equals sign in a cell, they are starting to create a
formula.
=4+3
=A3+C9
=B7+B8-(4*2)+1
Examples of a Function
When a user types an equals sign followed by a predefined set of letters (or
clicks on the Fx button in the formula bar), a function begins to be
implemented.
=SUM(A3:A27)
=AVERAGE(F4:F8)
=SUM(A5:A8)/5
=AVERAGE(B3:B19)+25+SUM(1,2,3,5)
FUNCTIONS
1. Average
AVERAGE function in Excel is used to generate a number that
represents a typical value from a range, distribution, or list of numbers.
It is calculated by adding all the numbers in the list, then dividing the
total by the number of values within the list.
Example: =Average(100,95,80) or =Average(A1:A10)
2. SUM
The SUM function adds values. You can add individual values, cell
references or ranges or a mix of all three.
For example:
=SUM(100,150,75)
3. SUMIF
You use the SUMIF function to sum the values in a range that meet
criteria that you specify. For example, suppose that in a column that
contains numbers, you want to sum only the values that are larger
than 5. You can use the following formula: =SUMIF(B2:B25,">5")
4. 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.
5. Counta
The COUNTA function counts cells containing any type of
information, including error values and empty text (""). For
example, if the range contains a formula that returns an empty string,
the COUNTA function counts that value. The COUNTA function does not
count empty cells.
Example: =counta(A1:A10)
6. CountIf
The COUNTIF function is a premade function in Excel, which counts
cells as specified.
NOTE: The COUNTIF function can have basic or more advanced uses.
This covers the basic use for how to count specific numbers and words.
7. Concatenate
Use CONCATENATE, one of the text functions, to join two or more
text strings into one string.
8. If
9. Vlookup
=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).
Drop-downs allow people to pick an item from a list that you create.
11. Rank
The RANK Function is categorized as an Excel Statistical function. The
function returns the statistical rank of a given value within a supplied
array of values. Thus, it determines the position of a specific value in
an array.
Formula: =RANK(number,ref,[order])
=RANK(B1,($B$1:$B$11),0)