Forum Discussion

pebbles1221's avatar
pebbles1221
Copper Contributor
Aug 19, 2019
Solved

Help with Excel Formula and table lookup

I need help with a formulae in the "Answer" cell that checks the Width Value and the Length Value against the table of values to the right. It should then bring back the correct value. I have added e...
  • Haytham Amairah's avatar
    Aug 19, 2019

    pebbles1221

     

    Hi,

     

    Try this formula:

    =INDEX(K4:Q9,
    IFNA(IF(OR(ISNUMBER(MATCH(B3,J4:J9,0)),B3>MAX(J4:J9)),MATCH(B3,J4:J9,1),MATCH(B3,J4:J9,1)+1),1),
    IFNA(IF(OR(ISNUMBER(MATCH(B2,K2:Q2,0)),B2>MAX(K2:Q2)),MATCH(B2,K2:Q2,1),MATCH(B2,K2:Q2,1)+1),1))

     

    Regards

Resources