+ Reply to Thread
Results 1 to 11 of 11

ISERROR to IFERROR

  1. #1
    Forum Contributor
    Join Date
    05-17-2016
    Location
    Montreal
    MS-Off Ver
    2013
    Posts
    115

    ISERROR to IFERROR

    Hi everybody,

    I've been trying to rewrite

    =IF(ISERROR((IF(AND(F45>T45*(1-$B$11);T45<>"");1;0)));"";(IF(AND(F45>T45*(1-$B$11);T45<>"");1;0)))

    into something much more simpler

    =IFERROR(AND(F45>T45*(1-$B$11);T45<>"")*1;"")

    I seem to have an error because its prompting me to multiply it by 1 my "value"

    Eseentially, the formula should be IF NO-ERROR + (F45>T45*(1-$B$11);T45<>"") are TRUE = 1, IF YES-ERROR =""

    Could someone point out where I my formula is wrong??

    Thx!

  2. #2
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: ISERROR to IFERROR

    Hi,

    It would be this:

    =IFERROR((IF(AND(F45>T45*(1-$B$11);T45<>"");1;0));"")

  3. #3
    Valued Forum Contributor
    Join Date
    01-08-2011
    Location
    Portsmouth, England
    MS-Off Ver
    Excel 2007 to 2016
    Posts
    456

    Re: ISERROR to IFERROR

    Try this:

    =IFERROR(IF(AND(F45>T45*(1-$B$11);T45<>"");1;0);"")
    Excel is a constant learning process and it's great to help each other. If any of us have helped you today, a click on the "reputation" star on the left is appreciated.

  4. #4
    Forum Contributor
    Join Date
    05-17-2016
    Location
    Montreal
    MS-Off Ver
    2013
    Posts
    115

    Re: ISERROR to IFERROR

    Thx for the quick reply
    Last edited by Exequiel3k; 06-28-2016 at 06:12 PM.

  5. #5
    Forum Contributor
    Join Date
    05-17-2016
    Location
    Montreal
    MS-Off Ver
    2013
    Posts
    115

    Re: ISERROR to IFERROR

    This is more of an inquiry:

    I switched all my ISERROR to IFERROR and the data processing actually took 8% more time to complet (did it twice to be sure).
    I assumed there was less re-calculations to be done via IFERROR since ISERROR wasn't processing the formula twice..

    Is there something that makes it longer to process as it stands "=IFERROR(IF(AND(F45>T45*(1-$B$11);T45<>"");1;0);"")"???
    Last edited by Exequiel3k; 06-29-2016 at 01:07 PM.

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,777

    Re: ISERROR to IFERROR

    Does this not do the same so no IFERROR ????

    =IF(T45="","",IF(F45>T45*(1-$B$11),1,0))

    or

    =IF(T45="",0,IF(F45>T45*(1-$B$11),1,0))


    The error would only result if F45, T45 or B11 were not numeric. Is this likely ?

  7. #7
    Valued Forum Contributor
    Join Date
    01-08-2011
    Location
    Portsmouth, England
    MS-Off Ver
    Excel 2007 to 2016
    Posts
    456

    Re: ISERROR to IFERROR

    Hmmmm... have never really come across this issue before, but I did a bit of research and found this item (a bit old now, but maybe still relevant if you're using 2013 version)

    http://www.mrexcel.com/forum/excel-q...fficiency.html

    It suggests that IFERROR can be slow if used on large data sets, so if you have a large worksheet this could apply.

    As a suggestion, could you evaluate what type of errors you would get (e.g. T45 containing something invalid) and evaluate those in your formula instead of error checking everything? I must admit that I tend to use IFERROR mostly only VLOOKUPS to check for missing values and avoid #N/A but try to avoid the errors on other things where possible.

  8. #8
    Valued Forum Contributor
    Join Date
    01-08-2011
    Location
    Portsmouth, England
    MS-Off Ver
    Excel 2007 to 2016
    Posts
    456

    Re: ISERROR to IFERROR

    John's alternative suggestion is the kind of thing I mean

  9. #9
    Forum Contributor
    Join Date
    05-17-2016
    Location
    Montreal
    MS-Off Ver
    2013
    Posts
    115

    Re: ISERROR to IFERROR

    I'll rewrite the columns and report back using =IF(XX="","",IF(XXX>XXX*(1-$B$11),1,0))

    The only error I could get is #value; I could always try ISERR but John`s approach seems promising

  10. #10
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: ISERROR to IFERROR

    John's formula seems the way to go, however in your specific formula the source of the #Value! error could be either T45 OR B11 being a text value ("")

    Try
    =IF(OR(T45="",$B$11=""),"",IF(F45>T45*(1-$B$11),1,0))

  11. #11
    Forum Contributor
    Join Date
    05-17-2016
    Location
    Montreal
    MS-Off Ver
    2013
    Posts
    115

    Re: ISERROR to IFERROR

    Having changed all the IFERROR TO "=IF(XX="","",IF(XXX>XXX*(1-$B$11),1,0))", it was 2.30% slower than ISERROR.

    Essentially, ISERROR faster than "No-Error formula" faster than IFERROR.

    Intresting outcome.. Any thoughts??

    (btw I have a i7 3770 with 8GB ram).
    Last edited by Exequiel3k; 06-30-2016 at 08:19 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. ISERROR/IFERROR With multiple IFS
    By adrianioana in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-14-2016, 12:13 PM
  2. Replies: 3
    Last Post: 01-13-2016, 12:05 PM
  3. Help converting IF(ISERROR to IFERROR
    By npbndcis in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 01-07-2016, 02:37 PM
  4. IFERROR and nested ISERROR with different error messages or non at all
    By metalray in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-26-2014, 11:16 AM
  5. [SOLVED] IF ISERROR instead of IFERROR macro code
    By turist in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-20-2014, 09:41 AM
  6. xlfn.IFERROR or IFERROR don't work in Excel 98-2003
    By dj_danu01 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-26-2013, 02:53 AM
  7. Replies: 1
    Last Post: 12-15-2011, 08:43 PM

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