Excel array formula not working

L

lc

Here's a simplified version:

In first workbook "FIRST", A1:A5=1,2,3,4,5
In second workbook "SECOND", A1:A5= 1,2,3,4,5, B1:B5=A,B,C,D,E

Array formula (located in FIRST) is {=IF(A1='[SECOND.XLS]Sheet
1'!$A$1:$A$5,'[SECOND.XLS]Sheet 1'!$B$1:$B$5)}

Goal: If the value in cell A1 on FIRST matches the value in the range
A1:A5 on SECOND, return the corresponding value in Column B in the
range B1:B5. Repeat for cells A2 through A5 on FIRST.

Problem: The array formula returns the following, only returning one
of the five matches:

FALSE,FALSE,C, FALSE,FALSE

I've verified that each of the values in Column A for FIRST and SECOND
are equal. Why the FALSE non-matches?
 
A

Aladin Akyurek

What is wrong with an ordinary VLOOKUP formula...

=VLOOKUP(A1,'[SECOND.XLS]Sheet 1'!$A$1:$B$5,2,0)
 

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