+ Reply to Thread
Results 1 to 6 of 6

Return Upper Value from Matrix based on differing criteria

  1. #1
    Registered User
    Join Date
    08-02-2012
    Location
    Banbury
    MS-Off Ver
    Excel 2010
    Posts
    3

    Return Upper Value from Matrix based on differing criteria

    Good Morning, long time since I've been on this forum but I'm hoping someone might have an answer for me that I've not yet managed to think of.

    I have attached a simple matrix.

    The problem is quite a simple issue really...I have a matrix containing differing values. Based on the column and row values inputted, I need to return the upper value from the matrix.

    For example if the COLUMN value inputted is 450 then upper column value is 600, then if the ROW value inputted is 1250 then the upper row value is 1800. The two values of 600 and 1800 are then the coordinates used in the matrix to return the final result of 81.60

    I've successfully used a system of columns and nested IF formulas to return the result of 81.60, however I'd like to understand if there is a more straightforward method for returning the final value. Given that the manual process of looking up the final value is quite simple, I'm sure there must be a more simple method of pulling the final value in Excel using some clever formula.

    Any help would be very much appreciated. Thanks

    Capture.JPG

    Matrix Spreadsheet.xlsx

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,772

    Re: Return Upper Value from Matrix based on differing criteria

    Welcome to the forum.

    You could try this:

    =INDEX(OFFSET($C$3:$N$6,1,1),MATCH(B12,$B$3:$B$6,1),MATCH(B11,$C$2:$N$2,1))
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Valued Forum Contributor
    Join Date
    06-02-2012
    Location
    London, England
    MS-Off Ver
    365
    Posts
    397

    Re: Return Upper Value from Matrix based on differing criteria

    I would reverse the order of the table so 2600 is in C2 and 400 is in N2, 3000 is in B3 and 1200 is in B6, then use this:

    =IFERROR(INDEX(C3:N6,MATCH(B12,B3:B6,-1),MATCH(B11,C2:N2,-1)),"No match found")

    I had similar to Ali when I first looked at this however with that formula if you have a width of 400 and a drop of 1200 it returns 81.60 rather than 55.20.

    Beth.

  4. #4
    Registered User
    Join Date
    08-02-2012
    Location
    Banbury
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Return Upper Value from Matrix based on differing criteria

    Thank you both. This is good but I can't reverse the table (unfortunately). Is there any way the formula can be tinkered with so it returns correct value when the exact values are inputted e.g. 400x1200? Thanks in advance

  5. #5
    Valued Forum Contributor
    Join Date
    06-02-2012
    Location
    London, England
    MS-Off Ver
    365
    Posts
    397

    Re: Return Upper Value from Matrix based on differing criteria

    Change the -1s to 0s in the formula in post #3

    =IFERROR(INDEX(C3:N6,MATCH(B12,B3:B6,0),MATCH(B11,C2:N2,0)),"No match found")

    Or, if you cannot reverse the table then why not reverse it with formulas on a separate hidden sheet then reference it there with the formula in post #3?

    Beth.

  6. #6
    Registered User
    Join Date
    08-02-2012
    Location
    Banbury
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Return Upper Value from Matrix based on differing criteria

    Ah yes reversing using formulas should work - thanks again

+ 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. return unique values from matrix; matching a criteria
    By nielsb in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-01-2019, 11:59 PM
  2. SUMIF (Matrix) based on 3 criteria
    By alohadboy in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 07-18-2018, 01:09 PM
  3. Convert upper triangular half of matrix to column
    By gmperry in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-01-2015, 03:52 PM
  4. [SOLVED] Excel 2007 : Looking up a value in a matrix based on three criteria
    By maluktuk in forum Excel General
    Replies: 8
    Last Post: 05-09-2012, 11:12 AM
  5. [SOLVED] Return header based matrix
    By marreco in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-11-2012, 01:54 PM
  6. Min/Max of matrix based on criteria
    By mcrawford2010 in forum Excel General
    Replies: 6
    Last Post: 02-21-2011, 03:58 PM
  7. Lookup value in a Matrix based on Two A<x>B criteria
    By makeitcount in forum Excel General
    Replies: 2
    Last Post: 02-11-2010, 08:03 AM

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