kamiltuncer
New Member
- Joined
- Jul 26, 2011
- Messages
- 2
Hello everybody
Consider I have something like attached.
What I need to do is; compare distances between A1-B1, A1-B2, A1-B3... etc. and match A1 with the closest one (in this case it is B1)
I have X-Y coordinates for all items here.
I attached a screenshot of a sample excel file to make it more explanatory.
I did this with calculating differences between X & Y coordinates and apply pythagoras theorem but the problem is I have to write very long formulas in each cell.
I believe very small VBA code can solve this but Im zero with VBA.
Can anybody help about this issue please
Dropbox - Untitled.png
Dropbox - Untitled2.png
Thanks
Consider I have something like attached.
What I need to do is; compare distances between A1-B1, A1-B2, A1-B3... etc. and match A1 with the closest one (in this case it is B1)
I have X-Y coordinates for all items here.
I attached a screenshot of a sample excel file to make it more explanatory.
I did this with calculating differences between X & Y coordinates and apply pythagoras theorem but the problem is I have to write very long formulas in each cell.
I believe very small VBA code can solve this but Im zero with VBA.
Can anybody help about this issue please
Dropbox - Untitled.png
Dropbox - Untitled2.png
Thanks
Last edited: