GUIDE 3 CLASS 6C SMT 1
GUIDE 3 CLASS 6C SMT 1
LEARNING OBJECTIVES :
I. VLOOKUP FUNCTION
VLOOKUP stands for Vertical Lookup. As the name specifies, VLOOKUP is a built-in
Excel/Sheet function that helps you look for a specified value by searching for it
vertically across the sheet. VLOOKUP in Excel/sheet may sound complicated, but
you will find out that it is a very easy and useful tool once you try it. Look at the
example below to understand VLOOKUP.
The VLOOKUP formula below looks for a Company name with Company ID ( 3 ).
VLOOKUP
We can use the VLOOKUP function with the help of a simple formula.
The Formula for VLOOKUP is:
Where,
lookup_value: This specifies the value that you want to look up in our data.
table_array: This is the location where the values are present in
Excel/Sheet.
col_index_number: This specifies the column number from where we
need to return the value. Its start from (1………n)
range_lookup: This has two options; if the value is set to FALSE, that means
we are looking for an exact match. If the value is TRUE, then we are
looking for an approximate match.
o If you omit range_lookup from the VLOOKUP function, it will evaluate the
non-exact matches as well. However, it will use an exact match if it
exists in your data.
o If the lookup column has duplicate values then it will only pick the first
value.
o VLOOKUP is not case-sensitive.
o Adding a column after applying VLOOKUP formula will show an error as
hard-coded index values don’t change automatically on adding or
deleting columns.
#N/A! error – Occurs if the VLOOKUP function fails to find a match to the
supplied lookup_value.
#REF! error – Occurs if when the col_index_num argument > number of
columns in the supplied table_array; or the formula attempts to
reference cells that do not exist.
#VALUE! error – Occurs if either: The col_index_num argument is less
than 1 or is not recognized as a numeric value; or The range_lookup
argument is not recognized as one of the logical values TRUE or FALSE.
The HLOOKUP function has the following formula, with 3 required arguments,
and 1 optional argument:
Required Arguments :
Here are the 3 required arguments for HLOOKUP, in the order they need to be
entered:
1) lookup_value: What value should HLOOKUP look for, in the first row of
the lookup range (table_array). This argument can be a value that you
type into the formula, or a cell reference, for a cell that contains the
lookup value.
2) table_array: Where is the lookup table that has the lookup values in the
first row? This can be a range reference, or a range name, or a table
name, with 2 or more columns.
3) row_index_num: Within the lookup table (table_array), which row has
the values that HLOOKUP should return? This number can be different
from the worksheet row number, if the lookup table does not start in row
1 on the worksheet.
Optional Argument
Here is the optional argument for HLOOKUP, and its order in the
function's formula:
4) [range_lookup]: Should HLOOKUP find an exact match or an
approximate match? There are three options for entering this argument:
Omit: If you omit this argument, HLOOKUP looks for an approximate match
TRUE: Find an approximate match for the lookup value. Values in the first row
must be sorted in ascending order, from left to right. Note: Instead of TRUE, you
can enter a 1 (one)
Result
1
row 2
3
4
5
6
A. VLOOKUP FUNCTION
B. HLOOKUP FUNCTION
a. Horizontal c . Vertical
b. Diagonal d. Random
a. lookup_value c . table_array
b. col_index_num d. row_index_num
Question 3. If you use VLOOKUP to look for mark certain , what to do become column First in table_array
?
a. Vertical c . Horizontal
b. Diagonal d. Random
Question 7. Suppose you have table with ID column in column A, Name in column B, and Salary in column
C. If want to look for wages based on the ID in column A, the correct VLOOKUP formula is is :
Question 9. What is the minimum amount? columns that must be There is in table For using VLOOKUP?
a. 1 b. 2 c. 3 d. 4
Question 10. If you use HLOOKUP to look for mark in table that has data in range A1, how many mark
row_index_num is what you need to use For take data from line third ?
a. 1 b. 2 c. 3 d. 4