Solved

Excel IFERROR specific ERROR not all perhaps VBA?

Posted on 2014-10-13
2
315 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 50

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 26

Author Closing Comment

by:ProfessorJimJam
ID: 40376895
@ Rgonzo1971  

you are a champion.  very fast and best solution.

thanks alot
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

INDEX and MATCH can be used to great effect to replace HLOOKUP and VLOOKUP as it does not have the limitation of needing the data to be sorted so that the reference value is in the first column or row. It also has the ability to perform a bi-directi…
Introduction This Article is a follow-up to my Mappit! Addin Article (http://www.experts-exchange.com/A_2613.html), it was inspired by an email posting I made to EUSPRIG (http://www.eusprig.org/index.htm), I will briefly cover: 1) An overvie…
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

820 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