How to vlookup matching values from right to left in Excel?
The VLOOKUP function in Excel is widely used for searching and retrieving data. However, one of its limitations is that it can only look up values from left to right. This means the lookup value must be in the first column of the table, and the return value must be to the right of the lookup column. But what if you need to look up values from right to left? This guide will explore several methods to achieve this.

Vlookup matching matching values from right to left
Vlookup values from right to left with VLOOKUP and IF functions
While VLOOKUP alone cannot look up values from right to left, you can manipulate your data structure using the IF function to make it work.
Please enter the below formula into your needed cell, and then, drag the fill handle to the cells you want to apply this formula to get all the corresponding. See screenshot:
=VLOOKUP(E2, IF({1,0}, $C$2:$C$9, $A$2:$A$9), 2, 0)
- E2: This is the value you are looking for. It's the key that Excel will search for in the specified range.
- IF({1,0}, $C$2:$C$9, $A$2:$A$9): This part of the formula creates a virtual table by rearranging the columns. Normally, VLOOKUP can only search the first column of a table and return a value from a column to the right. By using IF({1,0}, ...), you are telling Excel to create a new table where the columns are swapped:
♦ The first column of the new table is $C$2:$C$9.
♦ The second column of the new table is $A$2:$A$9. - 2: This tells VLOOKUP to return the value from the second column of the virtual table created by the IF function. In this case, it will return a value from $A$2:$A$9.
- 0: This specifies that you want an exact match. If Excel doesn't find an exact match for E2 in $C$2:$C$9, it will return an error.
Vlookup values from right to left with Kutools for Excel
If you prefer a more user-friendly approach, Kutools for Excel offers advanced features that simplify complex lookups, including the ability to search from right to left effortlessly.
After installing Kutools for Excel, please do as this:
1. Click "Kutools" > "Super Lookup" > "LOOKUP from Right to Left", see screenshot:
2. In the "LOOKUP from Right to Left" dialog box, please do the following operations:
- Select the lookup value cells and output cells from the "Output Range" and "Lookup values" sections;
- Then, specify the corresponding items from the "Data range" section.
- Finally, click OK button.
3. Now, the matching records have been returned based on the lookup values from the right list, see screenshot:
If you want to replace the #N/A error value with another text value, you just need to click "Options" button and check "Replace #N/A error value with a specified value" option, then type the text you need.
Vlookup values from right to left with INDEX and MATCH functions
The combination of INDEX and MATCH is a versatile and powerful alternative to VLOOKUP. It allows you to look up values in any direction (left, right, up, or down).
Enter or copy the below formula into a blank cell to output the result, then drag the fill handle down to your cells that you want to contain this formula.
=INDEX($A$2:$A$9,MATCH(E2,$C$2:$C$9,0))
- E2: This is the value you are looking for.
- MATCH(E2, $C$2:$C$9, 0): The MATCH function searches for the value in E2 within the range $C$2:$C$9. The 0 indicates that you want an exact match. If it finds the value, it returns the relative position of that value within the range.
- INDEX($A$2:$A$9, ...): The INDEX function then uses the position returned by MATCH to find the corresponding value in the range $A$2:$A$9.
Vlookup values from right to left with XLOOKUP function
If you’re using Excel 365 or Excel 2021, the XLOOKUP function is a modern and simplified alternative to VLOOKUP. It can look up values in any direction without the need for complex formulas.
Enter or copy the below formula into a blank cell to output the result, then drag the fill handle down to your cells that you want to contain this formula.
=XLOOKUP(E2,$C$2:$C$9,$A$2:$A$9)
- E2: This is the value you are looking for.
- $C$2:$C$9: This is the range where Excel will search for the value in E2. It's the lookup array.
- $A$2:$A$9: This is the range from which Excel will return the corresponding value. It's the return array.
Although VLOOKUP is a great tool for basic lookups, it is limited by its ability to only search to the right of the lookup column. However, there are several other methods you can use to return matching values from right to left in Excel. By leveraging these methods, you can easily and efficiently look up and return matching values, no matter where your data is located in your worksheet. If you're interested in exploring more Excel tips and tricks, our website offers thousands of tutorials.
More relative articles:
- Vlookup Values Across Multiple Worksheets
- In excel, we can easily apply the vlookup function to return the matching values in a single table of a worksheet. But, have you ever considered that how to vlookup value across multiple worksheet? Supposing I have the following three worksheets with range of data, and now, I want to get part of the corresponding values based on the criteria from these three worksheets.
- Use Vlookup Exact And Approximate Match In Excel
- In Excel, vlookup is one of the most important functions for us to search a value in the left-most column of the table and return the value in the same row of the range. But, do you apply the vlookup function successfully in Excel? This article, I will talk about how to use the vlookup function in Excel.
- Vlookup Matching Value From Bottom To Top In Excel
- Normally, the Vlookup function can help you to find the data from top to bottom to get the first matching value from the list. But, sometimes, you need to vlookup from bottom to top to extract the last corresponding value. Do you have any good ideas to deal with this task in Excel?
- Vlookup And Return Whole / Entire Row Of A Matched Value In Excel
- Normally, you can vlookup and return a matching value from a range of data by using the Vlookup function, but, have you ever tried to find and return the whole row of data based on specific criteria as following screenshot shown.
- Vlookup And Concatenate Multiple Corresponding Values In Excel
- As we all known, the Vlookup function in Excel can help us to lookup a value and return the corresponding data in another column, but in general, it can only get the first relative value if there are multiple matching data. In this article, I will talk about how to vlookup and concatenate multiple corresponding values in only one cell or a vertical list.
Best Office Productivity Tools
Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time. Click Here to Get The Feature You Need The Most...
Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier
- Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
- Open and create multiple documents in new tabs of the same window, rather than in new windows.
- Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!