Reverse HLOOKUP - Stumped...How do I do it??

HeyMike

New Member
Joined
Mar 1, 2012
Messages
22
Hi,

This is my first post after months of being an observer on this site. For some reason I can't solve this....
<BR>
<img src="http://www.freeimagehosting.net/newuploads/u6msu.jpg"></img>
<BR>

I am trying to type in an amount into cell C8 then have cell C10 display the company name from the table above.
<BR>
How do I do this? I tried an index and match and that didn't work because the match needs a specific row and the row is always changing depending on what is typed into C8. I tried inserting an OFFSET function into the "Lookup Array" of the MATCH, but that had issues when I expanded the above example to use it for my application.
<BR>
Any help would be greatly appreciated. Thanks!
<BR>
- Mike
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Hi...

Try this...

=LOOKUP(C8,C2:E5,C2:E2)

Oops... never mind.... this is not you expected
 
Last edited:
Upvote 0
Code:
=IF(OR(Company_A=$C$8),"Company A",IF(OR(Company_B=$C$8),"Company B",IF(OR(Company_C=$C$8),"Company C","No Match found!")))

First select the entore table including the Product column and the header row. Press CTRL+SHIFT+F3 and select the Top Row option.

Basically we just created Named ranges for the Company columns as Company_A, Company_B and Company_C.

This is an array formula so please remember to press CTRL + SHIFT + ENTER.
 
Upvote 0
Try

=IF(COUNTIF($C$3:$E$5,C8),INDEX($C$2:$E$2,MIN(IF($C$3:$E$5=C8,COLUMN($C$3:$E$5)-COLUMN($C$3:$C$5)+1))),"No Match")

Array confirmed with Shift Ctrl Enter.

Multiple matches for C8 will return the leftmost result.
 
Upvote 0
Also:

Code:
=IF(ISNUMBER(MATCH(C8,C3:C5,0)),C2,IF(ISNUMBER(MATCH(C8,D3:D5,0)),D2,IF(ISNUMBER(MATCH(C8,E3:E5,0)),E2,"No Match")))
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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