Hello,
I receive daily spreadsheets that contain both a column displaying latitudes and a column displaying the corresponding longitudes. However, due to the precision of the GPS instruments, there are often duplicate values, see below.
I'm looking to create a VBA script that searches the latitude and longitude column for duplicates, then adds or subtracts a number to the end from said duplicate in order to create a unique value. They are always 8 decimals.
These values are consecutive so the trend line is always going to move in the same direction. In the case of the Latitudes in the example above, the column 3 latitude would be decreased by .00000001 in order to create a unique value as that's the way the trend is going.
If anyone could help me out with this they would be a life saver and save me so much time.
Thanks!
I receive daily spreadsheets that contain both a column displaying latitudes and a column displaying the corresponding longitudes. However, due to the precision of the GPS instruments, there are often duplicate values, see below.
ID | Latitude | Longitude |
1 | 41.01289749 | -92.48545074 |
2 | 41.01290894 | -92.48544312 |
3 | 41.01290894 | -92.48544312 |
4 | 41.01291656 | -92.48544312 |
I'm looking to create a VBA script that searches the latitude and longitude column for duplicates, then adds or subtracts a number to the end from said duplicate in order to create a unique value. They are always 8 decimals.
These values are consecutive so the trend line is always going to move in the same direction. In the case of the Latitudes in the example above, the column 3 latitude would be decreased by .00000001 in order to create a unique value as that's the way the trend is going.
If anyone could help me out with this they would be a life saver and save me so much time.
Thanks!