+ Reply to Thread
Results 1 to 9 of 9

Need help with ISNA function

  1. #1
    Registered User
    Join Date
    04-17-2014
    Location
    Zürich
    MS-Off Ver
    Excel 2007
    Posts
    9

    Need help with ISNA function

    Hi there,

    First time poster here. I'm trying to insert a formula that will check off a PN against four different PN tables and return either "YES" or "NO" depending on whether the PN is present in one of the four reference tables, or it's a brand new PN.

    The formula I tried is =IF((MATCH(A67,B67:F67,0))<>"INSA","NO","YES")

    This works no problem if the PN is already found, but instead of returning "YES" if the PN is new, it returns #N/A.

    Clearly I'm not using the INSA function in the correct manner, can someone please help?

    Thanks!

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Need help with ISNA function

    Hi and welcome to the forum

    Maybe this?

    =IF(iserror(MATCH(A67,B67:F67,0)),"NO","YES")
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,704

    Re: Need help with ISNA function

    You can use ISNUMBER or ISNA functions like this

    =IF(ISNUMBER(MATCH(A67,B67:F67,0)),"YES","NO")

    or reversed

    =IF(ISNA(MATCH(A67,B67:F67,0)),"NO","YES")
    Audere est facere

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,712

    Re: Need help with ISNA function

    ISNA is a function. Try:

    =IF(ISNA(MATCH(A67,B67:F67,0)),"YES","NO")
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,712

    Re: Need help with ISNA function

    Quote Originally Posted by daddylonglegs View Post
    You can use ISNUMBER or ISNA functions like this

    =IF(ISNUMBER(MATCH(A67,B67:F67,0)),"YES","NO")

    or reversed

    =IF(ISNA(MATCH(A67,B67:F67,0)),"NO","YES")
    Won't this return "NO" if the PN is new???

  6. #6
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,704

    Re: Need help with ISNA function

    Quote Originally Posted by AliGW View Post
    Won't this return "NO" if the PN is new???
    I probably misread - Yes, I think my "Yes" and "No" need to be reversed

  7. #7
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,704

    Re: Need help with ISNA function

    ....perhaps COUNTIF is simpler, assuming you want "Yes" when the A67 value doesn't exist in B67:F67

    =IF(COUNTIF(B67:F67,A67),"No","Yes")

  8. #8
    Registered User
    Join Date
    04-17-2014
    Location
    Zürich
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Need help with ISNA function

    Works perfectly now - thank you very much for the quick response!

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,712

    Re: Need help with ISNA function

    You are welcome!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Can you please help me incorporate ISNA in this function
    By JPSIMMON in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-24-2013, 02:43 PM
  2. Vlookup Help (Need to do ISNA and a few IFs within one function)
    By brandnew22 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-09-2013, 11:29 AM
  3. [SOLVED] RE-write if function with isna function for more values
    By funtastic in forum Excel General
    Replies: 6
    Last Post: 07-12-2012, 04:33 AM
  4. ISNA VLookup Function
    By Dr.SUN in forum Excel General
    Replies: 1
    Last Post: 12-13-2011, 05:40 AM
  5. IF ISNA function
    By ssdsibes in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-23-2011, 02:58 AM

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