Closed Thread
Results 1 to 8 of 8

IFERROR for 2003

  1. #1
    Registered User
    Join Date
    08-02-2007
    MS-Off Ver
    2007
    Posts
    25

    IFERROR for 2003

    Hi there -

    Other than the ugly method of:

    =IF(ISNA(VLOOKUP(A2,$AA$1:$AB$99,2,False)),”This employee has left the company.”, VLOOKUP(A2,$AA$1:$AB$99,2,False))

    in 2003, is there an equivalent to 2007's IFERROR in 2003?

    Thanks,
    Victoria

  2. #2
    Forum Expert contaminated's Avatar
    Join Date
    05-07-2009
    Location
    Baku, Azerbaijan
    MS-Off Ver
    Excel 2013
    Posts
    1,430

    Re: IFERROR for 2003

    I always used IF(ISERROR()) method....
    Люди, питающие благие намерения, как раз и становятся чудовищами.

    Regards, ?Born in USSR?
    Vusal M Dadashev

    Baku, Azerbaijan

  3. #3
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: IFERROR for 2003

    There is no IFERROR function equivalent as such. I normally use a MATCH formula in a separate column, then use an INDEX function. For example, in your case I would have:
    =MATCH(A2,$AA$1:$AA$99,0)
    in a cell (say B2), and then:
    =IF(ISNA(B2),”This employee has left the company.”, INDEX($AB$1:$AB$99,B2))
    The alternatives are using a combination of LOOKUP and CHOOSE, or writing your own IFERROR function in VBA or in an XLL/DLL for example.
    Remember what the dormouse said
    Feed your head

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: IFERROR for 2003

    I've been using an IFERROR UserDefinedFunction (UDF) forever now. Install this into your sheet and you can use it the same as in Excel 2007:

    Please Login or Register  to view this content.
    How to install the User Defined Function:

    1. Open up your workbook
    2. Get into VB Editor (Press Alt+F11)
    3. Insert a new module (Insert > Module)
    4. Copy and Paste in your code (given above)
    5. Get out of VBA (Press Alt+Q)
    6. Save your sheet

    The function is installed and ready to use.
    =IFERROR(VLOOKUP(A2, $AA$1:$AB$99, 2, False), "This employee has left the company.")
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  5. #5
    Forum Contributor
    Join Date
    11-28-2008
    Location
    Reykjavík, Iceland
    MS-Off Ver
    Any of: 2003 & 2007
    Posts
    412

    Re: IFERROR for 2003

    Hi,

    Although it is an old thread I hope it will jump up front.

    I tried the proposed UDF and it works fine as long as it is placed in a module inside the active VB.

    In a received WB from a 2007 user it shows: _xlfn.IFERROR and the correct result, but when I enter the formula for editing, it gives the #NAME error.

    Also, when I put it into my PERSONAL.XLS and/or BOOK.XLT - it returns #NAME?

    How can I use this UDF in Excel 2003 when opening an 2007 WB ?

    Thanks, Elm
    Last edited by ElmerS; 08-05-2010 at 02:06 AM.

  6. #6
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: IFERROR for 2003

    Hi Elm,

    as the problem is different ( but related to) it would be better to start a new thread with your question with a link to this thread

  7. #7
    Forum Contributor
    Join Date
    11-28-2008
    Location
    Reykjavík, Iceland
    MS-Off Ver
    Any of: 2003 & 2007
    Posts
    412

    Re: IFERROR for 2003

    Hi,

    With all due respect I don't think that there should be 2 !!! threads dealing with the same problem as this might confuse some of the supporters/visitors.

    As the thread was not closed as [SOLVED} and it was "pushed up" to the first page - I'm sure it will be OK if I will leave it as it is.

    Elm.

  8. #8
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: IFERROR for 2003

    Elm,

    Please don't ignore a moderators' request.

    Your post does not comply with Rule 2 of our Forum RULES. Don't post a question in the thread of another member -- start your own thread. If you feel it's particularly relevant, provide a link to the other thread.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

Closed 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