What i'd like is that i can put in a excel formula a check to all parameters like this code below. The code runs without error if put it in a loop, but its slow and i have a small data-set (around 1500 records). what i have similar to this is a code that put "formula.local" values on a predefine table (so it auto-completes).
Bottom line i really need this code to runs faster... If there is a way to put it like a "local.formula", or even improve the code itself to run faster please let me know. If this is not clear please tell me and i'll try to explain better. Thanks.
If comp = "AC" Then
Cells(i, 77).Value = "AC"
GoTo nextrec
End If
If state = "idle" Then
If resp >= obj Then
'idle but already miss deadline
Cells(i, 77).Value = "idle miss"
Else
'idle but ok
Cells(i, 77).Value = "idle"
End If
Else
'ended
If resp >= obj Then
'ended miss deadline
Cells(i, 77).Value = "ended missed"
Else
'deadline ok
Cells(i, 77).Value = "ended ok"
End If
End If
IFin formula?End Ifway of doing it, it's justif....else...like the 2nd partstate,resp,obj? Where isnextrec?