Vlookup distance

Marie81

New Member
Joined
Aug 21, 2017
Messages
7
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Location[/TD]
[TD]Easting[/TD]
[TD]Northing[/TD]
[TD]Distance[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]WAS001[/TD]
[TD]391428[/TD]
[TD]6470346[/TD]
[TD]8717.121[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]WAS002[/TD]
[TD]400141[/TD]
[TD]6470614[/TD]
[TD]0.000[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]WAS003[/TD]
[TD]402232[/TD]
[TD]6464061[/TD]
[TD]6878.524[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]WAS004[/TD]
[TD]394873[/TD]
[TD]6474455[/TD]
[TD]6461.184[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]WAS005[/TD]
[TD]393893[/TD]
[TD]6464097[/TD]
[TD]9028.222[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Surveyor location[/TD]
[TD]WAS001[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Closest SSM[/TD]
[TD]WAS003[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Distance[/TD]
[TD]?[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

Hi,

Can help on this. Lets say surveyor location is at WAS001, and the closest control point (SSM) is at WAS003. I'm trying to get the minimum distance between the surveyor and the closest SSM using vlookup. Any help on this for the formula.

Thank you.
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
C and D column is use for to find the distance between the location.

From WAS 002 to WAS 001 = SQRT((400141 - 391428)^2) + (6470614 - 6470346)^2))
 
Upvote 0
try


Excel 2012
BCDEF
1LocationEastingNorthingDistance
21WAS00139142864703468717.121
32WAS00240014164706140
43WAS00340223264640616878.524
54WAS00439487364744556461.184
65WAS00539389364640979028.222
7
8
9Surveyor locationWAS001
10Closest SSMWAS003
11Distance12499.11
Sheet3
Cell Formulas
RangeFormula
D11=((VLOOKUP(D9,$C$2:$F$6,2,0)-VLOOKUP(D10,$C$2:$F$6,2,0))^2+(VLOOKUP(D9,$C$2:$F$6,3,0)-VLOOKUP(D10,$C$2:$F$6,3,0))^2)^0.5
 
Last edited:
Upvote 0
If Surveyor location and SSM will be specified, then following should work:

=VLOOKUP(C9,B2:E6,4) - VLOOKUP(C10,B2:E6,4)

Is this what you are looking for?
 
Upvote 0

Similar threads

Forum statistics

Threads
1,223,911
Messages
6,175,324
Members
452,635
Latest member
laura12345

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top