I have a large spreadsheet with 15 columns of data and approx. 95000 rows of entries...
I have a loop that cycles through Columns 2 through 15 for each row and inserts data based on a DGET() function. I was curious if there is an performance difference between:
For r = 2 to ...
For c = 2 to ...
OR
For c = 2 to ...
For r = 2 to ...
I am trying to understand more about how loops work and wondered if there could potentially be a performance difference one way or the other, and under what circumstances would there be a performance difference..
Or since either way is dealing with the same number of cells, does it not matter what direction you loop through?
I have a loop that cycles through Columns 2 through 15 for each row and inserts data based on a DGET() function. I was curious if there is an performance difference between:
For r = 2 to ...
For c = 2 to ...
OR
For c = 2 to ...
For r = 2 to ...
I am trying to understand more about how loops work and wondered if there could potentially be a performance difference one way or the other, and under what circumstances would there be a performance difference..
Or since either way is dealing with the same number of cells, does it not matter what direction you loop through?