#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 390
Default MATCH and #N/A

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?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default MATCH and #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().

Bill wrote:

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?


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,268
Default MATCH and #N/A

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

--


Regards,


Peo Sjoblom


"Bill" wrote in message
...
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?



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,311
Default MATCH and #N/A

One Way:

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

HTH,
Paul

--

"Bill" wrote in message
...
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?



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default MATCH and #N/A

=IF(ISNA(MATCH(...)),0,MATCH(...))
--
David Biddulph

"Bill" wrote in message
...
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?



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
MATCH Multiple Criteria & Return Previous / Penultimate Match Sam via OfficeKB.com Excel Worksheet Functions 27 October 6th 07 01:39 AM
index match array function-returning only first match, need last. Julie Olsen Excel Worksheet Functions 3 December 29th 06 12:50 AM
Lookup? Match? pulling rows from one spreadsheet to match a text f cjax Excel Worksheet Functions 3 July 21st 06 02:51 PM
index,match,match on un-sorted data Brisbane Rob Excel Worksheet Functions 3 September 24th 05 10:04 PM
When MATCH and v/hLOOKUP functions *FAIL* to match (but they should)... [email protected] Excel Worksheet Functions 2 April 6th 05 09:59 PM


All times are GMT +1. The time now is 04:24 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"