Professional Documents
Culture Documents
Formulas are equations that perform calculations on values in your worksheet. Depending on
how you build a formula in Excel will determine if the answer to your formula automatically
updates, as changes are made. A formula starts with an equal sign (=) and can contain any or all
of the following:
Function: A function is a prewritten formula that takes a value or values, performs an
operation, and returns a value or values. Use functions to simplify and shorten formulas on
a worksheet, especially those that perform lengthy or complex calculations.
A Function is generally comprised of two components:
1) A function name
a) The name of a function indicates the type of math Excel will perform.
2) An argument
a) An ―argument‖ is the values that a function uses to perform operations or calculations.
The type of argument a function uses is specific to the function. Common arguments that
are used within functions include numbers, text, cell references, and names
=AVERAGE(A1:A20)
Operator: A sign or symbol that specifies the type of calculation to perform within
an expression. There are mathematical, comparison, logical, and reference operators.
Constant: A value that is not calculated and, therefore, does not change. For example, the
number 210, and the text "Quarterly Earnings" are constants.
Comparison operators
You can compare two values with the following operators. When two values are compared by
using these operators, the result is a logical value either TRUE or FALSE.
Reference
operator Meaning Example
To change the order of evaluation, enclose in parentheses the part of the formula to
be calculated first.
For example, the following formula produces 11 =5+2*3
because Excel calculates multiplication before
addition. The formula multiplies 2 by 3 and then
adds 5 to the result.
In contrast, if you use parentheses to change the =(5+2)*3
syntax, Excel adds 5 and 2 together and then
multiplies the result by 3 to produce 21.
4) Press ENTER.
Create a function manually:
1) Click the cell in which you want to enter the formula.
2) Type = (an equal sign).
3) Type the function name (function names are not case sensitive, they are spelling sensitive:
ex. - SUM, AVERAGE, MAX).
4) Type ( (an open parenthesis).
5) Type the argument.
a) Remember to use a colon to included cells that are adjacent to each other; use a comma
to include nonadjacent cells.
6) Type ) (a closing parenthesis).
7) Press ENTER.
Adds the numbers:
Example1: =SUM(100,200,300)
100+200+300
Adds the cells A12 through C12,
Example2: = SUM(A12:C12)
including A12 and C12
Adds only the cells
Example3: =SUM(A12,A13,C12)
A12+A13+C12
Delete a formula
1) Click the cell that contains the formula.
2) Press DELETE.
Math and Trigonometry Functions
Several math functions can help expedite analysis. This section highlights on a few.
ABS
When there is a need to get the absolute value of a number, the ABS function is helpful.
Statistical Functions
When presented with large datasets, it is helpful to sort and summarize the information at hand.
COUNT – This function counts the number of cells that contain numbers.
COUNTA – This function counts cells containing any type of information, including error values
and empty text (as shown in the example below, it counts the cell marked “VOID”).
COUNTBLANK – This function counts only the empty cells within the dataset, with no
information contained in the cells.
AVERAGE, MEDIAN, MIN, and MAX
With large datasets, it is often helpful to run basic summary statistics before doing further
analysis.
Text Functions
Text functions are helpful when we seek to only get a portion of the information contained within a cell
or we are trying to combine information contained in multiple cells.
LOWER – This function returns text values in a cell in all lower case.
UPPER – This function returns text values in a cell in all upper case.
PROPER – This function returns text values in a cell with the each of the first word
capitalized.
CONCATENATE
CONCATENATE is helpful to combine information contained in separate cells into one cell. The
function contains arguments referencing the cells containing the information.
The example below shows how the function returns values. In the first example, first name and last
name is combined, but look closely because there isn’t a space. By adding to the argument by
including spaces (“ “), commas (“, “), and other desired punctuation or words (“ of “) the appropriate
desired value can be returned.
One common use of the TRIM function is to remove extra spacing. Following the example above, the
TRIM function is used below to remove the extra spacing, which shortens the length of the cell. The
function contains one argument and that is the cell of inquiry.
Logical Functions
Logical functions are useful when we are seeking to perform conditional actions or calculations.
COUNTIF
This function counts the number of cells that meet a criterion. The two examples below show how
COUNTIF operates. The argument is the range of cells that we want Excel or LibreOffice Calc to
review. The tooltip specifies the criterion, e.g. code 100 and vendor ABC, respectively.
IF
If statements are helpful to return one value if the statement is true and another if the statement is
false. In the example below, we are comparing the payment amount (C2:C7) to the invoice amount
(B2:B7). If the payment amount is greater than the invoice amount, then Excel or LibreOffice Calc
returns a value of “Overpayment.” If the payment amount is not less than the invoice amount, then
Excel or LibreOffice Calc return a value of “Not Overpayment.” Please note the attention to the value
we selected to return if the statement is false because the logic statement is also capturing instances
where the payment amount equals the invoice amount (Rows 3 and 6).
Excel Formulas
Basic math
Function or
Used For Format Example
Operator
SUM Add values in a range of cells =SUM(cell range) =SUM(B2:B9)
+ To add individual items =Value1 + Value 2 =B2+C2
- Subtract =Value1 - Value 2 =B2-C2
* Multiply =Value1 * Value2 =B2*C2
/ Divide =Value1 / Value2 =B2/C2
^ Exponents =Value1 ^ Value2 =B2^C2
Average the values in a range
AVERAGE =AVERAGE(cell range) =AVERAGE(B2:B9)
of cells
MEDIAN Median =MEDIAN(cell range) =MEDIAN(B2:B9)
Find the highest value in a
MAX =MAX(cell range) =MAX(B2:B9)
range of cells
Find the smallest value in a
MIN =MIN(cell range) =MIN(B2:B9)
range of cells
Simple formatting tricks
Functions Used For Format Example
Capitalizesthefirstletterinatexts
tringandanyotherlettersintextth
PROPER atfollowanycharacterotherthan =PROPER(cell) =PROPER(A2)
aletter,i.e.aspace.Convertsallo
therletterstolowercase
To change a cell to upper
UPPER =UPPER(cell) =UPPER(A2)
case
LOWER To change a cell to lower case =LOWER(cell) =LOWER(A2)
Removes all blank,
unnecessary spaces at the
start and end of a string
TRIM =TRIM(cell) =TRIM(A1)
including extra spaces, tabs,
and other characters that don’t
print.
Conditional statements
Functions Used For Format Example
=IF(logical test, “result if
Display different information
the test answer is true”,
IF depending on the outcome of =IF(B2>69,”Pass”,”Fail”)
“result if the test answer
a condition test
is false”)
=EXACT(Value1,
EXACT Compare the values =EXACT(B2, C2)
value2)
Putting things together
Functions or
Used For Format Example
Operator
To combine cells with a space =CONCATENATE(text, “ =CONCATENATE(A2, “
CONCATENATE
in-between ”, text) “,B2)
To combine cells with a space
& =text & “ “ & text =A2 & “ “ & B2
in-between (second option)
Counting