• IMPORTANT NOTICE: The Excelguru Help Forums will be permanently shut down on Friday, June 26, 2026.

    With AI taking a more prevalent role in answering user questions, the traffic to the Excelguru Help Forums has seen a sharp decrease in traffic over the past couple of years. We do not see this trend changing anytime in the near future. As such, continuing to run the forums is just no longer feasible, so we have made the difficult decision to close them down at the end of the month.

    We appreciate everyone who joined our forums to ask and answer questions over the past decade – and in particular – want to say a huge THANK YOU to the moderators and administrators who volunteered their time and expertise on a daily basis. You made the community what it was.

    NOTE: NEW USER ACCOUNTS CAN NO LONGER BE CREATED.

X lookup formula

Aman1510

New member
Joined
Jan 29, 2026
Messages
2
Reaction score
0
Points
1
Excel Version(s)
Office Professional Plus 2021
Hi,
I am looking to create an Excel formula that picks a watts value from the table above based on the following inputs:
1) Length
2) Height
3) Type (I have created a drop-down list to choose the type).

Is this possible in Excel? I would appreciate any help.

Attached Table-1.xlsx sheet.

Thank you,

Aman
 

Attachments

  • Table-1.xlsx
    15.8 KB · Views: 7
In the attached I have created a parameter query in Power Query.

Power Query is a free AddIn for Excel 2010 and 2013, and is built-in functionality from Excel 2016 onwards (where it is referred to as "Get & Transform Data").

It is a powerful yet simple way of getting, changing and using data from a broad variety of sources, creating steps which may be easily repeated and refreshed. I strongly recommend learning how to use Power Query - it's among the most powerful functionalities of Excel.

- Follow this link to learn how to install Power Query in Excel 2010 / 2013.

- Follow this link for an introduction to Power Query functionality.

- Follow this link for a video which demonstrates how to use Power Query code provided.
 

Attachments

  • Table-1.xlsx
    29 KB · Views: 4
Try in cell G26:
Code:
=INDEX(OFFSET($B$7,,MATCH(D26,$C$4:$T$4,0),15,6),MATCH(C26,$B$7:$B$21,0),MATCH(E26,$C$5:$H$5,0))
 
Thank you very much. Working perfectly.
Try in cell G26:
Code:
=INDEX(OFFSET($B$7,,MATCH(D26,$C$4:$T$4,0),15,6),MATCH(C26,$B$7:$B$21,0),MATCH(E26,$C$5:$H$5,0))
 
Another option:
=INDEX($C$7:$T$21,MATCH(C26,$B$7:$B$21,0),MATCH(D26,$C$4:$T$4,0)+MATCH(E26,$C$5:$H$5,0)-1)
 
Back
Top