Macro to compare values and return exact matching value

L

lloyd

I am trying to find a macro to compare a value in column 1 to a range
of values in column 2 and return the column 2 value to column 3 if
there is an exact match. I also do not want to return the column 2
value to column three more times than the value exists in column 2.

The application would be similar to MATCH except that I want the value
in the array in column 2, not it's relative position.

Any help would be appreciated.
 
T

Tom Ogilvy

=if(isnumber(Match(A1,$B$200,0)),index($B$1:$B$200,Match(A1,$B$200,0),1),"")

Drag fill the formula down column C.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top