1) comment: calculations on full set of data for each point would take ages. Better approach could be dividing your data on subsets say 30 by 30 meters with 5 meters overlap and calculate the slopes for inner 20 by 20 meters part.
2) as a starting point for prepared subset (as you have shown in sample file) and following suggested algorithm could be:
Sub test()
Dim i As Long
Application.Calculation = xlCalculationManual
For i = 8 To Cells(8, "A").End(xlDown).Row
Range("C2:E2").Value = Cells(i, "C").Resize(1, 3).Value
ActiveSheet.Calculate
Sheets("Final Answer").Cells(i - 6, "D") = IIf(Range("I2") > Range("J2"), 100, 200)
Next i
Application.Calculation = xlCalculationAutomatic
End Sub
Make sure (I think it is not that way now) that formulas calculating distance take into account current row2 data, not point 0,0, nor row 8 data.
Bookmarks