+ Reply to Thread
Results 1 to 8 of 8

=IF(ISERROR) not returning my 'custom' text

  1. #1
    Forum Contributor
    Join Date
    04-04-2014
    Location
    Tetbury, England
    MS-Off Ver
    Excel 2010
    Posts
    254

    =IF(ISERROR) not returning my 'custom' text

    Hello

    Could someone explain why this function is returning 'NA' and not a dash:

    =IF(ISERROR(MASTER!E72),"-",MASTER!E72)

    Master E72 is currently set to show an error so I can test this function, so surely the IF statement should return a dash?


    Thanks

  2. #2
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: =IF(ISERROR) not returning my 'custom' text

    'NA' is not an error. #N/A is. Which one does your cell contain?
    Remember what the dormouse said
    Feed your head

  3. #3
    Forum Contributor
    Join Date
    08-02-2012
    Location
    Pune
    MS-Off Ver
    Office 365 (Win 10)
    Posts
    489

    Re: =IF(ISERROR) not returning my 'custom' text

    there is one simple formula
    PHP Code: 
    =iferror() 
    check that
    Please make the Post as solved, when you get your answer & Click * if you like my suggestion

  4. #4
    Forum Contributor
    Join Date
    04-04-2014
    Location
    Tetbury, England
    MS-Off Ver
    Excel 2010
    Posts
    254

    Re: =IF(ISERROR) not returning my 'custom' text

    Cell MASTER E72 currently shows 'NA' because I've made a number divide by 'hello' (just to test)

    This makes my if iserror statement return 'NA' and not #N/A but if there is any error at all I would like it to return a dash

  5. #5
    Forum Contributor
    Join Date
    08-02-2012
    Location
    Pune
    MS-Off Ver
    Office 365 (Win 10)
    Posts
    489

    Re: =IF(ISERROR) not returning my 'custom' text

    Just try with
    PHP Code: 
    =IFERROR(MASTER!E72,"-"

  6. #6
    Forum Contributor
    Join Date
    04-04-2014
    Location
    Tetbury, England
    MS-Off Ver
    Excel 2010
    Posts
    254

    Re: =IF(ISERROR) not returning my 'custom' text

    That still shows NA? :/

  7. #7
    Forum Contributor
    Join Date
    04-04-2014
    Location
    Tetbury, England
    MS-Off Ver
    Excel 2010
    Posts
    254

    Re: =IF(ISERROR) not returning my 'custom' text

    I found the problem, MASTER E72 is another error formula which returns NA, I'll have to change that to a dash so I can get my error statement above to work, thanks guys.

  8. #8
    Valued Forum Contributor Saarang84's Avatar
    Join Date
    02-19-2009
    Location
    Chennai, India
    MS-Off Ver
    XL 2003 to 2010
    Posts
    812

    Re: =IF(ISERROR) not returning my 'custom' text

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    As you have already said, Master!E72 is currently set to show an error, that cell already contains #N/A (the error value or NA). So, when either IF(ISERROR(..) is used or IFERROR(...) is used, it'll return the error value which is displayed as NA as there is no valid data.

    Link: http://office.microsoft.com/en-in/ex...r_na_in_place_
    If my assistance has helped, there is a reputation icon * on the left hand corner below the post - you can show your appreciation to the user who has helped in resolving your requirement.

    If your requirement has been solved please mark your thread as Solved.
    In the menu bar above the very first post, select Thread Tools, then select "Mark this thread as Solved".

    Kindly use [FORMULA] or [CODE] tags when posting your code.

    Regards,
    Sarang

+ 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. Replies: 3
    Last Post: 05-03-2012, 04:00 PM
  2. Replies: 1
    Last Post: 12-15-2011, 08:43 PM
  3. SUMPRODUCT and ISERROR returning odd results
    By kraljb in forum Excel General
    Replies: 4
    Last Post: 09-26-2007, 08:11 AM
  4. Custom function returning VALUE error
    By alex.k in forum Excel General
    Replies: 6
    Last Post: 09-26-2005, 11:05 PM
  5. Returning custom errors from UDFs
    By Dave in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-04-2005, 09:05 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