MATCH and #N/A

  • Thread starter Thread starter Bill
  • Start date Start date
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?
 
=if(isnumber(match(...)), match(...),0)
or
=if(isna(match(...)),0,match(...))

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

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

HTH,
Paul
 
Back
Top