+ Reply to Thread
Results 1 to 6 of 6

Need to extract specific XYZ coordinates from a dataset

  1. #1
    Registered User
    Join Date
    08-30-2012
    Location
    Portland, OR
    MS-Off Ver
    Excel 2007
    Posts
    3

    Need to extract specific XYZ coordinates from a dataset

    Each of these records are geographic coordinates. Each point has its own unique X,Y, and Z values. There should not be any duplicate values. I need to extract the record with the highest Z value AND the highest X value. I also need the record with the lowest Z value AND the highest X value. Any ideas?
    Attached Files Attached Files

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Need to extract specific XYZ coordinates from a dataset

    what takes priority?there are no pairs that are the max of both x and z for example
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    08-30-2012
    Location
    Portland, OR
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Need to extract specific XYZ coordinates from a dataset

    There is no priority. Max function does not help with this problem as far as I can tell. I think a search array function with logical conditions is necessary but idk the code for that.

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Need to extract specific XYZ coordinates from a dataset

    Sort by columns A and C descending. The topmost row has the largest x value, and the largest z value having that x value.

    I expect that's not what you want, though, so you need to do some more 'splainin'.
    Entia non sunt multiplicanda sine necessitate

  5. #5
    Registered User
    Join Date
    08-30-2012
    Location
    Portland, OR
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Need to extract specific XYZ coordinates from a dataset

    Sorting does not give me the highest Z and X value... The coordinates are a LiDAR point cloud cluster for a powerline tower. For each tower in an alignment I should logically be able to select the point that is the highest (Z) and the farthest (+X) away from the ground or base of the tower.

  6. #6
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Need to extract specific XYZ coordinates from a dataset

    Please define "highest Z and X value"

    Given this data set, what row is the "highest Z and X value"

    0, 1, 1
    1, 1, 0
    1, 0, -1
    2, 1, -1
    -1, 3, 2
    the point that is the highest (Z) and the farthest (+X) away
    One problem is that the highest Z might not be the furthest X. How would you compare two X,Z pairs to determine which is highest/furthest?

    Possibly, what you could do is add a helper column with =SUMSQ(A2,C2) and sort on that column.
    Last edited by mikerickson; 09-02-2012 at 03:01 PM.
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

+ 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