Download presentation
Presentation is loading. Please wait.
Published byAlan Holt Modified over 9 years ago
1
CS&E 1111 Exreference Microsoft Excel Reference Functions Objectives: l Understanding and using Reference Functions l The computer’s algorithm l Syntax
2
CS&E 1111 Exreference Reference Functions l Functions that allow you to “lookup” a value based on a specified criteria l Excel includes many reference functions – Lookup, Vlookup, Hlookup, Match etc. What letter grade corresponds to 78 points How much is 2 Lbs of apples?
3
CS&E 1111 Exreference LOOKUP Function =LOOKUP(lookup_value, lookup-vector, result_vector) l lookup_value - criteria to lookup or “match” l lookup_vector – range containing one row or column where you want to compare the criteria l result_vector – range containing one row or column (matching the lookup_vector size) that contains the corresponding values you wish to find.
4
CS&E 1111 Exreference Lookup Example – column vector l Lookup letter grade you get with 80 points: Lookup( 80,A2:A6,B2:B6) “B”
5
CS&E 1111 Exreference Lookup Example – row vector l Lookup(80,B1:F1, B2:F2) – returns B l Lookup letter grade you get with 80 points:
6
CS&E 1111 Exreference The lookup function’s algorithm will give you the greatest value that does not exceed the value being searched for. Could you lookup the letter grade for 67 points? =Lookup(67,A2:A6, B2:B6) results in the value D
7
CS&E 1111 Exreference Sort your vector Now try finding the grade for 67 points with an unsorted lookup_vector? =Lookup(67,A2:A6,B2:B6) The value returned may not be correct The lookup algorithm requires that the values in the lookup_vector be placed in Ascending order
8
CS&E 1111 Exreference A more sophisticated example: LOOKUP(B2,grades!A$2:A$6grades!,B$2:$B6) grades!
9
CS&E 1111 Exreference How would you find this information..given these two different lookup tables? l How old is Jane? l Who is the youngest person? age1! age2!
10
CS&E 1111 Exreference Recap A lookup function lets you find information from a list based on a criteria l need to specify a criteria l need to specify a range where you will find that criteria and this range must be sorted (either vertically or horizontally) in ascending order l need to specify a range where you will find the corresponding information
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.