+ Reply to Thread
Results 1 to 5 of 5

Trying to hide #VALUE! error

  1. #1
    Registered User
    Join Date
    08-08-2014
    Location
    Sunny Northern Iraq
    MS-Off Ver
    2010
    Posts
    4

    Trying to hide #VALUE! error

    I have successfully hidden some error formulas (actually substituted a "-", not hid) but there is one formula that is stumping me.

    It's a pretty involved spreadsheet, but here is the formula in question:

    =IF(C2<P2,Q2-C2-D2,""), where column C = ONHAND, D = ONORDER, P = 8 WEEK MIN, and Q = 12 WEEK MAX.

    This formula calculates my NEED of a product, by saying =IF(ONHAND is less than 8 WEEK MIN, take 12 WEEK MAX and subtract ONHAND and ONORDER).

    This formula works great as long as I have quantities in my 8 WEEK MIN and 12 WEEK MAX column, but in some cases I have a new item that doesn't have any history or an old item that has very little sales volumne, so the 8 WEEK MIN and 12 WEEK MAX columns calculate to "-". Is there a way to hide the #VALUE! so my filter on this column will work properly?

    Thanks,

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,079

    Re: Trying to hide #VALUE! error

    You should really prevent the errors from occurring in the first place.

    =IF(ISERROR(formula),"",formula)
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Registered User
    Join Date
    08-08-2014
    Location
    Sunny Northern Iraq
    MS-Off Ver
    2010
    Posts
    4

    Re: Trying to hide #VALUE! error

    Yeah, I know about the IF(ISERROR.... formula. I've used it all the way across the spreadsheet. But it doesn't work with the formula above.

  4. #4
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Trying to hide #VALUE! error

    You could try something like this IF columns P and Q are blank if there are no values. If you use a - or something else for no values this will not work. I suggest that if there are no values, leave the cells blank.

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


    If both cells in columns P and Q are blank then a blank will be the result otherwise a calculation will take place.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  5. #5
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Trying to hide #VALUE! error

    Maybe this

    =IFERROR(IF(C2<P2,(Q2-C2-D2),""),"")
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

+ 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. Help hide my #N/A error!
    By EXCEL?? in forum Excel General
    Replies: 4
    Last Post: 04-19-2012, 06:20 PM
  2. [SOLVED] Hide the Div/0 error?
    By Vermilion in forum Excel General
    Replies: 10
    Last Post: 04-11-2012, 11:17 AM
  3. hide #N/A error
    By tsioumiou in forum Excel General
    Replies: 7
    Last Post: 05-13-2010, 08:02 PM
  4. Hide #Value! when error
    By AmazingTrans in forum Excel General
    Replies: 5
    Last Post: 03-23-2009, 03:29 AM
  5. 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