The Easy Guide To Excel Lookup Functions
This is your guide to mastering Excel Lookup Functions. I’ll be taking you through the fascinating world of LOOKUP, VLOOKUP, HLOOKUP, and XLOOKUP; four functions that might sound intimidating but can become your best friends in managing your business finances. I’ll walk you through each step, using easy-to-understand language and practical examples from real life. There’s no room for jargon here, just clarity and simplicity.
By the end of our journey together, you’ll not only understand what these functions do but also how to use them effectively to solve common problems.
Key Takeaways
- VLOOKUP Function: VLOOKUP stands for Vertical Lookup. It searches for a value in the first column of a table and then returns a value in the same row from a column you specify. Best time to use it? When your data is arranged vertically and you need to find corresponding values.
- HLOOKUP Function: HLOOKUP, or Horizontal Lookup, works the same way as VLOOKUP but searches for data that is organized horizontally. Imagine it as a librarian who only finds books on a specific shelf! Use HLOOKUP when your data is laid out horizontally.
- LOOKUP Function: Like a versatile detective, LOOKUP can handle both directions. It’s your generalist, a handy tool when you’re unsure of your data layout.
- XLOOKUP Function: XLOOKUP, doesn’t care if your data is vertical, horizontal, or upside down (just kidding on the last one!). It’s great when you’ve got a complex dataset and need maximum flexibility.
What are Excel Lookup Functions?
Let’s start by demystifying what Excel Lookup Functions are. In the simplest terms, these functions are like the search engine of your spreadsheet. They help you find specific information in a large data set, just like you would find a needle in a haystack or a favorite book on a crowded bookshelf.
There are several types of Lookup Functions – LOOKUP, VLOOKUP, HLOOKUP, and the latest addition XLOOKUP. But what do these cryptic terms mean? Let’s break it down:
- LOOKUP: This is the granddaddy of all lookup functions. It finds things in a one-row or one-column range. Think of it as a librarian who can only look for books on a single shelf.
- VLOOKUP: The ‘V’ stands for ‘Vertical’. Imagine trying to find the price of a particular item in a grocery list. You’d start at the top and scan downwards, right? That’s exactly what VLOOKUP does. It looks vertically down a column to find a piece of information.
- HLOOKUP: Flip the scenario with VLOOKUP, and you have HLOOKUP. The ‘H’ stands for ‘Horizontal’. It’s like reading a book – you start from left and move right. HLOOKUP does the same thing, but in a spreadsheet.
- XLOOKUP: The new kid on the block, XLOOKUP, doesn’t care about direction. It can look both ways – vertical or horizontal. Consider it as an advanced search engine within your spreadsheet that can find anything, anywhere!
To put it in a real-life context, think of these functions as different types of detectives. LOOKUP is your basic detective who can only search in one direction. VLOOKUP and HLOOKUP are more specialized ones, with VLOOKUP being the detective that always looks down and HLOOKUP being the one that always looks across. XLOOKUP, on the other hand, is your super detective who can search in any direction to find the clues (or data) you need!
Downloadable Excel Template
Download my free Excel template to help with building the four Excel lookup functions:
Getting Started With LOOKUP
The Microsoft Excel LOOKUP function is like that friend who always knows where to find your lost keys. The LOOKUP function searches a single row or one column and finds a match. It’s the simplest form of lookup and a great starting point for us.
There are two forms of the lookup function, the array form and the vector form. The array form searches for a value in one row or one column, while the vector form searches for a value in multiple rows or columns.
Here’s how you use it:
- Step One: Open your Excel spreadsheet and click on the cell where you want the result to appear.
- Step Two: Type =LOOKUP( and Excel will prompt you for two things: lookup value and lookup vector.
- Step Three: The ‘lookup value’ is like telling your friend what you’ve lost. In Excel terms, it’s the specific value you’re looking for in your data.
- Step Four: The ‘lookup vector’ is like telling your friend where to start searching. In Excel, it’s the row or column where Excel should look for the value.
- Step Five: Close off your formula with a ) and hit enter. Voila! You’ve just used the LOOKUP function.

Example Of Using The LOOKUP Function
Now, imagine you’re a bookstore owner, and you have a list of books with their corresponding prices. A customer walks in asking for the price of “War and Peace.” Instead of manually scanning through your long list, you can simply use the LOOKUP function to find the price in seconds. Pretty handy, right?

But remember, the LOOKUP function is like a one-way street. It can only search in one direction – either vertically or horizontally. So, if your data is spread out in both rows and columns, our other detectives, VLOOKUP, HLOOKUP, and XLOOKUP, might be better suited for the job.
The Magic Of The VLOOKUP Function
VLOOKUP is your go-to function when you want to find specific information in a vertically arranged data set.
Here’s a step-by-step guide to get you started with VLOOKUP:
- Step One: Click on the cell where you want the result to appear. Get ready to conjure some VLOOKUP magic!
- Step Two: Type =VLOOKUP( and Excel will ask you for four things: lookup value, table array, column index number, and range lookup.
- Step Three: The specified value is what you’re searching for, like the title of that elusive email.
- Step Four: The ‘table array’ is where you’re searching. Think of it as your email inbox.
- Step Five: The ‘column index number’ is the column in the table array where your answer lives. If your inbox was sorted by date, subject, sender, and content, and you were looking for the sender, your column index number would be 3. Excel will look down this column for a corresponding value in the same position as the specified value.
- Step Six: The ‘range lookup’ is optional and defines how precise your search should be. Stick with logical value FALSE for an exact match and TRUE for an approximate one.
- Step Seven: Close off your formula with a ) and hit enter. And there you have it – your first VLOOKUP function!

