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
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