QuadExcel.com

Troubleshoot VLOOKUP() Formula – The Common Mistakes

Excel’s VLOOKUP() function is notorious for returning wrong results, but it’s not the function, it’s the way you’re using it!

Excel’s VLOOKUP() function finds a matching value in a list. It’s one of Excel’s most popular and misunderstood functions. It’s possible to enter the correct formula and still get the wrong result but with just a bit of knowledge, you can avoid VLOOKUP()’s gotchas.

Before we tackle the gotchas though, let’s work through a short tutorial. This function has four arguments:

Related: Excel Formula Errors & How To Deal With Them

If you’re lucky, an incorrect VLOOKUP() formula will return an error value because you’ll know right away that’s something’s wrong. The #N/A error can be the result of several things, some less obvious than others:

The #REF! error usually means you’ve referenced an offset column that’s not in lookuptable.

I said earlier that you’re lucky when you get an error, because you know something’s wrong. Sometimes this function returns unexpected results and you don’t realize there’s a problem. Usually, these errors can be resolved by applying the match argument correctly and sortinglookuptable accordingly. Remember, the default, TRUE means you must sort the data first. This simple step, applied incorrectly, is probably responsible for most errors (not error values, but returning erroneous data). Here’s a guideline that should help. If lookuptable isn’t sorted, use FALSE. If you must use TRUE, be sure to sort lookuptable by the lookup column. Keep in mind that FALSE forces VLOOKUP() to check the entire column, so the larger the table, the slower it will perform – but most likely, you won’t notice it.

Troubleshoot VLOOKUP() Formula – The Common Mistakes

One final word of caution: when copying a VLOOKUP() formula, be sure to state lookuptable as an absolute reference or a named range. If you fail to do so, Excel will update the table reference as it would any relative address, and the copied formulas will return errors.

Also read
Why INDEX-MATCH Is Far Better Than VLOOKUP or HLOOKUP in Excel
How to Decide Which Excel Lookup Formula to Use

Exit mobile version