Example Of Using The V LOOKUP Function
Now, let’s say you’re a coffee shop owner with a spreadsheet of products and their corresponding sales. You want to know how many cappucinos you sold to see if you need another machine. Instead of manually scanning through your list, you can use VLOOKUP to find the sales instantly!

Remember, the key to using VLOOKUP effectively is understanding your data layout. If your data is organized vertically, VLOOKUP will be your best friend. But if it’s horizontal, HLOOKUP might be the better choice.
HLOOKUP Function: The Less-Known Cousin
Let’s get acquainted with VLOOKUP’s less-known but equally awesome cousin, HLOOKUP. The ‘H’ in HLOOKUP stands for ‘Horizontal’, and it’s perfect for when your data is spread out across rows instead of columns. Think of it as the Sherlock Holmes of spreadsheets when the crime scene is a bit… shall we say, horizontal?
Let’s dive right into how to use this horizontal hero:
- Step One: Click on the cell where you want the answer to appear. It’s about to get some HLOOKUP love!
- Step Two: Start typing =HLOOKUP( and Excel will ask for the same four things as VLOOKUP: lookup value, table array, row index number, and range lookup.
- Step Three: The ‘lookup value’ is your mystery to be solved – the clue you’re searching for.
- Step Four: The ‘table array’ is your crime scene, the area where your clue is hidden.
- Step Five: The ‘row index number’ is the row in which your answer lies. If you’re looking for a suspect’s height and your data is arranged as name, age, height, and occupation, your row index number would be 3. Excel will look across this row for a value in the same position as the specified value.
- Step Six: Finally, the ‘range lookup’ defines whether you need an exact or approximate match. Stick with logical value FALSE for an exact match and TRUE for an approximate one.
- Step Seven: Close off your formula with a ) and hit enter. Congratulations! You’ve just cracked your first case with HLOOKUP!

Now, let’s compare our two detectives – VLOOKUP and HLOOKUP. Both are excellent at what they do, but their methods are different. If your data is listed vertically, VLOOKUP is your go-to detective. But if your data is spread horizontally, it’s time to call in HLOOKUP.
Example Of Using The H LOOKUP Function
Back to the previous example. Now, let’s say you’re a coffee shop owner with a spreadsheet of products and their corresponding sales but this time its by day. You want to know how many cappucinos you sold on Wednesday specifically to see if you need another machine. You can use HLOOKUP to look across the days and find the answer!

Remember, the key to choosing between VLOOKUP and HLOOKUP is understanding how your data is arranged. Once you’ve got that down, you’re well on your way to becoming an Excel wizard!
XLOOKUP Function: The New Kid On The Block
Like a multi-talented prodigy, XLOOKUP can do both vertical and horizontal lookup. Think of it as a combination of VLOOKUP and HLOOKUP, but with an added dose of versatility and flexibility. It’s like your Swiss Army knife in the world of Excel functions.
Here’s how you can master this multi-talented function:
- Step One: Click on the cell where you want your answer to appear. Brace yourself, XLOOKUP magic is about to happen!
- Step Two: Start typing =XLOOKUP( and Excel will ask for three main things: lookup value, lookup array, and return array.
- Step Three: The ‘lookup value’ is what you’re searching for, like your lost keys.
- Step Four: The ‘lookup array’ is where you’re searching. Consider it as your house where the keys are lost.
- Step Five: The ‘return array’ is the set of values from which to pull your answer. Excel will look across this row or column for a corresponding value in the same position as the specified value.
- Step Six: Close off your formula with a ) and hit enter. Voila! You’ve just performed your first XLOOKUP!
Now, why is XLOOKUP an improvement from VLOOKUP and HLOOKUP? Well, it’s all about flexibility. With XLOOKUP, you don’t need to worry about whether your data is laid out vertically or horizontally. Plus, it eliminates the need for ‘column or row index number’, making it simpler and less error-prone.
Example Of Using The X LOOKUP Function
Let’s say you’re a project manager with data on employees, their skill sets, and their projects arranged in no particular order. If you want to find out who’s working on what project and their corresponding skills, XLOOKUP can do that for you without breaking a sweat!
Remember, every Excel function has its strengths and the key is to pick the right tool for the job. But with XLOOKUP in your toolbox, you’re well-equipped to tackle any Excel challenge that comes your way.
Errors & Troubleshooting
Let’s tackle some common errors you might encounter while using a Lookup function and how to troubleshoot them.
- #N/A Error: This is Excel’s way of telling you it can’t find the value you’re looking for. It’s like sending Sherlock Holmes to find a ghost! Make sure your specified value exists in the lookup array. If it does and you’re still getting this error, check for extra spaces or non-printing characters.
- #REF! Error: This happens when your table array or return array doesn’t match the column or row index number you’ve given. It’s like asking for a book from a shelf that doesn’t exist! Check your formula to ensure your ranges are correct.
- #VALUE! Error: This means there’s a problem with the type of argument you’ve entered. It’s like trying to fit a square peg in a round hole! Make sure that your specified value matches the data type in your lookup array.
