+ Reply to Thread
Results 1 to 6 of 6

how to check #N/A value in cells?

  1. #1
    Registered User
    Join Date
    09-16-2008
    Location
    malaysia
    Posts
    89

    how to check #N/A value in cells?

    hi all,

    good day,

    i facing a problem to checking if the value is "#N/A".

    Please Login or Register  to view this content.

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: how to check #N/A value in cells?

    Hi ccs1981,


    what is the value of "H" in the code as it is appearing to me as text, would suggest you to post the sample file. thanks.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), dilipandey@gmail.com

  3. #3
    Forum Expert OnErrorGoto0's Avatar
    Join Date
    12-30-2011
    Location
    I DO NOT POST HERE ANYMORE
    MS-Off Ver
    I DO NOT POST HERE ANYMORE
    Posts
    1,655

    Re: how to check #N/A value in cells?

    Please Login or Register  to view this content.
    Good luck.

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: how to check #N/A value in cells?

    Hi,

    Make the second row of your loop

    If IsError(Cells(z_row, "H")) Then

    Regards
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  5. #5
    Forum Expert
    Join Date
    06-25-2009
    Location
    Sofia, Bulgaria, EU
    MS-Off Ver
    Excel 2003-2013
    Posts
    1,290

    Re: how to check #N/A value in cells?

    OnErrorGoto0 solution will work just fine. Another possible solutions would be

    Please Login or Register  to view this content.
    If you are pleased with a member's answer then use the Star icon to rate it.

  6. #6
    Forum Expert OnErrorGoto0's Avatar
    Join Date
    12-30-2011
    Location
    I DO NOT POST HERE ANYMORE
    MS-Off Ver
    I DO NOT POST HERE ANYMORE
    Posts
    1,655

    Re: how to check #N/A value in cells?

    I should add that my answer was specific to the question - i.e. checking for #N/A and not any other error. Richard's is a more robust solution generally.

+ 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