Excel Formulas & Functions
Excel Formulas & Functions
Rylander Consulting
www.RylanderConsulting.com
sandy@rylanderconsulting.com
425.445.0064
ii Excel 2016: Formulas & Functions
Version 04092017_2042
© Rylander Consulting
Excel 2016: Formulas & Functions i
Table of Contents
Formulas and Functions ...................................................................................................... 1
Formulas ......................................................................................................................... 1
Rules and Syntax ......................................................................................................... 1
Relative versus Absolute Cell Referencing.................................................................. 1
Functions – Make Calculations Easier Than Using Formulas .......................................... 2
Syntax .......................................................................................................................... 2
The AutoSum Tool on the Home tab .......................................................................... 3
Insert Excel Functions – 4 Methods ............................................................................ 5
Insert Function Tool .................................................................................................... 6
More Functions ................................................................................................................. 10
Logical If Function ......................................................................................................... 10
Logical AND Function combined with IF ....................................................................... 10
Logical OR Function combined with IF.......................................................................... 11
Concatenate Cells – Join Text Together ........................................................................ 11
Named Ranges .................................................................................................................. 12
Create a Range Name Individually ................................................................................ 12
Convert existing row and column labels to names. ...................................................... 12
Paste Names ................................................................................................................. 13
Delete or Add or Modify Range Names ........................................................................ 13
VLOOKUP........................................................................................................................... 15
Syntax of VLOOKUP ................................................................................................... 15
Worksheet Function Example ....................................................................................... 15
SUMIF ................................................................................................................................ 17
Syntax of SUMIF ........................................................................................................ 17
Worksheet Function Example ....................................................................................... 17
Worksheet Function Example #2 .................................................................................. 17
Worksheet Function Example #3 .................................................................................. 18
Version 04092017_2042
© Rylander Consulting
Excel 2016: Formulas & Functions 1
Formulas
Version 04092017_2042
© Rylander Consulting
2 Excel 2016: Formulas & Functions
Version 04092017_2042
© Rylander Consulting
Excel 2016: Formulas & Functions 3
Version 04092017_2042
© Rylander Consulting
4 Excel 2016: Formulas & Functions
6. Select the data you wish to add plus one extra row and one extra column.
(so Excel knows where you want the totals to appear).
7. Click the AutoSum tool.
(i.e. in the example above, select B5:F9 to sum all the rows and columns at once.)
Tip! If there are any gaps in your data (i.e. blank cells) it is a good idea to select
the data in addition to the cell where you want the total to appear, before
clicking the AutoSum tool. This will cause Excel to include all highlighted
cells in the total, rather than stopping at the first blank cell. See example
below.
Selecting only B9 before hitting Autosum includes Selecting B3:B7 before hitting Autosum includes
only data up to the first blank cell in total. all data in total.
Version 04092017_2042
© Rylander Consulting
Excel 2016: Formulas & Functions 5
Version 04092017_2042
© Rylander Consulting
6 Excel 2016: Formulas & Functions
1. Click in the cell where you want the Function to appear and click either:
a. the Insert Function tool on the Formula bar; or
b. The Insert Function tool on the Formula tab.
2. The Insert Function Dialog box appears, allowing you to select any of Excel’s
functions.
a. You can search for a function by typing in a description of what you are
wanting to find; or
Version 04092017_2042
© Rylander Consulting
Excel 2016: Formulas & Functions 7
Version 04092017_2042
© Rylander Consulting
8 Excel 2016: Formulas & Functions
3. Once you find the desired function, you can press Help to get great descriptions
and examples of how to correctly use this function. Here is a great example of
the Help for the Count function. It gives you a description of the function,
followed by its syntax, other remarks, and 1 to 5 examples of how to use it in a
worksheet!
4. When you are done reading Help, you can click the “X” in the top right corner of
the title bar. This brings you back to the Insert Function dialog box. If you then
click OK, Excel will step you through inserting the Arguments as shown below.
Click OK when done.
Version 04092017_2042
© Rylander Consulting
Excel 2016: Formulas & Functions 9
Exercise:
▪ Here is another example of using Insert Function to help with the Sum Function.
1. Click in the cell where the sum is to appear.
2. Click the Insert Function tool on the formula bar.
3. Select Sum for the function and click OK. The following dialog box appears.
4. The Function Name and the ( )s appear in the formula bar. Either type in the
desired range in the Number 1 text box; or
5. Make the dialog box collapse by clicking on the tool shown below and then
drag across the range you want to select in the worksheet.
Your screen should look like this:
Version 04092017_2042
© Rylander Consulting
10 Excel 2016: Formulas & Functions
More Functions
Logical If Function
The IF statement is used to test if the contents of a cell meet certain requirements.
Returns one value if a condition you specify evaluates to TRUE and another value if it
evaluates to FALSE. The result of the test can be a calculation or a string. See examples
below.
Syntax of If statement
= IF(logical_test,value_if_true,value_if_false)
Version 04092017_2042
© Rylander Consulting
Excel 2016: Formulas & Functions 11
Sample IF OR Statements
Cell G3: =IF(OR(D4>6000,E4>4000),"Great Job","Work Harder")
Version 04092017_2042
© Rylander Consulting
12 Excel 2016: Formulas & Functions
Named Ranges
Worksheets often have labels at the top of each column and to the left of each row that
describe the data within the worksheet. You can use these labels within formulas when
you want to refer to the related data. You can also create descriptive names that are
not labels on the worksheet to represent cells, ranges of cells, formulas, or constants.
Create a Range Name Individually
7. Select the cell, range of cells, or nonadjacent selections that you want to name.
Name Box
8. Click in the Name box at the left end of the formula bar.
9. Type the desired range name (i.e. Furniture) and press Enter.
Convert existing row and column labels to names.
10. Select the range that you want to name, including the row or column labels.
11. On the Formulas tab, in the Defined Names group, click Create from Selection.
12. In the Create Names from Selection dialog box, designate the location that
contains the labels by selecting the Top row, Left column, Bottom row, or Right
column check box.
Version 04092017_2042
© Rylander Consulting
Excel 2016: Formulas & Functions 13
Tip! A name created by using this procedure refers only to the cells that contain values
and does not include the existing row and column labels.
Tip! If a column or row heading has a space in the name it will be replaced with an
underline.
13. Click the drop down arrow on the Name box to see the names created.
Paste Names
14. Select an empty cell in a worksheet.
IMPORTANT! Leave room in several rows below selected cell to paste the list of
range names.
15. Select Formulas, Use in Formula, Paste Names and then click Paste List.
A list of all names, and what they represent, appears.
Version 04092017_2042
© Rylander Consulting
14 Excel 2016: Formulas & Functions
Version 04092017_2042
© Rylander Consulting
Excel 2016: Formulas & Functions 15
VLOOKUP
In Microsoft Excel, the VLOOKUP function searches for value in the left-most column of
table_array and returns the value in the same row based on the index_number.
Syntax of VLOOKUP
VLOOKUP( value, table_array, index_number, [not_exact_match] )
value is the value to search for in the first column of the table_array.
index_number is the column number in table_array from which the matching value
must be returned. The first column is 1.
not_exact_match is optional. It determines if you are looking for an exact match based
on value. Enter FALSE to find an exact match. Enter TRUE to find an approximate match,
which means that if an exact match if not found, then the VLOOKUP function will look
for the next largest value that is less than value. If this parameter is omitted, the
VLOOKUP function returns an approximate match.
IMP! If you enter FALSE for the not_exact_match parameter and no exact match is
found, then the VLOOKUP function will return #N/A.
Version 04092017_2042
© Rylander Consulting
16 Excel 2016: Formulas & Functions
ISNA
The VLOOKUP function will return an NA if a value is not found. To capture that error and
return the value you desire, use a combination of the If and an ISNA functions as shown below.
IFNA
This is a new function in Excel 2016 and works the same as the =If(ISNA) function above
only it dramatically shortens the function! See the new function below.
Version 04092017_2042
© Rylander Consulting
Excel 2016: Formulas & Functions 17
SUMIF
In Microsoft Excel, the SUMIF function adds all numbers in a range of cells, based on a
given criteria.
Syntax of SUMIF
SUMIF( range, criteria, [sum_range] )
range is the range of cells that you want to apply the criteria against.
sum_range is optional. It is the cells to sum. If this parameter is omitted, the SUMIF
function uses range as the sum_range.
Version 04092017_2042
© Rylander Consulting
18 Excel 2016: Formulas & Functions
Source: https://www.lsntap.org/sites/lsntap.org/files/Excel%202016%20Formulas%20Functions%20Training.pdf
Version 04092017_2042
© Rylander Consulting