Index Match Help

M

MrSales

I'm having a real difficult time with this andi 'm sure it's no proble
for you experts.

I'm trying to find a match in columns A,B,C,D,E, or F and have th
function return what's in column A in each instance. But the matc
could be in any of the columns every time I enter a new number.

Here is my formula.

=INDEX($A$14:$A$50000,MATCH(B4,$B$14:$F$50000,0))

A B C
D

B4 Formula
MS21083D9 AN364D918 AN364D918A MS20364D918
MS21083N02 F22NTM-256 F22NTM-02
MS21083N04 F22NTM-440 F22NTM-40
MS20364-440A MS20364-440 AN364-440A AN364-440

Thank Yo
 
P

Peo Sjoblom

Here is one that will work

=INDEX($A$14:$A$50000,MAX((B$14:$F$50000=B4)*(ROW(B$14:$F$50000)))-ROWS($A$1:$A$14)+1)

entered with ctrl + shift & enter

Having said that, are you really using a range that is this large
(A14:F50000)? If so
I would not use that formula since an array formula has a tendency to be
very slow
if used on a large area.
 
M

MrSales

The formula you suggested is returning me an answer from column A but 1
lines below the answer from the same line that I originally wanted
Maybe I did not convey exactly what I need properly. I want th
information in column A when I find the match in column A,B,C,D,E o
F.

Thanks for the help..
 
P

Peo Sjoblom

You have to adapt it and offset the rows from row 1 compared to where the
data start, if you don't offset it you need to let the index part start in
the first row, i.e.

=INDEX($A$1:$A$50000,MAX((B$14:$F$50000=B4)*(ROW(B$14:$F$50000))))

and enter with ctrl + shift & enter
 
Top