Finding Colum Name

projectgregory

New Member
Joined
Dec 1, 2023
Messages
3
Office Version
  1. 2021
Platform
  1. Windows
Hi, I have been stumped and no matter how much searching I cant seem to find a answer.
I have a table and I want to find the column name i.e. A, B, C, D. I will start off with entering a value into D10 which is within a size range of 3 to 6 i.e. row 5 then I want to find the value in row 5 that matches the value in F10 and return the column value that number is in to cell H10.
excel1.jpg

I have managed to find the row using a sumproduct but I can't figure out how to only search that row for the size2.

Thankyou.
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Hi & welcome to MrExcel.
How about
Excel Formula:
=XLOOKUP(F10,XLOOKUP(D10,B4:B6,D4:G6,"",1),D3:G3,"")
 
Upvote 0
Hi & welcome to MrExcel.
How about
Excel Formula:
=XLOOKUP(F10,XLOOKUP(D10,B4:B6,D4:G6,"",1),D3:G3,"")
Thankyou, but do you know of a way of doing this on older versions of Excel without xlookup.
 
Upvote 0
Excel Formula:
=INDEX($D$3:$G$6,1,XMATCH($F$10,CHOOSEROWS($D$3:$G$6,XMATCH($D$10,$B$3:$B$6,-1))))
 
Upvote 0
How about
Excel Formula:
=INDEX(D3:G3,MATCH(F10,INDEX(D4:G6,MATCH(D10,B4:B6,1),),0))
 
Upvote 0
Solution

Forum statistics

Threads
1,215,076
Messages
6,122,984
Members
449,092
Latest member
Mr Hughes

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