Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
In the function below I have a For-Next loop that loops though a range
of cells. Would it be any faster to read the range into an array and loop through the array? Function InvDistanceWtd(x, y, xdata as Range, ydata as Range, zdata as Range, power) N = Application.Count(xdata) For i = 1 To N D = Sqr((x - xdata(i, 1)) ^ 2 + (y - ydata(i, 1)) ^ 2) SumZoDn = SumZoDn + data(i, 1) / D ^ Power SumIDn = SumIDn + 1 / D ^ Power Next i InvDistanceWtd = SumZoDn / SumIDn End Function |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
can this be done faster? | Excel Discussion (Misc queries) | |||
Can faster CPU+larger/faster RAM significantly speed up recalulati | Excel Discussion (Misc queries) | |||
Is there a faster way | Excel Programming | |||
HELP!!!! Can't stop a loop (NOT an infinite loop) | Excel Programming | |||
Which one is faster? | Excel Programming |