• Value# error (2000)

    • This topic has 4 replies, 3 voices, and was last updated 19 years ago.
    Author
    Topic
    #1771713

    =IF(VALUE(X25=0),””,(E25+F25+G25+H25)*200000)/X25
    I get an error as the result of the formula shown. X25 contains another formula and it’s value is 0. I tried ISERROR but I can’t get it to work. TIA….

    Viewing 1 reply thread
    Author
    Replies
    • #1816199

      The /X25 is outside the IF function, so you always divide by X25 even if it is 0. Try

      =IF(X25=0,””,(E25+F25+G25+H25)*200000/X25)

      or if X25 contains text values that look like numbers:

      =IF(VALUE(X25)=0,””,(E25+F25+G25+H25)*200000/X25)

    • #1816201

      =IF(N(X25),(SUM(E25:H25)*200000)/X25,””)

    Viewing 1 reply thread
    Reply To: Value# error (2000)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: