Results 1 to 3 of 3
  1. #1
    3 Star Lounger
    Join Date
    Dec 2009
    Posts
    212
    Thanks
    36
    Thanked 0 Times in 0 Posts

    add error string to formula

    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")*ISNUMB ER($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)))

  2. #2
    WS Lounge VIP sdckapr's Avatar
    Join Date
    Jul 2002
    Location
    Pittsburgh, Pennsylvania, USA
    Posts
    11,225
    Thanks
    14
    Thanked 342 Times in 335 Posts
    It seems you are missing a parenthesis:
    =IF(ISERROR(AVERAGE(IF(($F$3:$F$100="twin")*ISNUMB ER($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

  3. The Following User Says Thank You to sdckapr For This Useful Post:

    skipro (2011-04-19)

  4. #3
    3 Star Lounger
    Join Date
    Dec 2009
    Posts
    212
    Thanks
    36
    Thanked 0 Times in 0 Posts
    sdckapr,
    Thanks.
    Ah, so close, yet so far.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •