You need to first read: LOOKUP FUNCTION AND REFERENCING DATA IN OTHER WORKSHEETS OF AN EXCEL WORKBOOK. Also see the full tutorial course content of this Microsoft Excel Tutorial Series.
The function takes four arguments:
2. table_array (required): This is the range of cells that contains the data. You can use a reference to a range (for example, A2:D8), or a range name. The values in the first column of table_array are the values searched by lookup_value. These values can be text, numbers, or logical values. Uppercase and lowercase text are equivalent.
3. col_index_num (required): This is the column number in the table_array argument from which the matching value must be returned. A col_index_num argument of 1 returns the value in the first column in table_array; a col_index_num of 2 returns the value in the second column in table_array, and so on.
If the col_index_num argument is:
• Less than 1, VLOOKUP returns the #VALUE! error value.
• Greater than the number of columns in table_array, VLOOKUP returns the #REF! error value.
4. range_lookup (optional): This is the fourth argument and it is optional. A logical value that specifies whether you want VLOOKUP to find an exact match or an approximate match:
• If range_lookup is either TRUE or is omitted, an exact or approximate match is returned. If an exact match is not found, the next largest value that is less than lookup_value is returned.
• If range_lookup is either TRUE or is omitted, the values in the first column of table_array must be placed in ascending sort order; otherwise, VLOOKUP might not return the correct value.
• If range_lookup is FALSE, the values in the first column of table_array do not need to be sorted.
• If the range_lookup argument is FALSE, VLOOKUP will find only an exact match. If there are two or more values in the first column of table_array that match the lookup_value, the first value found is used. If an exact match is not found, the error value #N/A is returned.
NOTES:
• When searching text values in the first column of table_array, ensure that the data in the first column of table_array does not contain leading spaces, trailing spaces, inconsistent use of straight ( ' or " ) and curly ( ‘ or “) quotation marks, or non printing characters. In these cases, VLOOKUP might return an incorrect or unexpected value.• When searching number or date values, ensure that the data in the first column of table_array is not stored as text values. In this case, VLOOKUP might return an incorrect or unexpected value.
• If range_lookup is FALSE and lookup_value is text, you can use the wildcard characters — the question mark (?) and asterisk (*) — in lookup_value. A question mark matches any single character; an asterisk matches any sequence of characters. If you want to find an actual question mark or asterisk, type a tilde (~) preceding the character.
ILUSTRATION: PERFORMING CALCULATIONS USING VLOOKUP FUNCTION
DESIGNING A PAYROLL SYSTEM USING VLOOKUP FUNCTION
QUESTION:
![]() |
Payroll System Using VLOOKUP function
|
SOLUTION TO THE ABOVE PAYROLL SYSTEM EXERCISE
![]() |
Layout of Payroll system using VLOOKUP function
|
No comments:
Post a Comment
WHAT'S ON YOUR MIND?
WE LOVE TO HEAR FROM YOU!