+ Reply to Thread
Results 1 to 6 of 6

#value error in formula

  1. #1
    Forum Contributor
    Join Date
    06-27-2014
    Location
    bristol, england
    MS-Off Ver
    excel 2007
    Posts
    264

    #value error in formula

    hi all i have the below formula in cell H15, which converts a user entry in H12, at the moment when cell H12 has no data entered the #value error appears in cell H15, i know you can use IFERROR to hide this, but where would i put it in the formula so the cell H15 is blank until data is entered in cell H12
    Please Login or Register  to view this content.
    thanks

    Scouse13

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: #value error in formula

    Are you sure H12 is completely empty?

    When I try that formula in H15 with H12 blank it returns 0 not #VALUE!.
    If posting code please use code tags, see here.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,941

    Re: #value error in formula

    Try this:

    =IF(H12="","",IF(Data!L$9=0,IF(L15=0,0,ROUND($H12/((ROUND((1.0001506*J15)-0.0012202,Data!$H$5))*L15),0)),IF(Data!L$9>0,IF(N15=0,0,ROUND($H12/N15,0)))))
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

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

    Re: #value error in formula

    As Ali has shown, sometimes it's better to test specifically for what causes your error (H12 being blank)

    But to use iferror instead, quoting your question
    but where would i put it in the formula
    You don't put it (iferror) in your existing formula...
    Instead, you put your existing formula in IFERROR.

    =IFERROR(yourexistingformula,"")

    The disadvantage (or advantage depending on your point of view) of using iferror instead of what Ali did is that IFERROR will trap ALL errors, not just specifically the one caused when H12 is blank. That may or may not be a good thing.

  5. #5
    Forum Contributor
    Join Date
    06-27-2014
    Location
    bristol, england
    MS-Off Ver
    excel 2007
    Posts
    264

    Re: #value error in formula

    Quote Originally Posted by AliGW View Post
    Try this:

    =IF(H12="","",IF(Data!L$9=0,IF(L15=0,0,ROUND($H12/((ROUND((1.0001506*J15)-0.0012202,Data!$H$5))*L15),0)),IF(Data!L$9>0,IF(N15=0,0,ROUND($H12/N15,0)))))
    thaNks AliGW works a treat

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,941

    Re: #value error in formula

    You’re welcome!

+ 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] FORMULA Remove #NUM error not using IFERROR OR IS ERROR
    By JEAN1972 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-03-2017, 04:22 PM
  2. Formula error or data link error
    By sctr in forum Excel General
    Replies: 4
    Last Post: 09-19-2016, 09:15 AM
  3. [SOLVED] Inputbox error message. Formula you typed contains an error.
    By maacmaac in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 07-09-2013, 02:25 PM
  4. Excel 2007 : Formula error:bring up an #VALUE! Error.
    By burner007 in forum Excel General
    Replies: 3
    Last Post: 06-20-2011, 06:10 AM
  5. Formula Error-Error Message
    By Paige in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-25-2006, 04:15 PM
  6. Replies: 4
    Last Post: 03-24-2006, 07:20 AM
  7. [SOLVED] Error values:DIV/0! error in SumProduct formula with no division
    By Jerry W. Lewis in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-06-2005, 07:05 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