Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
For Each Iter In Range("Opportunities")
Debug.Print Iter.Value If Iter.Value 0 Then Iter.Offset(0, 3).Value = "=P_Bar" 'This works, but I really want the VALUE, not the formula Debug.Print Iter.Offset(0, 3).Value, Iter.Value 'Error at following statement Iter.Offset(0, 5).Value = _ ([ Iter.Offset(0,3).value * (1 - Iter.Offset(0,3).value)] / Iter.Value) ^ (0.5) 'Sigma calculation Iter.Offset(0, 2).Value = Iter.Offset(0, 3).Value - 3 * Iter.Offset(0, 5).Value 'LCL Iter.Offset(0, 4).Value = Iter.Offset(0, 3).Value + 3 * Iter.Offset(0, 5).Value 'UCL Iter.Offset(0, 6).Value = _ (Iter.Offset(0, 1).Value - Range("P_Bar").Value) / Iter.Offset(0, 5) 'Zi calculation Else Iter.Offset(0, 5).FormulaR1C1 = "=NA()" 'Sigma calculation Iter.Offset(0, 2).FormulaR1C1 = "=NA()" 'LCL Calculation Iter.Offset(0, 3).FormulaR1C1 = "=NA()" 'CL Calculation Iter.Offset(0, 4).FormulaR1C1 = "=NA()" 'UCL Calculation Iter.Offset(0, 6).FormulaR1C1 = "=NA()" 'Zi Calculation End If Next Can someone assist? Thanks, Barb |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Formula Errors / #Value! | Excel Worksheet Functions | |||
Mod a Formula For Errors | Excel Worksheet Functions | |||
Formula errors | Excel Worksheet Functions | |||
Excel Throwing Circular Errors When No Errors Exist | Excel Worksheet Functions | |||
Unresolved Errors in IF Statements - Errors do not show in results | Excel Worksheet Functions |