View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
T. Valko T. Valko is offline
external usenet poster
 
Posts: 15,768
Default VLOOKUP returning a value when it shouldn't

Include the 4th argument, [range_lookup], and set it to either 0 or FALSE:

=VLOOKUP(B:B,'Sales Analysis by Items (Annual).txt'!$A$2:$D$222,3,0)

This means that you'll only get exact matches.

--
Biff
Microsoft Excel MVP


"Nicole" wrote in message
...
I have done a V lookup, which takes an item no. (B:B), looks for it in the
'Sales analysis by items' and returns the value in column 3. Althought if
there is no item no. in the 'sales analysis' workbook then it still
returns a
value.

how can i stop this and get it to leave it 0 or blank??

=VLOOKUP(B:B,'Sales Analysis by Items (Annual).txt'!$A$2:$D$222,3)

I asked yesterday and got the answer =IF(ISNA(VLOOKUP),0,(VLOOKUP))
but it wasn't working.

Thanks Nicole