Solved

Excel IFERROR specific ERROR not all perhaps VBA?

Posted on 2014-10-13
2
306 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 48

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

What is a Form List Box? (skip if you know this) The forms List Box is the alternative to the ActiveX list box. If you are using excel 2007, you first make sure you have a developer tab (click the Orb)->"Excel Options"->Popular->"Show Developer tab…
Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

759 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now