"KeriM" <(E-Mail Removed)> wrote:
> I'm having trouble with a Match array function. They work
> when I separate them into their own match function, but not
> when I try to do an array. I'm trying to lookup two values
> in different columns and return the corresponding row number.
[....]
> {MATCH(1,(('[OtherWB]Sheet1'!$B:$B=A3&"*")
> * ('[OtherWB]Sheet1'!$C:$C="*"&RIGHT($A$4,3)&"*")),0)}
It might help if you posted what you believe __does__ work. Also include
some details about the contents of all the cells referenced.
It would also help if you explained what you mean "does not work". Do you
get an Excel error (which)? Does it return an incorrect number? [1]
I suspect this never does what you intend, even in part, if you are thinking
that the appended "*" will be interpreted as wildcard characters.
But if the character "*" is actually in B:B and C:C (!), one question is:
is OtherWB currently open in the same Excel instance?
Otherwise, I see no reason why the array-entered formula above (as indicated
by the curly braces)would fail as long there is a row in [OtherWB]Sheet1
that contains both literally "abc*" in column B and literally "*xyz*" in
column C, assuming that A3 contains "abc" and A4 contains "...xyz", where
"..." is one or more characters.
As an aside, it is "bad practice" to use ranges like B:B and C:C in this
context.
Arguably, it might not be so bad in Excel 2003 or earlier. But in Excel
2007 and later, they cause Excel to create 2 arrays of 1+ million entries,
to perform 1+ million arithmetic operations (multiply), and finally to
process 1+ million cells when no match is found.
------
[1] In addition to describing the problem better as suggested above, it
would be best if you uploaded an example Excel file (devoid of any private
data) that demonstrates the problem to a file-sharing website and posted the
"shared", "public" or "view-only" link (aka URL;
http://...) in a response
here. The following is a list of some free file-sharing websites; or use
your own.
Box.Net:
http://www.box.net/files
Windows Live Skydrive:
http://skydrive.live.com
MediaFire:
http://www.mediafire.com
FileFactory:
http://www.filefactory.com
FileSavr:
http://www.filesavr.com
RapidShare:
http://www.rapidshare.com