Why is this not working? I tried checking the spaces, making sure the length was the same, etc. Driving me nuts! I just want Alabama! The indicated error is: "Value not available."
The usual solution is to use = MATCH to find the line number in the array:
=MATCH(D1,B:B,0)
will look for the value in D1in column B (the latter 0means exactly) and hopefully returns 2(the second row in the selected array - that is, the entire column B). Then it can be served in:
D1
0
2
=INDEX(A:A,MATCH(D1,B:B,0))
where it becomes the second row of column A, i.e. Alabama
Alabama
= MATCH = INDEX, http://www.excelhero.com/blog/2011/03/the-imposing-index.html
. , . , , AL " ". , excel , , #N/A!.
#N/A!
:
=INDEX($A:$A,MATCH(D1,$B:$B,0),1)
, .
The formula searches for "AL" in the specified first column (column A). He finds only "Alabama", therefore returns an error.
It might be a little easier, even:
=INDEX(A:A,MATCH(D1,B:B))