Solved

Excel IFERROR specific ERROR not all perhaps VBA?

Posted on 2014-10-13
2
312 Views
Last Modified: 2014-10-13
Hello Excelers and Champs

i am looking for a specific function that whenever the result of my formula, has a specific type of error then the IFERROR sort of function can deal with it.

as far as i know, IFERROR treats all errors the same, and we have another one called ISNA and ISERROR is similar like iferror.

what i want in my formula is that if my error is #REF then put NullString otherwise if there is 0DIV error then put 0 and if there is "VALUE" error then put "Not OK"  and if there is "#NULL!" error then put "Exceeded" if there is #NAME? error then put "Name Deleted"

i am not sure it could be done with built-in function or if not with existing built in function then is there any UDF that can handle all of these?

thanks.
0
Comment
Question by:ProfessorJimJam
2 Comments
 
LVL 49

Accepted Solution

by:
Rgonzo1971 earned 500 total points
ID: 40376862
Hi,

pls try

=IFERROR(25/0,CHOOSE(ERROR.TYPE(25/0),"Exceeded",0,"Not OK","","Name Deleted","#Num!","#N/A!"))

And replace 25/0 twice with your formula

Regards
0
 
LVL 25

Author Closing Comment

by:ProfessorJimJam
ID: 40376895
@ Rgonzo1971  

you are a champion.  very fast and best solution.

thanks alot
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction While answering a recent question (http:/Q_27311462.html), I created an alternative function to the Excel Concatenate() function that you might find useful.  I tested several solutions and share the results in this article as well as t…
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question