+ Reply to Thread
Results 1 to 6 of 6

Min distance between one point and one range of point

  1. #1
    Registered User
    Join Date
    10-23-2011
    Location
    teh
    MS-Off Ver
    Excel 2010
    Posts
    4

    Min distance between one point and one range of point

    hi, i want to write a formula to find the closed point of one list to one specified point, attached file show my question solved whit spreed sheet, but i want to convert it to one formula (VBA). can every one help me?
    Attached Files Attached Files

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Min distance between one point and one range of point

    If you want to eliminate column G and use a single formula then try this "array formula"

    =MIN(TEXT(SQRT((D$3-A3:A500)^2+(E$3-B3:B500)^2+(F$3-C3:C500)^2),"[>0]General;99999")+0)

    confirmed with CTRL+SHIFT+ENTER
    Audere est facere

  3. #3
    Registered User
    Join Date
    10-23-2011
    Location
    teh
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Min distance between one point and one range of point

    oh my god! tank you man ) i don't know what is the array formula!!! but tanks a lot!

  4. #4
    Registered User
    Join Date
    10-23-2011
    Location
    teh
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Min distance between one point and one range of point

    but a minor question: i can't drag down this formula to apply to another row in blue color! (yes i add some another data below the blue column !) when i prefix reference in formula whit $ for drag down, it doesn't work

  5. #5
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Min distance between one point and one range of point

    An array formula is one that should be entered with Ctrl+Shift+Enter after putting your insertion point in the formula bar.
    The formula will then be delimited by braces. ( adding braces manually will NOT work)
    Any change in the formula requires you have to commit again with CSE

  6. #6
    Registered User
    Join Date
    10-23-2011
    Location
    teh
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Min distance between one point and one range of point

    i got it ! tanx

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1