+ Reply to Thread
Results 1 to 11 of 11

IF to hide an error #NUM!

  1. #1
    Registered User
    Join Date
    01-24-2014
    Location
    Portugal
    MS-Off Ver
    Excel 2003
    Posts
    27

    IF to hide an error #NUM!

    Hi, I have an array:

    =IF($D$53:$D$62="";"";INDEX($D$53:$D$62;SMALL(IF($D$53:$D$62<>"";ROW($D$53:$D$62)-ROW($D$53)+1);1)))

    but when $D$53:$D$62="" gives #NUM!

    How can I go around it?

    Thanks

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.95 for Mac MS 365
    Posts
    8,683

    Re: IF to hide an error #NUM!

    First off, I'm not good with debugging array formulas especially if all I can see is the posted formula and not the actual spreadsheet but I wonder if you substituted a sum formula for the first part of the array? like =IF(sum($D$53:$D$62)="";"";INDEX($D$53:$D$62;SMALL(IF($D$53:$D$62<>"";ROW($D$53:$D$62)-ROW($D$53)+1);1)))
    might work?
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Registered User
    Join Date
    01-24-2014
    Location
    Portugal
    MS-Off Ver
    Excel 2003
    Posts
    27

    Re: IF to hide an error #NUM!

    thank you,

    worked like this:
    =IF(sum($D$53:$D$62)=0;"";INDEX($D$53:$D$62;SMALL(IF($D$53:$D$62<>"";ROW($D$53:$D$62)-ROW($D$53)+1);1)))

    But I give you all the credit. Thanks again!

  4. #4
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.95 for Mac MS 365
    Posts
    8,683

    Re: IF to hide an error #NUM!

    Yes, I should have put it in as =0 instead of ="", was only trying with a guess. Glad it worked for you as you adjusted it.

  5. #5
    Registered User
    Join Date
    01-24-2014
    Location
    Portugal
    MS-Off Ver
    Excel 2003
    Posts
    27

    Re: IF to hide an error #NUM!

    Sorry, but is not working!~lol
    It's always true. Can I send you the workbook?

  6. #6
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.95 for Mac MS 365
    Posts
    8,683

    Re: IF to hide an error #NUM!

    the best thing to do is upload it here with any confidential information removed. As I noted I'm not that good with array formulas so if you upload the doc here others who have better skills than I have with array formulas might see something i don't see. Just use the "go advanced" button below. I always find that saving the doc to my desktop is the easiest way to upload it.

    Besides that, i'm not going to be online much longer.
    Last edited by Sam Capricci; 02-06-2016 at 11:29 PM.

  7. #7
    Registered User
    Join Date
    01-24-2014
    Location
    Portugal
    MS-Off Ver
    Excel 2003
    Posts
    27

    Re: IF to hide an error #NUM!

    array error help.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    01-24-2014
    Location
    Portugal
    MS-Off Ver
    Excel 2003
    Posts
    27

    Re: IF to hide an error #NUM!

    new workbook with no links (45Kb)

    thanks for help
    Attached Files Attached Files

  9. #9
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,894

    Re: IF to hide an error #NUM!

    If I am understanding correctly you want to hide the error. If that is correct then an array formula similar to the following will work:
    Please Login or Register  to view this content.
    I applied this array formula to Q7, activated it with Ctrl+Shift+Enter, and dragged it across to X7.
    Let me know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  10. #10
    Registered User
    Join Date
    01-24-2014
    Location
    Portugal
    MS-Off Ver
    Excel 2003
    Posts
    27

    Re: IF to hide an error #NUM!

    Sorry, My bad, it works fine If(iserror(...);"";...)
    thank you for your help!

  11. #11
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,894

    Re: IF to hide an error #NUM!

    Your Welcome and thank you for the feedback, glad that things are now working as expected. If the solutions are satisfactory, and if you have not already, please take a moment to mark the thread 'Solved' using the thread tools link above your first post. I hope that you have a nice day.

+ 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] #DIV/0 error - don't want to hide the error, need to work around it
    By RamJacCorp in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 11-28-2015, 07:07 PM
  2. #N/A Error hide - help?
    By jacko058 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-27-2015, 04:39 AM
  3. How to truly hide an error?
    By ThomasCarter in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-19-2012, 11:30 AM
  4. Help hide my #N/A error!
    By EXCEL?? in forum Excel General
    Replies: 4
    Last Post: 04-19-2012, 06:20 PM
  5. [SOLVED] Hide the Div/0 error?
    By Vermilion in forum Excel General
    Replies: 10
    Last Post: 04-11-2012, 11:17 AM
  6. hide #N/A error
    By tsioumiou in forum Excel General
    Replies: 7
    Last Post: 05-13-2010, 08:02 PM
  7. Hide #div/0 error
    By tompich in forum Excel General
    Replies: 18
    Last Post: 09-19-2007, 07:31 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