

The VLOOKUP function is a built-in function in Excel that is categorized as a Lookup/Reference Function. Lookup Vaue which is E4 (means which value we are going to find in List 1 ) 2. The VLOOKUP function performs a vertical lookup by searching for a value in the first column of a table and returning the value in the same row in the indexnumber position. Vlookup (Lookup value, Table Array,Columnnumber,RangeCriteria) 1. It is rather obvious that the new Excel 2007 function IFERROR is much easier t0 use and understand than the combination of IF() and ISNA() that we had to use in previous versions of Excel. The formula has divided into the 4 parts.
#HOW TO USE VLOOKUP IN EXCEL 2003 HOW TO#
To illustrate how to work with VLOOKUP when the source data is in a table, Ill set up formulas to the right to extract data from the table, matching on an employee ID. On this worksheet, I have a table that contains employee data, named Table1. =IF(ISNA(VLOOKUP(E5 $B$3:$C$6 2 0)) ”" VLOOKUP(E5 $B$3:$C$6 2 0)) In this video, well look at how to use VLOOKUP to lookup values in an Excel Table. This is an excel 2003 tutorial on how to use the Vlookup Command. This means we have to repeat the VLOOKUP formula: If the logical test is FALSE (meaning the VLOOKUP can find the specified value) the function should return the result of the VLOOKUP function. If the logical test is TRUE (meaning the VLOOKUP leads to the #N/A error) the function should return an empty cell: Now we can nest this part in the IF() function as logical_test:

Let’s see how this works out for cell F5. We can use this function as the logical_test in our IF() function. The ISNA() function returns TRUE if an lookup function returns the error #N/A. However you can do the same in Excel 2003 (or earlier versions) with a combination of IF(logical_test ) and ISNA(value). Unfortunately the function IFERROR() is only available as from Excel 2007. The formula in cell F4 that returns the #N/A error is:Įxcel will return an empty cell if the VLOOKUP part leads to an error. Let’s assume in our example that we want Excel to leave the cell empty if it can’t find a value for account 4300. However if there are errors we can specify the result that Excel should return. When there are no errors, it returns the result of the function. It would be much easier for us to replace the error message of Excel with a message or value of or own.įortunately that is exactly what we can do with the function IFERROR(value value_if_error). The error message looks ugly and if we have to use the results of VLOOKUP in another calculation, this calculation will also evaluate to the error #N/A.

We immediately see that there is something wrong. VLOOKUP (value, table, colindex) // approximate match (default) VLOOKUP (value, table, colindex, TRUE) // approximate match VLOOKUP (value, table, colindex, FALSE) // exact match Tip: always supply a value for rangelookup as a reminder of expected behavior. In the previous post we saw that Excel returns the error#N/A if the VLOOKUP function can’t find the specified value.
