DanCoyne
Structural
- Aug 25, 2013
- 3
Hi all, new to these forums, stumbled upon looking for MathCAD help.
I have tried a couple of things without success so far. I have a 7x2 table like so:
7.09 HA28
8.37 HA32
11.24 HA36
13.75 HA40
17.12 HA45
22.02 HA50
29.3 HA60
For a given value calculated elsewhere, I want to be able to compare that value with column 1 and find the first value that is greater than the given value and return the text in column two.
So for example:
Given Value:
r1: 12.5
Table finds 13.75 >= 12.5
Output:
HA40
I've looked at the lookup functions but am not sure if it is able to/how to compare numerical values that do not match (finding a value greater than) then output a string format? Also considered that the may be a loop involved somewhere..
I have done something similar in excel before but am fairly new to MathCAD.
Any help would be appreciated.
Thanks
I have tried a couple of things without success so far. I have a 7x2 table like so:
7.09 HA28
8.37 HA32
11.24 HA36
13.75 HA40
17.12 HA45
22.02 HA50
29.3 HA60
For a given value calculated elsewhere, I want to be able to compare that value with column 1 and find the first value that is greater than the given value and return the text in column two.
So for example:
Given Value:
r1: 12.5
Table finds 13.75 >= 12.5
Output:
HA40
I've looked at the lookup functions but am not sure if it is able to/how to compare numerical values that do not match (finding a value greater than) then output a string format? Also considered that the may be a loop involved somewhere..
I have done something similar in excel before but am fairly new to MathCAD.
Any help would be appreciated.
Thanks