+ 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 Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474
    If the formula in A1 returns a number when it doesn't return a #VALUE! error...

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

    If the formula in A1 returns a text value when it doesn't return a #VALuE! error...

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

    Hope this helps!

  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