VLOOKUP help in excel

Soldato
Joined
26 Mar 2007
Posts
9,117
Location
Nottinghamshire
The are 2 tabs, tab 1 is running a vlookup against tab 2 and returning a value when it finds a match.

Screenshot below of sample data:

vlookup.jpg


Is there a way to replace the '#N/A' with something that excel will recognise as a value when it does not find a match in tab 2.

I want to add up the number of positive return values that it finds.

Clear as mud I'm sure but any help appreciated.
 
think you need to add the ISNA, here is one from one im currently working on


=IF(ISNA(VLOOKUP(A2,Cust,1,FALSE)),"NEW","Existing")
 
not sure why my ISNA function is so much larger than yours :p

=IF(ISNA(VLOOKUP(A2, Sheet3!D:E, 2, FALSE)),".",VLOOKUP(A2, Sheet3!D:E, 2, FALSE))

The "." is for conditional formatting, so the box is greyed out.
 
Not saying the above two are wrong as I've never heard of that function, but I use:

=IF(ISERROR(VLOOKUP(A2,Sheet3!D:E,2,FALSE)=TRUE),0,VLOOKUP(A2,Sheet3!D:E,2,FALSE))
 
Right chaps another one for ya.

Anyway to get that VLOOKUP in my first post to look across more than tab at once?
 
Do you mean across work sheets in the same spreadsheet?

Is so, then user Sheetname!Cellrange, eg:

=vlookup(A, Sheet2!A:B, 2, false)
 
Back
Top Bottom