Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel Help with Match Function

Status
Not open for further replies.

jarmend

IS-IT--Management
Jun 3, 2004
10
0
0
US
I am using the Match() function in a spreadsheet which results in either digits or "#N/A". There are multiple cells, side-by-side, with the same formula referencing different cells. I want to then evaluate these formula results to see if any of them do result in a number instead of #N/A, but the formula does not evaluate the "#N/A" text.

Thanks in advance for any help you can offer.
 

Hi,

Not too clear! You did not include your formula. Not really sure what you are doing???

If there is no match, it returns #N/A. So I often do something like this...
[tt]
=IF(ISERROR(Match(A1,TheRange,0)),0,Index(OtherRange,Match(A1,TheRange,0),1))
[/tt]


Skip,
[sub]
[glasses] [red]Be Advised![/red] For those this winter, caught in Arctic-like calamity, be consoled...
Many are cold, but few are frozen![tongue][/sub]
 
Personally I'd use ISNA() as ISERROR() may end up hiding an error that should indeed be picked up:-

=IF(ISNA(Your_Formula),"",Your_Formula)

Regards
Ken..........

----------------------------------------------------------------------------
[peace]It's easier to beg forgiveness than ask permission[2thumbsup]
----------------------------------------------------------------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top