I have the following VLOOKUP on a worksheet:
=VLOOKUP(D5,FilePurposes,2)&" in respect of "&C5
Where the named range FilePurposes refers to a block of two columns and three rows that look like this:
A B
------------------------------------
4 x Creates output for x
5 y Calculates something for y
6 z Refreshes z
When D5 = x I get "Calculate something for y", however. The required output is "Creates output for x". The VLOOKUPS on y and z are working as required.
When I change the VLOOKUP to
=VLOOKUP(D5,Sheet1!A4:B7,2)&" in respect of "&C5
(ie extending the range) then the VLOOKUP works as intended. However I want to use a named range whose defined range can be changed by the user to include valid lookup values as the workbook grows.
When I go to name manager, the defined range for FilePurposes is =Sheet1!$A$4:$B$6
, so nothing immediately appears to be wrong.
Is there something about VLOOKUPS and named ranges that I'm missing here which causes this problem?
I am using Excel 2010 on a Windows Vista PC.
FALSE