+ Reply to Thread
Results 1 to 15 of 15

Closest Match Cross Reference Table

  1. #1
    Forum Contributor
    Join Date
    08-19-2009
    Location
    Netherlands, Amsterdam
    MS-Off Ver
    Excel 2010
    Posts
    585

    Closest Match Cross Reference Table

    Afbeelding 1.gif

    Hello all,

    I'm trying to get the closest match from a cross reference table as the one above, but can't get it done.
    Any ideas?

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Closest Match Cross Reference Table

    In H5 cell
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Forum Contributor
    Join Date
    08-19-2009
    Location
    Netherlands, Amsterdam
    MS-Off Ver
    Excel 2010
    Posts
    585

    Re: Closest Match Cross Reference Table

    Thanks for trying but that didn't work

  4. #4
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Closest Match Cross Reference Table

    Hi Jonathan78

    Try the INDEX & MATCH:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Regards Kevin


    Merged Cells (They are the work of the devil!!!)

  5. #5
    Forum Contributor
    Join Date
    08-19-2009
    Location
    Netherlands, Amsterdam
    MS-Off Ver
    Excel 2010
    Posts
    585

    Re: Closest Match Cross Reference Table

    Hello Kevin,
    Thanks for helping.
    I tried that one already but it always returns the highest value.
    Changing the 1 to -1 always gives the lowest.
    I am looking for the closest

  6. #6
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Closest Match Cross Reference Table

    @Jonathan78,

    Post your file instead of an .gif file.

    Then we can test the formula.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  7. #7
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Closest Match Cross Reference Table

    Hi Jonathan78

    That gives me 36!

    Closest Match.PNG

  8. #8
    Forum Contributor
    Join Date
    08-19-2009
    Location
    Netherlands, Amsterdam
    MS-Off Ver
    Excel 2010
    Posts
    585

    Re: Closest Match Cross Reference Table

    Book1.xlsm

    Hello Kevin it does, but when I put 7550 in H2 it remains 36 iso changing to the nearest (42)

  9. #9
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Closest Match Cross Reference Table

    I used the orange cells as helpcells.

    The result is in the green cell.

    See the attached file.

    If the value is as close to both cells it takes the lowest value.
    Attached Files Attached Files

  10. #10
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Closest Match Cross Reference Table

    Quote Originally Posted by Jonathan78 View Post
    Thanks for trying but that didn't work
    Don't say something just like that, can you prove it?

  11. #11
    Forum Contributor
    Join Date
    08-19-2009
    Location
    Netherlands, Amsterdam
    MS-Off Ver
    Excel 2010
    Posts
    585

    Re: Closest Match Cross Reference Table

    Quote Originally Posted by :) Sixthsense :) View Post
    Don't say something just like that, can you prove it?
    It's the same as with, index match, it does not give the closest but the lowest value.

  12. #12
    Forum Contributor
    Join Date
    08-19-2009
    Location
    Netherlands, Amsterdam
    MS-Off Ver
    Excel 2010
    Posts
    585

    Re: Closest Match Cross Reference Table

    Quote Originally Posted by oeldere View Post
    I used the orange cells as helpcells.

    The result is in the green cell.

    See the attached file.

    If the value is as close to both cells it takes the lowest value.
    Hello oeldere,
    Thanks this one works.
    strange though that there is no simple solution for it in excel, without the use of helpcells.

  13. #13
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Closest Match Cross Reference Table

    Please Login or Register  to view this content.
    It can be done in 1 formula, but I think it's much easier to understand if you use (my) helpcells.

  14. #14
    Forum Contributor
    Join Date
    08-19-2009
    Location
    Netherlands, Amsterdam
    MS-Off Ver
    Excel 2010
    Posts
    585

    Re: Closest Match Cross Reference Table

    Quote Originally Posted by oeldere View Post

    It can be done in 1 formula, but I think it's much easier to understand if you use (my) helpcells.
    Many thanks for your help!

  15. #15
    Valued Forum Contributor
    Join Date
    10-29-2012
    Location
    Mojokerto,Indonesia
    MS-Off Ver
    Excel 2007
    Posts
    554

    Re: Closest Match Cross Reference Table

    try it
    =INDEX($C$3:$F$10;MATCH(H2;$B$3:$B$10);MATCH(H3;$C$2:$F$2))

+ 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