VLOOKUP returning a value when it shouldn't

N

Nicole

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
 
N

Nicole

SORRY ALLL OKAY - I missed the ,0 at the end of the lookup to make sure it
only found an exact match.

Cheers
Nicole
 
T

T. Valko

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top