MATCH and #N/A

B

Bill

I am searching 12 columns to find the occurance of a particular letter. If
the letter is not in any of the columns, MATCH returns #N/A. How do I set up
the formula to return zero instead of #N/A?
 
D

Dave Peterson

=if(isnumber(match(...)), match(...),0)
or
=if(isna(match(...)),0,match(...))

if you're using xl2007, you may want to look at =iferror().
 
P

Peo Sjoblom

=IF(ISNA(MATCH(lookup,Range,0)),0,MATCH(lookup,Range,0))

--


Regards,


Peo Sjoblom
 
P

PCLIVE

One Way:

=IF(ISNA(MATCH(E1,A1:A10,"ValueToSearch")),0,MATCH(E1,A1:A10,"ValueToSearch"))

HTH,
Paul
 

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