Finding a value in a multiple column array and returning column header - Excel 2003

NairbNam

New Member
Joined
Dec 7, 2012
Messages
6
Hi guys first post here.

I am attempting to lookup a cell value in a 3 column by 20 row array. Depending on which column the value is found, I would like to return that column's header value.

I think I am making this overly complicated for myself. Basically I need a statement that will perform an Hlookup on three columns but I'm not sure exactly how to do this.

Any help would be appreciated.

Thanks!
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Hello, how would the formula read if I wanted to return the value to column to the left of the found value rather than the column header (ie the solution in F2 would 48). Also should clarify that I'd be looking for text values rather than numeric. Thanks in advance!
 
Upvote 0
Hello, how would the formula read if I wanted to return the value to column to the left of the found value rather than the column header (ie the solution in F2 would 48). Also should clarify that I'd be looking for text values rather than numeric. Thanks in advance!

Try to post a sample sample along with the desired output.
 
Upvote 0
Sorry, I was referring to this sample posted previously. I would want F2 to search for H in columns A through C and a return "D", the value immediately to the left.
Thanks!

ABCDEF
1Header1Header2Header3_LookupSOLUTION
2AEI_HD
3BFJ___
4CGK___
5DHL___

<TBODY>
</TBODY>
 
Upvote 0
Sorry, I was referring to this sample posted previously. I would want F2 to search for H in columns A through C and a return "D", the value immediately to the left.
Thanks!

ABCDEF
1Header1Header2Header3_LookupSOLUTION
2AEI_HD
3BFJ___
4CGK___
5DHL___

<tbody>
</tbody>

In F2 control+shift+enter, not just enter:
Rich (BB code):

=IFERROR(INDEX($A$2:$C$5,MIN(IF(A2:C5=E2,ROW(A2:C5)-ROW(A2)+1)),
    1/(1/MAX(IF(A2:C5=E2,COLUMN(A1:C1)-COLUMN(A1)+1)-1))),"")
 
Upvote 0
Could I use this formula to search multiple sheets? and how?
{=INDEX(A1:C1,MAX(IF(A2:C5=E2,COLUMN(A2:C5)-COLUMN(A1)+1)))}
 
Upvote 0

Forum statistics

Threads
1,215,256
Messages
6,123,915
Members
449,132
Latest member
Rosie14

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