+ Reply to Thread
Results 1 to 4 of 4

IFERROR and nested ISERROR with different error messages or non at all

  1. #1
    Registered User
    Join Date
    02-12-2014
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    13

    IFERROR and nested ISERROR with different error messages or non at all

    Hi,

    I managed to combine IF and ISERROR to show the error when there is one or just nothing when there isnt.

    =IF(ISERROR((ROUND(GETPIVOTDATA("YEAR 13 ";Pivot!$A$26;"USGAAP";"INCOME");-5)/1000000)*-1);"Missing INCOME";"")

    My new challenge is if the formula is a bit more complicated i.e. contains and addition or division.
    If I now wrap the IFERROR (making it an ISERROR) within the IFERROR then I lose the differentiation for the error
    message. It all becomes one.

    Do any of you have a suggestion?

    =IFERROR((
    (ROUND(GETPIVOTDATA("YEAR 13 ";Pivot!$A$26;"USGAAP";"REVENUE EARNED");-5) / 1000000)+
    (ROUND(GETPIVOTDATA("YEAR 13";Pivot!$A$26;"USGAAP";"FEES");-5) / 1000000))*-1

    ;"Missing "&T(IFERROR(GETPIVOTDATA("YEAR 13";Pivot!$A$26;"USGAAP";"REVENUE EARNED");"REVENUE EARNED"))&T(IFERROR(GETPIVOTDATA("YEAR 13";Pivot!$A$26;"USGAAP";"FEES");"FEES")))

  2. #2
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: IFERROR and nested ISERROR with different error messages or non at all

    What is problem? I think this formula will return:
    value if no error
    "Missing Revenue earned" if only revenue part in error
    "Missing Fees" if only fees part in error
    "Missing Revenue earnedFees" if both parts in error.

    Last option I think will be better with this formula:

    =IFERROR((
    (ROUND(GETPIVOTDATA("YEAR 13 ";Pivot!$A$26;"USGAAP";"REVENUE EARNED");-5) / 1000000)+
    (ROUND(GETPIVOTDATA("YEAR 13";Pivot!$A$26;"USGAAP";"FEES");-5) / 1000000))*-1

    ;"Missing"&T(IFERROR(GETPIVOTDATA("YEAR 13";Pivot!$A$26;"USGAAP";" REVENUE EARNED");"REVENUE EARNED"))&T(IFERROR(GETPIVOTDATA("YEAR 13";Pivot!$A$26;"USGAAP";"FEES");" FEES")))

    which will return "Missing Revenue earned Fees"
    • Please remember to mark threads Solved with Thread Tools link at top of page.
    • Please use code tags when posting code: [code]Place your code here[/code]
    • Please read Forum Rules

  3. #3
    Registered User
    Join Date
    02-12-2014
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: IFERROR and nested ISERROR with different error messages or non at all

    Hi,

    Thanks for your reply.

    This formula shows nothing ("") when there is no error:

    =IF(ISERROR((ROUND(GETPIVOTDATA("YEAR 13 ";Pivot!$A$26;"USGAAP";"INCOME");-5)/1000000)*-1);"Missing INCOME";"")

    This formula shows the caluclation result and a proper error message, which is great but when there is no error then
    I dont want to see the calculation result but instead just nothing (as in the formula above):

    =IFERROR((
    (ROUND(GETPIVOTDATA("YEAR 13 ";Pivot!$A$26;"USGAAP";"REVENUE EARNED");-5) / 1000000)+
    (ROUND(GETPIVOTDATA("YEAR 13";Pivot!$A$26;"USGAAP";"FEES");-5) / 1000000))*-1

    ;"Missing "&T(IFERROR(GETPIVOTDATA("YEAR 13";Pivot!$A$26;"USGAAP";"REVENUE EARNED");"REVENUE EARNED"))&T(IFERROR(GETPIVOTDATA("YEAR 13";Pivot!$A$26;"USGAAP";"FEES");"FEES")))

  4. #4
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: IFERROR and nested ISERROR with different error messages or non at all

    You may try:

    =TRIM(IF(ISERROR(GETPIVOTDATA("YEAR 13 ";Pivot!$A$26;"USGAAP";"INCOME"));"Missing INCOME";"")&IF(ISERROR(GETPIVOTDATA("YEAR 13 ";Pivot!$A$26;"USGAAP";"FEES"));" Missing FEES";""))

+ 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. [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
  2. [SOLVED] nested iferror
    By ammartino44 in forum Excel General
    Replies: 2
    Last Post: 02-28-2014, 03:06 PM
  3. Nested IF and IFERROR
    By Richard N in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-16-2013, 03:42 PM
  4. [SOLVED] Nested iferror
    By corinereyes in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-18-2012, 01:21 PM
  5. IFERROR in a Nested IF function
    By hysterical_oliver in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-27-2010, 06:38 AM

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