+ Reply to Thread
Results 1 to 9 of 9

Matrix Lookup formula

Hybrid View

  1. #1
    Registered User
    Join Date
    08-30-2016
    Location
    USA
    MS-Off Ver
    2013
    Posts
    7

    Matrix Lookup formula

    What I am trying to do is choose a width and height. and populate with the number that is in the grid.

    so in one cell A4 X B3 and then populate B4 224 and then so on for all the cells




    Height 26 32 38 44 50 56 62 68 74 80 86 92 98 104 110 116 122
    27 224 276 328 380 431 483 535 587 638 690 742 794 845 897 949 10011052
    33 280 337 401 464 527 590 654 717 780 843 907 970 1033 1096 1160 1223 1286
    39 331 399 473 548 623 698 772 847 922 997 1071 1146 1221 1296 1370 1445 1520
    45 382 460 546 633 719 805 891 978 1064 1150 1236 1323 1409 1495 1581 1668 1754
    51 433 521 619 717 815 912 1010 1108 1206 1303 1401 1499 1597 1694 1792 1890 1988
    57 484 583 692 801 910 1020 1129 1238 1347 1457 1566 1675 1784 1894 2003 2112 2221
    63 535 644 765 886 1006 1127 1248 1369 1489 1610 1731 1852 1972 2093 2214 2335 2455
    69 586 705 838 970 1102 1234 1367 1499 1631 1763 1896 2028 2160 2292 2425 2557 2689
    75 636 767 910 1054 1198 1342 1485 1629 1773 1917 2060 2204 2348 2492 2635 2779 2923
    81 687 828 983 1139 1294 1449 1604 1760 1915 2070 2225 2381 2536 2691 2846 3002 3157
    87 738 889 1056 1223 1390 1556 1723 1890 2057 2223 2390 2557 2724 2890 3057 3224 3391
    99 840 1012 1202 1392 1581 1771 1961 2151 2340 2530 2720 2910 3099 3289 3479 3669 3858
    110 933 1124 1335 1546 1757 1968 2179 2389 2600 2811 3022 3233 3444 3654 3865 4076 4287
    122 1035 1247 1481 1715 1949 2182 2416 2650 2884 3118 3352 3585 3819 4053 4287 4521 4755
    Last edited by sweetlou26; 11-21-2016 at 06:24 PM. Reason: not appropriate thread

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,802

    Re: Help on a formula

    TRY

    =INDEX($B$2:$P$15,MATCH(X1,$A$2:$A$15,0),MATCH(Y1,$B$1:$P$1,0))

    x1= column A value (width)

    Y1=row 1 value (Height)

    I suggest you change title to something like "Matrix Lookup formula": "help" is forbidden!!!

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,653

    Re: Help on a formula

    Quote Originally Posted by JohnTopley View Post
    I suggest you change title to something like "Matrix Lookup formula": "help" is forbidden!!!
    "Help with Matrix Lookup Formula" would be perfectly fine. "Help" is not forbidden, but vague thread titles are not much use to anyone.
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  4. #4
    Registered User
    Join Date
    08-30-2016
    Location
    USA
    MS-Off Ver
    2013
    Posts
    7

    Re: Help on a formula

    thank you so much. and for the advice. I know better now.

    I think i still need a little help. If I send the excel spread sheet. It can be more self explanatory. Od if that isnt ok. I just need to know where to put the x and y
    Attached Files Attached Files

  5. #5
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,946

    Re: Help on a formula

    title updated
    Last edited by protonLeah; 11-21-2016 at 06:29 PM.
    Ben Van Johnson

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,802

    Re: Help on a formula

    Please change your title as requested.

  7. #7
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2503
    Posts
    13,713

    Re: Matrix Lookup formula

    Like JohnTopley's suggestion, copy this formula and paste into E22.
    Formula: copy to clipboard
    =INDEX($B$4:$R$17,MATCH(D22,$A$4:$A$17,0),MATCH(C22,$B$3:$R$3,0))
    Dave

  8. #8
    Registered User
    Join Date
    08-30-2016
    Location
    USA
    MS-Off Ver
    2013
    Posts
    7

    Re: Matrix Lookup formula

    You are awesome, it is almost there. now if I choose anything that is in between, is there a way for it to chose the next grid number up on the width and height. there is 6" in between each number. If I choose a number in between can it get rounded to the next number in the grid?

  9. #9
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2503
    Posts
    13,713

    Re: Matrix Lookup formula

    That formula was for exact matches.

    Try this. It does approximate matches which means the Heights and Widths must be sorted ascending.

    =INDEX($B$4:$R$17,MATCH(D22,$A$4:$A$17,1),MATCH(C22,$B$3:$R$3,1))

    If the Height you have is 40 inches it will return figures for 45 inches. Same for the Widths.

    Edit No it won't. It will return figures for 39 inches.

    If you want it to return figures for the 45 inch row array enter this formula
    Formula: copy to clipboard
    =INDEX($B$4:$R$17,MATCH(1,1/($A$4:$A$17>=D22),0),MATCH(1,1/($B$3:$R$3>=C22),0))
    If you aren’t familiar with array-entered formulas array enter means the formula must be committed from edit mode by simultaneously pressing and holding down Ctrl and Shift while hitting Enter.
    Last edited by FlameRetired; 11-22-2016 at 09:28 PM.

+ 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. Replies: 11
    Last Post: 06-06-2014, 03:34 PM
  2. how to hide formula in formula box, view lookup result in formula box?
    By vengatvj in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-14-2013, 04:06 PM

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