JuniorWoodchuck24
Registered User.
- Local time
- Today, 02:37
- Joined
- Jan 13, 2010
- Messages
- 59
Curious what the coding would look like for an equivalent to the "match" function in Excel. I have a table for MaximumAllowableStresses for metals, and based on what the user selects as a metal and temperature it looks up both in a table and gets the value needed. The table for MaximumAllowableStresses is:
ID Temperature 316L 304
1 500 10900 12900
2 450 11300 13350
and so forth. What I want the code to do is go in and find the temperature based on what the user inputs and finds the MAS for the metal.
User inputs 460 as temperature and 316L as metal: answer 10900
User inputs 450 as temperature and 304 as metal: answer 13350
Thanks,
ID Temperature 316L 304
1 500 10900 12900
2 450 11300 13350
and so forth. What I want the code to do is go in and find the temperature based on what the user inputs and finds the MAS for the metal.
User inputs 460 as temperature and 316L as metal: answer 10900
User inputs 450 as temperature and 304 as metal: answer 13350
Thanks,