0% found this document useful (0 votes)
22 views11 pages

Excel 2: Formulas & Functions Guide

Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views11 pages

Excel 2: Formulas & Functions Guide

Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Excel 2

Module 2 – Formulas & Functions

Revised 1/1/17 People’s Resource Center


Excel 2 – Module 2

Module Overview
This module is part of the Excel 2 course which is for advancing your knowledge of Excel. During this
lesson we will expand on your existing knowledge of formulas and functions.

Contents
Module Overview ......................................................................................................................................................1

1. Formulas and Functions Review ....................................................................................................................2


1.1. Cell Ranges ...............................................................................................................................................3
1.2. Absolute Reference ...................................................................................................................................4

2. Complex Functions - Vlookup ........................................................................................................................6

Excel 2 – Module 2 Page 1 of 10 People’s Resource Center


Excel 2 – Module 2

1. Formulas and Functions Review


All functions and formulas begin with an “=” sign. Excel Operators
Formulas typically use mathematical operators, listed Plus + Addition
in the table to the right. By default, functions and Minus - Subtraction
formulas will show the answers in the worksheet. To Asterisk * Multiplication
see the function or formula you must select the cell Slash / Division
and use the formula bar to evaluate the formula or Caret ^ Exponentiation
function. Parentheses ( ) Precedence

Follow Open Weekly Totals


Me 1. Open Weekly [Link] –This
is the workbook created during
Excel 2 – Module 1.
2. Select the Total Chart and
using the delete key, remove
the chart.
In the Weekly Totals workbook, the formulas under Total (column G) add each of the
week’s days (Week 1 Monday, Tuesday, Wednesday, Thursday, and Friday) by adding
each day’s cell reference. Remember, cell references allow us to change the value of a
particular day without needing to update all the formulas and functions using that day
(so you only need to update one cell).

Cell Reference
Noun
Cell Reference is the intersection of a row and column,
used to describe the location of a cell within a
spreadsheet.

Functions in Excel can be used to make working in Excel simpler. Let’s begin with a
simple example of a function.

Excel 2 – Module 2 Page 2 of 10 People’s Resource Center


Excel 2 – Module 2

Follow Change formulas into functions


Me 1. In G2, replace =B2+C2+D2+E2+F2 with the SUM function.
2. Type =SUM(B2,C2,D2,E2,F2) – remember to hit enter after entering data
into a cell.

1.1. Cell Ranges


When using functions Excel allows cell ranges to be used. These allow the user to
enter in many cells for a calculation rather than selecting individual cells.

Cell Range
Noun
Cell Range or just Range refers to a selection of cells.
It is noted as the first cell reference and last cell
reference of a selection with a “:” between.
For example A2:A10 or B4:D9

Ranges are always ordered from the left or top most to the bottom or right most.
Ranges can also be used for full columns or rows.

Example Ranges
4 cells, square 20 cells,
rectangle
B2:C3
C3:G6
3 cells, in row 3 cells, in column
B4:D4 B2:B4

Single row Single column


3:3 C:C

Multiple(3) rows Multiple(4)


columns
1:3
B:E

Excel 2 – Module 2 Page 3 of 10 People’s Resource Center


Excel 2 – Module 2

Follow Replace cell references for range


Me 1. In G2, replace =SUM(B2+C2+D2+E2+F2) with the same function using a
range.
2. Type =SUM(B2:F2) – you can use your mouse to click and select the range
or type it.
3. Using the auto fill,
change all of the
formulas under
Total to the new
function

1.2. Absolute Reference


In some cases there may be parts of the formula
that you will not want to change when copying or Allow changes A1
auto filling formulas. To do this you need to tell Do not change the Row A$1
Excel which part of the cell reference should not
change (the row or the column) when the formula Do not change the $A1
is copied to a different location in the worksheet. Column
To do this, put a $ in front of the part you do not Do not change either $A$1
want to change. (always the same cell)
In our example, Weekly Totals, let’s calculate the average of the week Totals and
compare each week to that average.

Follow Compare Totals to Average


Me 1. In A7 type Average
2. Select B7, click the
function button.
3. Search for Average by
typing average into the
top box and clicking go.
4. Select Average if
needed and click OK.

Using the Function Arguments dialog box is one of the easiest ways to ensure your
function works correctly. The box will guide you through the function parameters and
the bottom of the box shows the Formula result.

Excel 2 – Module 2 Page 4 of 10 People’s Resource Center


Excel 2 – Module 2

Follow Compare Totals to Average Cont.


Me We would like to average the weekly totals.

5. Select the range of weekly Totals for Number1, G2:G5


