+ Reply to Thread
Results 1 to 3 of 3

Testing for #VALUE!

  1. #1
    Registered User
    Join Date
    11-10-2004
    Posts
    23

    Testing for #VALUE!

    Hello!

    Is there any way I can test for a #VALUE! entry in a spreadsheet either through a line of VBA code or an IF statement in a cell?

    IE: A1 = #VALUE!

    Could cell B1 have something similar to: IF(A1='#VALUE!',1,0)
    (Although I know this won't work!)

    or a VBA function when I run a macro?

    Thanks!

  2. #2
    Forum Contributor
    Join Date
    04-30-2004
    Posts
    122
    In cell B1 enter this formula....

    =IF(ISERROR(A1),1,0)

    This will also return true for all other errors N/A, DIV/0, etc.

  3. #3
    Registered User
    Join Date
    11-10-2004
    Posts
    23
    Thanks alot, much appreciated!

+ 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