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
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
I always used IF(ISERROR()) method....
Люди, питающие благие намерения, как раз и становятся чудовищами.
Regards, ?Born in USSR?
Vusal M Dadashev
Baku, Azerbaijan
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.
Everyone who confuses correlation and causation ends up dead.
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:
How to install the User Defined Function:![]()
Please Login or Register to view this content.
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 theicon 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!)
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.
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
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.
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.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks