Right now, I'm trying to use excel data of luminance across several ovoid pixels to obtain their width and heights at a subpixel level. I've got a setup in which I need to do the following for a massive quantity of data, where automated steps are currently in bold:
-Find all local mins and maxes in a slightly noisy normalized sine wave
-Combine mins and maxes to get midpoints
-Find two cells betwen the indexes of the current min and max which contain the midpoint between them
-copy that data, paste it into a simple formula which spits out the rounded value for where the midpoint would be at a sub-cell level, ie .42 cells after the 24th cell
-add that to the index of the cell where I got the first value (ie adds .42 to 24)
-copy that into a simple calc which subtracts the right cells from each other to get widths and heights and dumps them into another spreadsheet
The problem right now is that I'd really like to automate the process of copying the 24.42 value into a cell, but I need it to not overwrite the value before it. Is there a simple way to increment the index that it pastes to a lower cell each time it runs? My experience with excel and formulas is very high but my experience with macros is in its infancy, so bear that in mind. Thanks in advance
Bookmarks