There *is* a smarter way to write Excel VLOOKUP formulas for financial analysis.

The title of this post really should have been “are you still using VLOOKUP?”, but I already know the answer to that question.

If you work in financial services, VLOOKUP is probably the most used function (yes, still), second only to IF. Yet I’ve seen some behemoth spreadsheets bogged down with many thousands of VLOOKUP formulas.

The Classic VLOOKUP

This is the classic VLOOKUP we’re so familiar with.

Look up the value in cell B3 in a table called Countries (you are using Excel Tables, aren’t you?) and return what’s in column 3.

Simples.

Works fine until the lookup value isn’t found. The you get the dreaded #N/A error.

Double VLOOKUP

Unfortunately, a common way I’ve seen this resolved is by doubling down on VLOOKUP with an ISNA() function.

That is lookup up a value, if it doesn’t return #NA, look it up again.

Madness.

In small workbooks, this isn’t a big deal, but I’ve seen Excel workbooks grind to a halt with tens-of-thousands of doubled-up VLOOKUP formulas.

IFERROR is ‘better’

A more efficient fix is the IFERROR function.

IFERROR lookups up the value once and gives you the option of assigning an alternative value if an error occurs.

But . . .

Multiple Lookups

IFERROR can still get messy and hide errors with multiple lookups to the same data.

This happens when:

  • You need to adjust the value multiple times (e.g. tax and surcharge)
  • You reference the lookup result in multiple calculations

LET to the Rescue

Try LET().

LET allows you to assign names to calculation results inside a formula.

This improves readability, performance and maintenance, especially if you use the same looked-up value multiple times.

Let has many benefits:

  • It assigns a name (debt in this example) to your result
  • It only calculates the lookup once
  • It makes formulas easier to audit

LET isn’t just for VLOOKUPS, it allows you to create simpler, yet more powerful formulas especially when they reference the same values multiple times.

Over to You

Over to you. Have you tried LET? How did it work out? Leave a comment below.

About the Author

Marcus Syben is the Principal Consultant at de Havilands, a specialist consultancy that helps financial services firms unlock the full potential of Microsoft Excel. A Microsoft Excel MVP with over 25 years of experience building Excel-based solutions for investment banks and asset managers, Marcus's forte is turning complex, manual spreadsheets into streamlined, high-performance business tools.

{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}

Book a session now!

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

>