View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Tom Ogilvy Tom Ogilvy is offline
external usenet poster
 
Posts: 6,953
Default USing Match on 2D array

Technique demo'd from the immediate window:

v = Evaluate("{1,""A"";2,""B"";3,""C"";4,""D""}")
? v(1,1)
1
? v(1,2)
A
? Application.Match("C",Application.Index(v,0,2),0)
3
--
Regards,
Tom Ogilvy


"ExcelMonkey" wrote:

Can someone please remind me how to use match on a 2d array ("OrigViewNames")
if i am looking to return the position of a value (x) in the second column of
the array.

This does not work:
Application.Match(x, OrigViewNames, 0)

What do I have to put after the OrigViewNames to indicate column 2.

Thanks

EM