Results 1 to 4 of 4

Thread: Help Needed for The Formula Using IFERROR, IF, MIN, ect.

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2014
    Posts
    4

    Help Needed for The Formula Using IFERROR, IF, MIN, ect.

    Hi,

    I got an error message when I try to fix a problem I had.

    Sometimes the MIN could be negative, which mess up the values MAX - MIN. I tried to add the IF to fix it, but somehow it did not work.

    And the one I had is pasted below.

    PHP Code:
     ActiveCell.FormulaR1C1 _
            
    "=iferror(1/(MAX(RC[-" PWYears "]:RC[-5])-if(MIN(RC[-" PWYears "]:RC[-5])>0,MIN(RC[-" PWYears "]:RC[-5]),-MIN(RC[-" PWYears "]:RC[-5])))/AVERAGE(R4C2:R" IHeight "C" PWYears ")*10,100000)" 
    Thanks,

    Matt

  2. #2
    Super Moderator dday9's Avatar
    Join Date
    Mar 2011
    Posts
    12,371

    Re: Help Needed for The Formula Using IFERROR, IF, MIN, ect.

    Moved to office development where VBA questions go.
    "Code is like humor. When you have to explain it, it is bad." - Cory House
    VbLessons | HtmlLessons | CssLessons | Code Tags | Sword of Fury - Jameram

  3. #3

    Thread Starter
    New Member
    Join Date
    Sep 2014
    Posts
    4

    Re: Help Needed for The Formula Using IFERROR, IF, MIN, ect.

    Thanks.

    I figured it out.

  4. #4
    Super Moderator dday9's Avatar
    Join Date
    Mar 2011
    Posts
    12,371

    Re: Help Needed for The Formula Using IFERROR, IF, MIN, ect.

    Would you mind posting the solution so that others that visit the thread knows what to do?
    "Code is like humor. When you have to explain it, it is bad." - Cory House
    VbLessons | HtmlLessons | CssLessons | Code Tags | Sword of Fury - Jameram

Tags for this Thread

Posting Permissions

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



Click Here to Expand Forum to Full Width