Note: this formula is set to “approximate match”, so row values and column values must be sorted. To get the row and column numbers, we use MATCH, configured for approximate match, by setting the 3rd argument to 1 (TRUE): In the example, MATCH will return 2 when width is 290, and 3 when height is 300. In the end, the formula reduces to:

Dave Bruns

Hi - I’m Dave Bruns, and I run Exceljet with my wife, Lisa. Our goal is to help you work faster in Excel. We create short videos, and clear examples of formulas, functions, pivot tables, conditional formatting, and charts.