VLOOKUP

B

Brandon

I have this function which works.

=VLOOKUP(A3,NewRev!$A$1:$B$286,2,FALSE) for A3-A500ish

However, if what is in A3 doesn't return a result from the NewRev worksheet,
I get #N/A, my question is, instead of an #N/A result, can I get blank or 0
so that when the result is used in a Sum formula I dont get a #N/A, or do I
have to go through and manually delete anything with #N/A as a result?

TYIA, Brandon
 
B

Brandon

Brandon said:
I have this function which works.

=VLOOKUP(A3,NewRev!$A$1:$B$286,2,FALSE) for A3-A500ish

However, if what is in A3 doesn't return a result from the NewRev worksheet,
I get #N/A, my question is, instead of an #N/A result, can I get blank or 0
so that when the result is used in a Sum formula I dont get a #N/A, or do I
have to go through and manually delete anything with #N/A as a result?

TYIA, Brandon


Also, if what is in A3 returns multiple results, is there a way to sum the
total results?
 
T

T. Valko

Sometimes you want the errors to appear.

You can sum while ignoring the errors using a formula like this:

=SUMIF(A1:A10,"<1E100")

However, if you don't want the errors to appear try this to return 0:

=IF(COUNTIF(NewRev!$A$1:$A$286,A3),VLOOKUP(A3,NewRev!$A$1:$B$286,2,0),0)
 

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