vegard1992
New Member
- Joined
- Jan 31, 2019
- Messages
- 2
So here's the deal, I work for a company that does "floor lifting". I.e. when a house has sunk we come in and do measurements, and give people an estimate of what we can do, and a recommendation.
One way we collect measurements is by placing different height values at x, y locations in an excel file. To get a quick/rough estimate of how things look, we use an interpolation function. It takes the value of two cells and -- according to the distance of the current cell -- computes an interpolated value. Currently we are just doing a linear interpolation.
Thing is some of our projects involve larger buildings; with a great floor surface area. Copy+paste becomes a chore in this case.
Here is the function in its current state http://prntscr.com/mervhm
The first problem i ran into while dragging, was the original cell references changing.
Like so http://prntscr.com/merxe0 (every time you move a cell to the right, the reference moves a letter to the right)
A quick google showed that i could use absolute references to fix this. However, when i drag now, it just fills in the answer of the cell i've dragged from. I suspect "ActiveCell" is the culprit here, and i imagine it always references the cell that i "drag from".
Like so (code is the same, just using absolute references) http://prntscr.com/mery0j
This is where I defer to the sage advice of the mrexcel.com forums
Thank you for reading.![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
One way we collect measurements is by placing different height values at x, y locations in an excel file. To get a quick/rough estimate of how things look, we use an interpolation function. It takes the value of two cells and -- according to the distance of the current cell -- computes an interpolated value. Currently we are just doing a linear interpolation.
Thing is some of our projects involve larger buildings; with a great floor surface area. Copy+paste becomes a chore in this case.
Here is the function in its current state http://prntscr.com/mervhm
The first problem i ran into while dragging, was the original cell references changing.
Like so http://prntscr.com/merxe0 (every time you move a cell to the right, the reference moves a letter to the right)
A quick google showed that i could use absolute references to fix this. However, when i drag now, it just fills in the answer of the cell i've dragged from. I suspect "ActiveCell" is the culprit here, and i imagine it always references the cell that i "drag from".
Like so (code is the same, just using absolute references) http://prntscr.com/mery0j
This is where I defer to the sage advice of the mrexcel.com forums
Thank you for reading.