How to use two-way lookup formula in Excel?
A two-way lookup is used to find a value at the intersection of specified row and column headers. For example, if you have a table with multiple rows and column headers, a two-way lookup can find the value at the intersection of a specified row (e.g., "AA-3") and column (e.g., "5-Jan"), as shown in the screenshot below. This article will tell you how to use this two-way lookup formula in Excel.
Two-way lookup with formulas
To perform a two-way lookup for the intersection of a specified row and column, follow these steps:
1. List the column and row headers you want to look up at, see screenshot:
2. In the cell you want to place the lookup value, select one formula from below:
=INDEX(A1:I8,MATCH(L1,A1:A8,0),MATCH(L2,A1:I1,0))
=SUMPRODUCT((A1:A8=L1)*(A1:I1=L2),A1:I8)
=VLOOKUP(L1,$A$1:$I$8,MATCH(L2,B1:I1,0)+1,FALSE)
Tips:
(1) A1:A8 is the column range, L1 is the row header you want to look up in the column range, A1:I1 is the row range, L2 is the column header you want to find in the row range, A1:I8 is the whole range of the data, you can change as you need)
(2) The formula =SUMPRODUCT((A1:A8=L1)*(A1:I1=L2),A1:I8) will return 0 if the lookup value is text.
3. Press Enter key to display the value at the intersection of the specified row and column.
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!