ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Lookup returning incorrect result (https://www.excelbanter.com/excel-worksheet-functions/145633-lookup-returning-incorrect-result.html)

btrotter

Lookup returning incorrect result
 
When using the €śLook-up€ť formula for €śLookup value, lookup vector, result
vector option€ť, if an item description (lookup value) on my current file is
not found in my item chart file (2nd file), the incorrect item category (in
the 2nd file) result may be returned instead of a €śN/A€ť (or error, etc). I
would rather that the result be an error of some sort than the wrong value.
Am I doing something wrong, or is that the way the function is supposed to
work?


Note: The Item Chart is sorted by Item Description, alpha ascending. (When
it wasnt sorted, the item category pertaining to the last item on the list
was being returned. Right now, I think it is returning a result for the item
near where the missing tem should be on the list.


Niek Otten

Lookup returning incorrect result
 
This behavior is as specified in HELP
Don't use Lookup, use Vlookup (or Hlookup) with the 4th argument set to FALSE

--
Kind regards,

Niek Otten
Microsoft MVP - Excel


"btrotter" wrote in message ...
| When using the "Look-up" formula for "Lookup value, lookup vector, result
| vector option", if an item description (lookup value) on my current file is
| not found in my item chart file (2nd file), the incorrect item category (in
| the 2nd file) result may be returned instead of a "N/A" (or error, etc). I
| would rather that the result be an error of some sort than the wrong value.
| Am I doing something wrong, or is that the way the function is supposed to
| work?
|
|
| Note: The Item Chart is sorted by Item Description, alpha ascending. (When
| it wasn't sorted, the item category pertaining to the last item on the list
| was being returned. Right now, I think it is returning a result for the item
| near where the missing tem should be on the list.
|




All times are GMT +1. The time now is 06:50 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com