+ Reply to Thread
Results 1 to 4 of 4

IsError... error?

  1. #1
    Registered User
    Join Date
    11-29-2012
    Location
    Madison, WI
    MS-Off Ver
    MS Office 2010 (Excel, Word, Access)
    Posts
    72

    IsError... error?

    I'm trying to check if a value exists inside of a range using the Find function, as follows:

    Please Login or Register  to view this content.
    The problem is, the IsError function returns a "false" in all situations, even when the value doesn't exist. But if I try to run the Find function on its own in that case, it gives me the Error 91 "Object not set." Isn't "IsError" supposed to detect when something triggers an error?

    What should I be doing instead to avoid the error messages and read that value as a "True" for the purposes of my If statement above?

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: IsError... error?

    Find doesn't return an error if the value you are looking for isn't found, it returns Nothing.
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  3. #3
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: IsError... error?

    You need to defind the variable you are trying to find as an object(Range) and use a set to the range. You then include line another to test if the object(Range) exist. If not objetname is nothing then.
    Is error is meant to test if there is an error on the cell you are trying to evaluate.
    dim rng as range.
    Like

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    11-29-2012
    Location
    Madison, WI
    MS-Off Ver
    MS Office 2010 (Excel, Word, Access)
    Posts
    72

    Re: IsError... error?

    With the "Is Nothing" added, it actually worked exactly as I wrote it - thanks for the help!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. IFERROR and nested ISERROR with different error messages or non at all
    By metalray in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-26-2014, 11:16 AM
  2. [SOLVED] Blank Cell with Error If/Index/Match/Iserror
    By jespo1351 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-13-2014, 10:19 AM
  3. Replies: 1
    Last Post: 12-15-2011, 08:43 PM
  4. IF(ISERROR) error excel 2003
    By hugrl in forum Excel General
    Replies: 10
    Last Post: 01-29-2011, 04:56 PM
  5. Add ISERROR to resolve DIV/0 error
    By mtntxn in forum Excel General
    Replies: 2
    Last Post: 09-28-2009, 04:58 AM
  6. Easy-#N/A error Which fix to use:iserror/na()/ISNA/ (in Index, Match string)
    By DoraExplorExcel in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-24-2007, 10:10 PM
  7. error in formula using ISERROR
    By carsto in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-15-2006, 04:03 PM
  8. [SOLVED] How do I use ISERROR in functions to hide error values
    By Daz in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-06-2006, 02:35 AM

Tags for this Thread

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