|
-
Aug 10th, 2015, 03:37 PM
#1
Thread Starter
New Member
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 + 4 & "]:RC[-5])-if(MIN(RC[-" & PWYears + 4 & "]:RC[-5])>0,MIN(RC[-" & PWYears + 4 & "]:RC[-5]),-MIN(RC[-" & PWYears + 4 & "]:RC[-5])))/AVERAGE(R4C2:R" & IHeight & "C" & PWYears + 1 & ")*10,100000)"
Thanks,
Matt
-
Aug 10th, 2015, 03:42 PM
#2
Re: Help Needed for The Formula Using IFERROR, IF, MIN, ect.
Moved to office development where VBA questions go.
-
Aug 10th, 2015, 03:55 PM
#3
Thread Starter
New Member
Re: Help Needed for The Formula Using IFERROR, IF, MIN, ect.
Thanks.
I figured it out.
-
Aug 10th, 2015, 03:58 PM
#4
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?
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|