Here's how I did it. I'm sure that it can be done without the intermediate step of pulling out that specific row but I'm drawing a blank.
1. Arraigning your table. To get this to work properly, the table needs to read decreasing distances from left to right.
2. I set up your inputs B1 = Amps, B2 = Distance, Table is from A5:K30
3. I pulled out the appropriate AMP Row in A32:K32 as follows
A32 = B1
B32 dragged right =
=INDEX($B$6:$K$30,MATCH(A32,A6:A30,0),COLUMN(A1))
Now instead of a multirow table to extract from, you have a single row.
4. In B3, the calculation for wire gauge
=IF(ISERROR(MATCH(B2,B32:K32,-1)),"Outside Range",INDEX($B$5:$K$5,1,MATCH(B2,B32:K32,-1)))
If your outside an allowable range, you'll get "Outside Range"
See attachment and run a few inputs and see if that would work for you.
Bookmarks