+ Reply to Thread
Results 1 to 2 of 2

if,match fonction

  1. #1
    Registered User
    Join Date
    11-30-2011
    Location
    montreal,canada
    MS-Off Ver
    Excel 2007
    Posts
    30

    if,match fonction

    Hi

    I tried with:

    " =IF(MATCH(C5,'Q7'!A3:A302,0)," ","Code not found") "

    but when it does not match instead of "Code not fond" i get #N/A what can i do?

    Thanx
    Last edited by s_zabihi; 12-01-2011 at 06:27 PM.

  2. #2
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: if,match fonction

    s_zabihi,

    Use IsNumber() to verify that Match() doesn't result in an error:
    =IF(ISNUMBER(MATCH(C5,'Q7'!A3:A302,0))," ","Code not found")
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

+ Reply to Thread

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