6. Click OK once you have selected or typed in the range.

Now that the average has been calculated we can compare each weekly Total to the
Average, being careful to use absolute cell reference to ensure the cell reference
representing the average does not change as the function is copied.

Follow Compare Totals to Average Cont.


Me 7. In H1 type Difference
8. In cell H2 enter the following formula, =G2-$B$7
9. Using the auto fill, add the formula to the other weeks (through H5)

Excel 2 – Module 2 Page 5 of 10 People’s Resource Center


Excel 2 – Module 2

2. Complex Functions - Vlookup


Entering in more complex functions can be easy using the Function Arguments dialog
box. Let’s work through another example.
Vlookups can be used to pull information into a table from another table. One variable in
the table should be unique, such as name, social security number, or ID number. That
variable must be included in both tables you are working with.
In our example, we will use Vlookup to add birthdates to our list of students. The first
table will be a teacher’s class roster. The second table will be a master list of school
birthdays.

Follow Open Ms Roberts Birthdays


Me 1. Open Ms Roberts
[Link]
2. Add Birthdays to D2.
Ms Roberts has 19 students.
There are 218 student birthdays in
the Birthdays tab, they are currently
sorted by day.
Adding each birthday to the list will
take time, a fast way is to use a
vlookup.

Let’s take a look at the vlookup function.

VLOOKUP(lookup_value, table_array, col_index_num, range_lookup)


Looks for a value in the leftmost column of a table, and then returns a value in
the same row from a column you specify. By default, the table must be sorted in
an ascending order.
Lookup Value – what you are looking for in the other table (In our example, we will look
for the matching student ID number).
Table Array – the table or range from which the data will be retrieved, the lookup value
needs to match the leftmost column of the table array and the data to be retrieved

Excel 2 – Module 2 Page 6 of 10 People’s Resource Center


Excel 2 – Module 2

should also be in the table. (In our example, we will use the entire table in the Birthdays
sheet).
Column Index Number (Col_index num) – this is how many columns over in the table
the data you want is located (In our example, the birthday is the second column of the
table).
Range lookup – this value (either TRUE or FALSE) is used to tell Excel if you want an
exact match or approximate. In many cases, including our example, you will want an
exact match. Use FALSE to find an exact match.
Note: the table must be sorted in ascending order. This means the further down the
table, the larger the number.

Follow Sort Birthdays


Me 1. Select Birthday tab
2. Highlight the entire table, can use a shortcut to select all (ctrl + A)
3. Select Filter from the Sort & Filter drop down on the ribbon Home tab
(Editing group)

4. Using the drop down arrow on Student


ID, sort smallest to largest (ascending).

Now that the birthdays have been sorted, we can begin adding the vlookup to add in
birthdays to Ms Roberts Class.

Excel 2 – Module 2 Page 7 of 10 People’s Resource Center


Excel 2 – Module 2

Follow Add Vlookup


Me 1. Return to the Ms Roberts Class tab.
2. Select D3
3. Click the function button
4. Search for Vlookup
5. Select VLOOKUP from the list and
click OK
Add Function Arguments
6. In the Lookup_value we will begin
by adding the student ID of the
student we are looking for, type or
click A3. You should now see the
student ID appear next to your
selection, 20160109.
7. In Table_array we will add the birthday table, to ensure the entire table is
always selected we will choose this by column. You can type or click but
choose the Birthdays tab columns A and B or Birthdays!A:B

We recognize the cell range A:B but have not covered referencing cells or ranges in
other sheets. This is done by typing the name exactly as it appears (capitals included)
with an ! after. In our examples the two sheet references are Ms Roberts Class! and
Birthdays!

Excel 2 – Module 2 Page 8 of 10 People’s Resource Center


Excel 2 – Module 2

Follow Add Function Arguments Cont.


Me 8. In Col_index_num add the column number of the table that holds the data
you wish to add. In this case birthdays are held in the second column so
type 2
9. In Range_lookup we will add FALSE this will ensures that only an exact
match will be returned.
The second section of the Function Arguments dialog box contains more
information on the function being entered as well as what information is required for
each argument (parameter).
10. Click OK once finished.

The functions button and dialogs fill in the function for you. Notice how D3 now holds
the full function with all arguments completed
=VLOOKUP(A3,Birthdays!A:B,2,FALSE)

Excel 2 – Module 2 Page 9 of 10 People’s Resource Center


Excel 2 – Module 2

Follow Continue adding all Birthdays


Me 1. Using the auto fill function, continue
adding each birthday.
The sheet may look funny as the vlookup
does not copy formatting. Because dates
are also numbers we need to format our
sheet to show dates in a way we can read.
2. Select D3:D21 us the drop down in
the Number group of the Home tab to
format the numbers into the Short
Date format.

