ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Excel 2002 Lookup formula returning wrong results? (https://www.excelbanter.com/excel-worksheet-functions/56265-excel-2002-lookup-formula-returning-wrong-results.html)

Val

Excel 2002 Lookup formula returning wrong results?
 
Has anyone else had a problem with the lookup formula returning an incorrect
result? I have found that if there is no match, it will return the result
from the previous line. Does anyone have a solution?

Duke Carey

Excel 2002 Lookup formula returning wrong results?
 
use the final argument of false

=vlookup(value,range,column,false)

Now, if there's now match you'll get a #NA error. If you don't want the
error, use

=if(isna(vlookup(value,range,column,false)),"No match",
vlookup(value,range,column,false))

"Val" wrote:

Has anyone else had a problem with the lookup formula returning an incorrect
result? I have found that if there is no match, it will return the result
from the previous line. Does anyone have a solution?



All times are GMT +1. The time now is 08:20 PM.

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