Find value in multiple rows/columns

sharky12345

Well-known Member
Joined
Aug 5, 2010
Messages
3,422
Office Version
  1. 2016
Platform
  1. Windows
I'm trying to find a way I can identify a value where a column and row meet.

In this example, I am trying to find the value in the column where SHQ on the top row meets BP in the first column, the result I would expect to see is 24. Similarly, if I wanted to look for TT and HA I would expect the result to be 34.

My range currently looks like this (I have ExcelJeanie installed but for some reason it is not working so I've had to manually copy and paste);

[TABLE="width: 512"]
<tbody>[TR]
[TD="class: xl63, width: 64"][/TD]
[TD="class: xl64, width: 64"]HA[/TD]
[TD="class: xl64, width: 64"]TA[/TD]
[TD="class: xl64, width: 64"]BP[/TD]
[TD="class: xl64, width: 64"]SHQ[/TD]
[TD="class: xl64, width: 64"]KWH[/TD]
[TD="class: xl64, width: 64"]TT[/TD]
[TD="class: xl64, width: 64"]SC[/TD]
[/TR]
[TR]
[TD="class: xl64"]SC[/TD]
[TD="class: xl65"]28[/TD]
[TD="class: xl65"]26[/TD]
[TD="class: xl65"]34[/TD]
[TD="class: xl65"]9[/TD]
[TD="class: xl65"]19[/TD]
[TD="class: xl65"]10[/TD]
[TD="class: xl65"]0[/TD]
[/TR]
[TR]
[TD="class: xl64"]TT[/TD]
[TD="class: xl66"]34[/TD]
[TD="class: xl66"]34[/TD]
[TD="class: xl66"]36[/TD]
[TD="class: xl66"]9[/TD]
[TD="class: xl66"]21[/TD]
[TD="class: xl66"]0[/TD]
[TD="class: xl66"]10[/TD]
[/TR]
[TR]
[TD="class: xl64"]KWH[/TD]
[TD="class: xl65"]16[/TD]
[TD="class: xl65"]13[/TD]
[TD="class: xl65"]18[/TD]
[TD="class: xl65"]10[/TD]
[TD="class: xl65"]0[/TD]
[TD="class: xl65"]21[/TD]
[TD="class: xl65"]19[/TD]
[/TR]
[TR]
[TD="class: xl64"]SHQ[/TD]
[TD="class: xl66"]26[/TD]
[TD="class: xl66"]23[/TD]
[TD="class: xl66"]24[/TD]
[TD="class: xl66"]0[/TD]
[TD="class: xl66"]10[/TD]
[TD="class: xl66"]9[/TD]
[TD="class: xl66"]9[/TD]
[/TR]
[TR]
[TD="class: xl64"]BP[/TD]
[TD="class: xl65"]21[/TD]
[TD="class: xl65"]20[/TD]
[TD="class: xl65"]0[/TD]
[TD="class: xl65"]24[/TD]
[TD="class: xl65"]18[/TD]
[TD="class: xl65"]36[/TD]
[TD="class: xl65"]34[/TD]
[/TR]
[TR]
[TD="class: xl64"]TA[/TD]
[TD="class: xl66"]2[/TD]
[TD="class: xl66"]0[/TD]
[TD="class: xl66"]20[/TD]
[TD="class: xl66"]23[/TD]
[TD="class: xl66"]13[/TD]
[TD="class: xl66"]34[/TD]
[TD="class: xl66"]26[/TD]
[/TR]
[TR]
[TD="class: xl64"]HA[/TD]
[TD="class: xl65"]0[/TD]
[TD="class: xl65"]2[/TD]
[TD="class: xl65"]21[/TD]
[TD="class: xl65"]26[/TD]
[TD="class: xl65"]16[/TD]
[TD="class: xl65"]34[/TD]
[TD="class: xl65"]28[/TD]
[/TR]
</tbody>[/TABLE]

I have tried all sorts of VLOOKUP and HLOOKUP without success if someone can give me a pointer?
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Excel Workbook
ABCDEFGHIJ
1HATABPSHQKWHTTSCSHQ
2SC282634919100BP
3TT34343692101024
4KWH1613181002119
5SHQ26232401099
6BP2120024183634
7TA202023133426
8HA022126163428
Index Match
 
Upvote 0
Assuming your data is in A1:H8. =INDEX(B2:H8,MATCH("SHQ",A2:A8,0),MATCH("BP",B1:H1,0))
 
Upvote 0
Guys, thanks so much - this has been driving me crazy all morning but it's now sorted!
 
Upvote 0

Forum statistics

Threads
1,224,824
Messages
6,181,186
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top