Posted October 18, 2023
Guest Author: James Ambros
In today’s article we’ll go over one of the first functions users learn during their spreadsheets journey! =VLOOKUP(), which stands for "Vertical Lookup," is used to search for a value in the leftmost column of a table or range and return a corresponding value from a specified column to the right. =VLOOKUP() is best used in instances where there are a limited number of columns in a spreadsheet.
In Figure 1, the user is trying to pull Matt’s sales figures for February. As such, the appropriate syntax for the =VLOOKUP() can be seen here:
Another example of a lookup function new spreadsheet users might find useful is =XLOOKUP()! The great thing about a =XLOOKUP() is that it is not limited to searching values in the leftmost column like in the =VLOOKUP(). In Figure 2, the user is still trying to pull Matt’s sales figures for February, but we are unable to use a =VLOOKUP() because the search value is not in the leftmost column. As such, we can use an =XLOOKUP(), of which the syntax can be seen here:
The primary limitation with =VLOOKUP() & XLOOKUP() comes in the col_index_num and return_array fields, respectively. In Figure 1, we are able to easily count that February data is in the third column of the table. And in Figure 2, we are able to identify as part of the formula which column we want to return. But what happens if our data has too many columns to count manually? That's where =INDEX(MATCH(),MATCH()) comes in!
=INDEX(MATCH(),MATCH()) is a more versatile formula that uses two separate functions, =INDEX() and =MATCH(), to look up and retrieve data. In Figure 3, the user is trying to pull James’s sales figures for March. As such, the appropriate syntax for the =INDEX(MATCH(),MATCH()) can be seen here:
While =VLOOKUP() and =XLOOKUP() are fantastic tools for basic data retrieval tasks, =INDEX(MATCH(),MATCH()) provides more flexibility and power, making it the preferred choice for more complicated lookups and larger data sets. Ultimately, the choice between =VLOOKUP() and =INDEX(MATCH(),MATCH()) depends on the specific requirements of the user. Understanding when to use each function will help you work more efficiently and accurately with your spreadsheet data.
Not sure what service is right for you? Reach out to Excelerate Consulting for expert insights and solutions tailored to enhance your business operations and financial efficiency. Let's explore opportunities for growth together.