lookup

paldersley

New Member
Joined
Sep 13, 2006
Messages
1
simple lookups are limited to either rows or columns, i want to find a particular value which may be anywhere within a defined range

i have tried offset and match, but i always need to know where the target is for these to work

eg where is 3

a b c e
1 0 0 0 0
2 1 0 3 1
3 0 1 2 0
4 5 0 0 0

i need formula to give me C2 which i can then use in a GO TO command, or anything that does the same thing
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"

fairwinds

MrExcel MVP
Joined
May 15, 2003
Messages
8,638
Hi,

Try:

=INDEX(B1:E1,MATCH(G3,INDEX(B2:E5,MIN(IF(B2:E5=G3,ROW(B2:E5)-ROW(B1))),0),0))&INDEX(A2:A5,MIN(IF(B2:E5=G3,ROW(B2:E5)-ROW(B1))))

confirmed with Ctrl + Shift + Enter.
Book1
ABCDEFGH
1abce
210000
3210313c2
430120
545000
6
Sheet3
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,167,834
Messages
5,855,893
Members
431,772
Latest member
dannyboi1

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
Top