Skip to main content
1-Visitor
May 29, 2012 1:43 PM UTC
Question

Need Help writing a formula/equation to find a number in chart

I do not know if this is where I ask this/post this because I am new, however I have an excel chart in my Mathcad 15 equation sheet (I will convert it to a Mathcad table in alittle) and I want to create a for/while loop (or whatever) that can find an insulation type regarding a number that a previous equation spits out.

i.e.

Th = #

I want to then take this number and compare it to a chart that have insulation constants and have it spit out what insulation type is needed for the certain numbers.

Thank you, if you need more information I will glady supply it if needed.

23 replies

23-Emerald V
May 29, 2012 1:54 PM UTC

Kevin Price wrote:

I do not know if this is where I ask this/post this because I am new, however I have an excel chart in my Mathcad 15 equation sheet (I will convert it to a Mathcad table in alittle) and I want to create a for/while loop (or whatever) that can find an insulation type regarding a number that a previous equation spits out.

i.e.

Th = #

I want to then take this number and compare it to a chart that have insulation constants and have it spit out what insulation type is needed for the certain numbers.

Thank you, if you need more information I will glady supply it if needed.

Unfortunately, I can't see your Excel image for some reason. However, from the sound of it, you might want to use one or two of Mathcad's lookup functions: hlookup, vlookup, lookup and match.

Stuart

Translate
1-Visitor
May 29, 2012 1:59 PM UTC
Temperature Tolerance ClassMaximum Operation Temperature AllowedAllowable Temperature Rise at Full Load 1.0 Service Factor MotorAllowable Temperature Rise 1.15 Service Factor Motor
°C°F°C°C
A1052216070
B1302668090
F155311105115
H180356125135

Here is my table that I am trying to grab values from.

Translate
1-Visitor
May 29, 2012 2:22 PM UTC

StuartBruff if the values are not exactly like the values in the table like the temperature is 114.5 celsius however it fits for insulation A how would I do that.

Translate
23-Emerald V
May 29, 2012 4:54 PM UTC

Kevin Price wrote:

StuartBruff if the values are not exactly like the values in the table like the temperature is 114.5 celsius however it fits for insulation A how would I do that.

Hi Kevin,

I think you might want something like the attached. I've written a short function to basically hunt through the temperature column to find the 'correct' lower band limit and then return the Tolerance Class.

Stuart

Translate
1-Visitor
May 29, 2012 5:11 PM UTC

I used the str2arr function however its saying its not defined even though I put the data in the string before?

Translate
1-Visitor
May 29, 2012 6:46 PM UTC

I know there is an easier way via the table I have however I can not figure it out to save my life right now. please a Mathcad wizard, I am in need of help haha

Translate
1-Visitor
May 30, 2012 2:19 PM UTC

Thank you everyone for your help, here is my final calculation sheet that I used and derived your formulas to fit my need. If you have any questions or concerns please feel free to comment.

I can't express the how much help all of you gave

Calcs.png

Translate