+ Reply to Thread
Results 1 to 5 of 5

Check for "#VALUE!"

  1. #1
    Registered User
    Join Date
    04-20-2005
    Posts
    48

    Check for "#VALUE!"

    I know it is possible to do by writing a script....but is there a way to check if a function returns "#VALUE!" logically?

    Simple example:
    SEARCH("e","1234") returns #VALUE!.
    I'd like to say IF(SEARCH("e","1234")="#VALUE!","ERROR","No Error")

    Thanks!

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,819
    Would the ISERROR function serve your purpose, or do you need to distinguish the #VALUE error from other errors?

  3. #3
    Duke Carey
    Guest

    RE: Check for "#VALUE!"

    try

    =if(iserr(search(...)),"Error","No error")

    "carlyman" wrote:

    >
    > I know it is possible to do by writing a script....but is there a way to
    > check if a function returns "#VALUE!" logically?
    >
    > *Simple example: *
    > SEARCH("e","1234") returns #VALUE!.
    > I'd like to say IF(SEARCH("e","1234")="#VALUE!","ERROR","No Error")
    >
    > Thanks!
    >
    >
    > --
    > carlyman
    > ------------------------------------------------------------------------
    > carlyman's Profile: http://www.excelforum.com/member.php...o&userid=22440
    > View this thread: http://www.excelforum.com/showthread...hreadid=379062
    >
    >


  4. #4
    Registered User
    Join Date
    04-20-2005
    Posts
    48
    I can work around it using ISERROR, but I was hoping to implement something more based on what type of error it was.

  5. #5
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,819
    In that case, there's the ERROR.TYPE function.

+ 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