Excel 2 – Module 2 Page 10 of 10 People’s Resource Center

Common questions

Powered by AI

Auto fill in Excel allows users to extend formulas across multiple cells by dragging the fill handle, replicating the formula while adjusting relative references. When using this feature with functions, it's crucial to ensure that any references meant to remain constant are set as absolute references, to prevent unintended modifications. For instance, in calculating the differences between weekly totals and an average, the absolute reference for the average must be preserved to avoid skewing results during auto fill .

Absolute cell references are significant in Excel because they allow a particular part of a cell reference to remain constant when a formula is copied to other cells. This is essential in scenarios where a fixed value or reference point, such as a tax rate or a specific sum, must remain unchanged across multiple calculations. Excel facilitates this by placing a "$" before the row or column part of the reference, such as A$1 or $A$1. This technique is especially useful in tasks like comparing totals to a calculated average, as seen in the Weekly Totals worksheet where the average cell reference should remain static .

Using cell ranges in Excel functions simplifies formula creation because it allows users to include a group of contiguous cells with a single reference, reducing the potential for errors and making formulas easier to read and manage. For example, instead of using =SUM(B2+C2+D2+E2+F2), which individually specifies each cell, a user can write =SUM(B2:F2) to use a cell range, thereby streamlining the process and allowing easier modification if the range changes .

In Excel, operator precedence governs the order in which operators within a formula are evaluated, directly influencing the outcome of complex calculations. Operators like exponentiation have higher precedence over multiplication and division, which in turn are performed before addition and subtraction, unless parentheses are used to explicitly define the order. Understanding precedence allows for precise and expected results, enabling users to construct formulas that more accurately reflect complex calculations by controlling the execution order through the use of parentheses to override default precedence .

VLOOKUP enhances data retrieval by searching for a value in the leftmost column of a table and returning corresponding values from other columns in the same row. This is useful for tasks like matching student ID information to their birthdates in different tables. However, it has limitations: the search key must be in the first column, it only retrieves a value from one direction (rightwards), and the function can be prone to errors if data isn't sorted correctly or if there are duplicate entries. Additionally, it may not efficiently handle large datasets or situations requiring bi-directional searches, which might be better suited for more versatile functions like INDEX-MATCH .

Using the SUM function with cell ranges improves efficiency by reducing complexity in formula writing and minimization of errors. Instead of manually adding individual cells (e.g., =B2+C2+D2+E2+F2), a user can achieve simplicity with =SUM(B2:F2), which is easier to read and manage. This approach facilitates updates since adding or removing data within the range doesn't require rewriting formulas. It also decreases the likelihood of typo errors and makes it convenient to adjust to any changes in data organization or additional entries .

Proper data formatting in Excel, especially for elements like dates, significantly impacts the readability and interpretability of spreadsheet data. When functions like VLOOKUP return dates, they may initially appear in a general number format, which can be confusing. Formatting these to a date format such as Short Date enhances clarity and comprehension for users. This ensures that data is not only more accessible but also minimizes the risk of misinterpretation, thus facilitating effective decision-making based on accurate data representation .

An exact match requirement in VLOOKUP means that the lookup_value must precisely match an entry in the leftmost column of the table_array for data retrieval. This necessitates organizing data tables meticulously to prevent mismatches. Before using the function, the user must ensure that the column containing lookup_values is free from duplicates and is formatted consistently matching the lookup_value type (e.g., both as text, both as numbers). Should inconsistencies exist, the function may return errors or incorrect data. Users must also adjust table structure to prioritize the unique identifier (such as student ID numbers) in the first column .

The VLOOKUP function typically requires the data table to be sorted in ascending order to ensure efficient and accurate retrieval of values, especially when the range_lookup argument is set to TRUE (approximate match). If the table isn't sorted, VLOOKUP might return incorrect values or lead to errors since it stops searching once it finds a value greater than the lookup_value. This sorting requirement ensures that the function can effectively locate and retrieve the closest or exact match. However, for exact matches (using FALSE), sorting is not essential, but remains a best practice .

The Function Arguments dialog box in Excel plays a critical role by guiding users through the input of function parameters, offering a convenient way to ensure each argument is correctly filled out. It displays descriptions for each parameter, helping users understand the purpose and required inputs. This is particularly useful in complex functions like VLOOKUP, where users can see in real-time the lookup_value, table_array, col_index_num, and range_lookup inputs. Such features help prevent errors and enhance user confidence in constructing accurate functions .

You might also like