Results 1 to 11 of 11

Best way to handle errors from MATCH

Threaded View

  1. #1
    Registered User
    Join Date
    01-22-2008
    Posts
    9

    Best way to handle errors from MATCH

    I am trying to match first and last names between two worksheets with different sizes of the data. The array function {=MATCH(1,IF(SheetName!LastNameRange=LastName,IF(SheetName!FirstNameRange=FirstName,1)),0)} will give me the index of a match. I can also use this with the Evaluate function to get the result in a macro. My question is how best to handle the rows where there is no match, without having to execute the MATCH function twice. Is there any way to get the match index if successful and -1 upon error?
    Last edited by nls; 10-01-2010 at 12:10 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1