+ Reply to Thread
Results 1 to 2 of 2

Placing coordinates to which grid it belongs (Combining IF with HLOOKUP or Index Match)

  1. #1
    Registered User
    Join Date
    07-13-2021
    Location
    Enschede, Netherlands
    MS-Off Ver
    16.0.14131.20278
    Posts
    1

    Placing coordinates to which grid it belongs (Combining IF with HLOOKUP or Index Match)

    I have a set of data of coordinates X, Y, Z (Column A, B, C). They are located on a surface with grids consisting of 26 cells. I also have the information of those grids (Xc, Yc, Zc are the centre point of those grids, and X1 until Z2 are the corner points of them). (See attachment)

    For each point, I want the columns D, E, F to return the value of Xc, Yc, Zc of the grid to which that point belongs to.
    In other words, D2 will search in column I horizontally where the value of A2 is between X1 and X2, B2 is between Y1 and Y2, and C3 is between Z1 and Z2.

    I tried writing the function below where it must fulfil those 3 conditions.

    Please Login or Register  to view this content.
    Here the function search only in Grid number 3 (because I manually know it belongs there). Therefore, it didn't search the set of Grid data. I know I should use either Hlookup or Index Match, but I just couldn't figure out where and how to put them.

    Please help.
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,986

    Re: Placing coordinates to which grid it belongs (Combining IF with HLOOKUP or Index Match

    Maybe this... copied across and down.


    =INDEX(I$2:I$27,MATCH(1,INDEX(($A2>=$L$2:$L$27)*($A2<=$M$2:$M$27)*($B2>=$N$2:$N$27)*($B2<=$O$2:$O$27)*($C2>=$P$2:$P$27)*($C2<=$Q$2:$Q$27),0),0))

    In NL, you may need to use ; instead of ,
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Placing an image with INDEX MATCH
    By LTSSB in forum Excel General
    Replies: 10
    Last Post: 03-13-2018, 05:26 PM
  2. Index/Match - Dynamic Index Range with Hlookup
    By WassimJMP in forum Excel General
    Replies: 3
    Last Post: 02-16-2016, 12:24 PM
  3. [SOLVED] Converting Hlookup to Index Match with variable column index number
    By SimonLock in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-09-2015, 09:14 AM
  4. need help using index/match to search grid
    By tsiguy96 in forum Excel General
    Replies: 2
    Last Post: 12-11-2013, 08:33 AM
  5. Using Index and Match to lookup a value in a grid
    By jcranst in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-05-2012, 01:01 PM
  6. Staffing Grid - Index Match Help
    By Justinmih in forum Excel General
    Replies: 0
    Last Post: 06-21-2010, 07:27 PM
  7. Combining index and hlookup?
    By thisiscrazy in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 04-21-2009, 05:33 PM

Tags for this Thread

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