The last (optional) argument to your VLOOKUP()
function was omitted, set to 1, TRUE. As stated
in the Help topic for VLOOKUP, "If TRUE or omitted,
an approximate match is returned. In other words,
if an exact match is not found, the next largest
value that is less than lookup_value is returned."
Hi Amroo
VLOOKUP takes another agument "Range_Lookup" if this is set to False it looks for an exact match. If set to True (or omitted) it will return the closest match.
So in your case if Set to True (or ommitted) it will use "D" on sheet 2 for it's return value with "R" and "E" ( as they are the closest match)
If you set it to False it wont find "R" or "E" as there is no exact match, so it returns "#N/A" (not available)
Dave
OzGrid Business Applications
Hi Amroo
VLOOKUP takes another agument "Range_Lookup" if this is set to False it looks for an exact match. If set to True (or omitted) it will return the closest match.
So in your case if Set to True (or ommitted) it will use "D" on sheet 2 for it's return value with "R" and "E" ( as they are the closest match)
If you set it to False it wont find "R" or "E" as there is no exact match, so it returns "#N/A" (not available)
Dave
OzGrid Business Applications