• add error string to formula

    • This topic has 2 replies, 2 voices, and was last updated 14 years ago.
    Author
    Topic
    #476142

    My formula is:
    =AVERAGE(IF(($F$3:$F$100=”regular”)*ISNUMBER($E$3:$E$100),$E$3:$E$100))

    How do I add string return if error. I get #DIV/0! error if no entries in “E” associated with “F” [regular] and would like it to return a string message instead of this error. I have played with ISERROR, but not successfully, my syntax is awry somewhere.

    My attempt is: broken into 2 lines for forum
    =IF(ISERROR(AVERAGE(IF(($F$3:$F$100=”twin”)*ISNUMBER($E$3:$E$100),$E$3:$E$100))
    ,”string”,AVERAGE(IF(($F$3:$F$100=”twin”)*ISNUMBER($E$3:$E$100),$E$3:$E$100)))

    Viewing 1 reply thread
    Author
    Replies
    • #1276459

      It seems you are missing a parenthesis:
      =IF(ISERROR(AVERAGE(IF(($F$3:$F$100=”twin”)*ISNUMBER($E$3:$E$100),$E$3:$E$100))),”string”,AVERAGE(IF(($F$3:$F$100=”twin”)*ISNUMBER($E$3:$E$100),$E$3:$E$100)))

      Steve

    • #1276464

      sdckapr,
      Thanks.
      Ah, so close, yet so far.

    Viewing 1 reply thread
    Reply To: add error string to formula

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

    Your information: