It is the 1 dimensional array I'm using but that code did not add the ranged values to an array that I can call each value one by one. Let me try to explain it further;
Dims:
In column D I have a vertical series of numbers (over 10,000) which are the output values of my function. I used
to assign them to the variable "D_Range".
In column O I have another vertical series of input numbers and I used
to assign them to the variable "O_Range".
I used
to find out how many inputs my function will have and assign them to the value n for my For Loop's counting purposes.
I then use a For Loop to input all the numbers into the array "O_Array" to be called one by one.
I take those "O_Array" values and use them in this loop
where it takes the first "O_Array" value, enters it into my function and repopulates the D column values. U_Max finds the highest of the D column values and assigns it to the array "U_Max_Array."
I then call the "U_Max_Array" values to be output into another column with another loop.
There's nothing wrong per say with this code other than it's really slow as it goes through over 30,000 numbers and calculations (It runs 3 times through functions). the parts slowing it down are primarily the array loops and if I can get rid of them by mass input/output of arrays I can significantly speed it up.
Bookmarks