+ Reply to Thread
Results 1 to 7 of 7

INDEX and MATCH help

  1. #1
    Registered User
    Join Date
    05-30-2012
    Location
    Illinois
    MS-Off Ver
    2007
    Posts
    5

    INDEX and MATCH help

    Hello everyone, I am having a little trouble getting the INDEX and MATCH functions to work together. I am using an input in cell B6 that is going to reference an array in G1:G10. However I want it to choose the highest number in the array and VLOOKUP is giving me the smaller of the two numbers. So I decided to use the INDEX and MATCH functions. It works when I input

    =INDEX(G1:G10,MATCH(B6,G1:G10,1)) But this gives me the lower number. When I input

    =INDEX(G1:G10,MATCH(B6,G1:G10,-1)) it gives me #N/A

    Here is the column of numbers I am using.

    0.2500
    0.3125
    0.3750
    0.4375
    0.5000
    0.6250
    0.7500
    0.8750
    1.0000
    1.2500


    If anyone could point out my error I would be very appreciative.

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

    Re: INDEX and MATCH help

    You get better help if you post an Excel-example of your workbook, without confidential information.
    Make sure the workbook demonstrates your desired results if possible, or just highlight the cells you're trying to fix.
    Use BEFORE/AFTER sheets if that helps make it clearer.
    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.

  3. #3
    Registered User
    Join Date
    05-30-2012
    Location
    Illinois
    MS-Off Ver
    2007
    Posts
    5

    Re: INDEX and MATCH help

    I am attaching a copy of the Sheet I am working on.
    Attached Files Attached Files

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

    Re: INDEX and MATCH help

    Maybe like this (see the yellow cell).

    Please reply if this is what youre up to.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    04-20-2012
    Location
    New York, NY
    MS-Off Ver
    Excel 2013, 2010, 2007, 2003
    Posts
    99

    Re: INDEX and MATCH help

    I'm not quite sure what you're trying to achieve, the highest number in your array is 1.2500 regardless of what your match criteria is. Usually INDEX and MATCH is used to facilitate a look up in a multiple column array, can you explain your problem further?
    SPARTAN
    Please click the * if my solution helped

  6. #6
    Registered User
    Join Date
    05-30-2012
    Location
    Illinois
    MS-Off Ver
    2007
    Posts
    5

    Re: INDEX and MATCH help

    Quote Originally Posted by singerj6 View Post
    I'm not quite sure what you're trying to achieve, the highest number in your array is 1.2500 regardless of what your match criteria is. Usually INDEX and MATCH is used to facilitate a look up in a multiple column array, can you explain your problem further?

    I am calculating the thickness of a plate and for engineering purposes we would need to select the next highest available thickness. So I have a calculated thickness of 0.347, so I need to choose the 3/8" thick plate not the 5/16". My problem is when I use VLOOKUP it gives me the 5/16" value instead of the 3/8" when I use the approximation match.

    ---------- Post added at 09:14 AM ---------- Previous post was at 09:09 AM ----------

    Quote Originally Posted by oeldere View Post
    Maybe like this (see the yellow cell).

    Please reply if this is what youre up to.

    Yes that seems to have solved my problem. What is the purpose of the additional "+1"?

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

    Re: INDEX and MATCH help

    match(B6,G1:G10,1) finds the row

    You want 1 row below the given answer (above)

    So you need to count +1 to get what you want to achieve.

+ 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