BADM 2301 Spring 2014 Lab 5
BADM 2301 Spring 2014 Lab 5
Lab 5
EXCEL PART 2
PREETHI SUBRAMANIAN
09/24/2014
Todays Agenda
V-Lookup
Pivot Table
In-class exercise
VLookup Function
Vertical Lookup
You can match data from one table to a column in another
table
This is kind of complicated to understand at first. Dont
worry!
VLOOKUP
Lookup_value
The value that is in the first column of the
array
Lookup_Value there is a value that you specify that
will be looked for in the table_array
Slide 5 Example : You have a grade of 89% in Cell A2 but you need to
assign a letter grade in Cell B2
Your Lookup_Value is A2 (89%)
You will then look up this value (89%) in the table_array
The Table_array has a column of percentages, and a column of related grade letters
VLOOKUP
Table_array
Table_array is the table of data from which data are looked up
You specify the array which contains the data by selecting the
top-left corner of the table and the bottom-right corner of the
table, separated by a colon :
To make the value absolute, Dollar signs are used before each
letter and number referring to these table corners
Absolute means we can copy the formula without changing it
Example
$E$6:$H$8: Tells us that the top left corner of the data in the table we are looking up is
cell E6 and the bottom right corner of the data in the table we are looking up is cell H8
VLOOKUP Col_Index
The column number in the table_array that you
specify from which the matching number must be
returned
Slide 7 Example:
Our Table_array is: $E$6:$H$8$
This means we have Columns E, F, G, H in our table
We only select ONE of these 4 columns to be the
Col_Index
If you want the data in Column E, your Col_index will be 1
If you want the data in Column F, your Col_index will be 2
If you want the data in Column G, your Col_index will be 3
If you want the data in Column H, your Col_index will be 4
VLOOKUP
Range_Lookup
TRUE: an exact match or approximate match
is returned
If an exact match is not found, the next largest value
that is less than the look-up value is returned
If look_up value is smaller than the smallest value in
the table_array(first column), an error value will be
returned
Pivot Tables
Excel pivot tables are very useful and powerful feature of
MS Excel
Essentially just a data summarization tool
Pivot table
advantages
Interactive: easily rearrange them by moving, adding, or
deleting fields
Dynamic: results are automatically recalculated whenever
fields are added or dropped, or whenever categories are
hidden or displayed
Potential uses:
Reporting with refreshable summary table reports
Data validation and checking
Data exploration
Formatting
To rename the fields - click the field name, retype, and
then press ENTER.
Format Numbers:
Click a cell that contains numerical data, or the name of the
field heading for that data.
Click on Number format
In the Format Cells dialog box, click any option in the
Category list.
Click OK twice.
You may click the right button and choose Number format
In-Class Exercise
Answer the following questions by building pivot tables
with the Faculty Data worksheet:
1) Which department has the highest average salary?
2) Which department has the highest number of full
professors?
3) How many professors of each rank were hired in each
year?