Guest_imported
New member
- Jan 1, 1970
- 0
I can't seem to compile the following line, as I have "" within the formula - does any one know how to get round this?
Range("L5".Formula = "=IF(G6="KO","*",IF(AND(G6="RKO",F6="C",ABS(I6-E6)*(K6/I6),IF(G6="OT",K6,IF(AND(G6="RKO",F6="P",ABS(H6-E6)*(K6/H6),IF(AND(G6="RKI",F6="C",ABS(I6-E6)*(K6/I6),IF(G6="OT",L6,IF(AND(G6="RKI",F6="P",ABS(H6-E6)*(K6/H6),0)))))))"
Range("L5".Formula = "=IF(G6="KO","*",IF(AND(G6="RKO",F6="C",ABS(I6-E6)*(K6/I6),IF(G6="OT",K6,IF(AND(G6="RKO",F6="P",ABS(H6-E6)*(K6/H6),IF(AND(G6="RKI",F6="C",ABS(I6-E6)*(K6/I6),IF(G6="OT",L6,IF(AND(G6="RKI",F6="P",ABS(H6-E6)*(K6/H6),0)))))))"