Find row, find value, then return column heading

jimbrownle

New Member
Joined
May 19, 2011
Messages
2
I have the height and weight, and want to return the weight class (column header) from a height/weight table (example below). Weights are in a range, so for someone 63 inches, if they weight 115 lbs, I want to return Class A. For someone who is 64 inches 155 lbs, return Class C (or Class D - I can adjust the headers).

Ht .............Class A.......Class B..........Class C..........Class D
62" .............105 lbs ......125...............140...............165
63" .............110 ...........130...............142...............168
64" .............113 ...........135...............148................172

The actual data is a 17x25 array, so i don't think nested if/then will work.

The weight won't necessarily be an exact match, so I need it to pull the next highest value (or next lowest value - either will work) like a "True" statement in a vlookup.

I would prefer a formula solution if possible, because VB causes flags in our environment, but if VB is the only answer I will take it.

I'm 4 hrs into this and can't see line of sight to a solution, so any help would be appreciated.

Thanks,

-Jim
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
First I would make sure your tables values contain only numbers. If you want text do display with it, use number formatting

In other words for height, don't have 62" in the cell have 62 with a formatting of 0\"

Excel Workbook
ABCDEFGHI
1HtClass AClass BClass CClass DHeightWeightClass
262"10512514016562125Class B
363"110130142168
464"113135148172
Sheet1
 
Upvote 0

Forum statistics

Threads
1,214,848
Messages
6,121,914
Members
449,054
Latest member
luca142

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top