+ Reply to Thread
Results 1 to 4 of 4

a test for #N/A

  1. #1
    Registered User
    Join Date
    01-31-2006
    Posts
    17

    a test for #N/A

    I had no luck searching the forums for #N/A related so I may be asking a question already answered.

    I need to test cells for the presence of a #N/A error code. I would prefer to use an IF() statement. Is this possible?

    Thanks in advance!

  2. #2
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Hi,

    You can test it with the function Isna()

    HTH
    Carim

  3. #3
    Registered User
    Join Date
    11-16-2006
    Posts
    80
    Hi elrussell,

    Try this

    =IF(ISNA("A1"),0,"A1")

    if range A1 is #N/A then its else leave the value

    You could do this in another cell range

    You usuall get #N/A using VLookup. so try this

    =If(ISNA(VLOOKUP("A1",B1:C1,1,FALSE),0,VLOOKUP("A1",B1:C1,1,FALSE))

    The only problem with that is that it does a vlookup twice. So do the vlookup in e.g. col A and the ISNA in col B

    Hope this helps
    mccreaso

  4. #4
    Registered User
    Join Date
    01-31-2006
    Posts
    17

    solution for #N/A test

    works like a charm - thanks!

+ 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