Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Check

Status
Not open for further replies.

dik

Structural
Apr 13, 2001
25,582
CA
Came across this simple check for confirming compliance. Didn't take much to implement it. Can use variables to show Mf <= Mr, etc. I was looking at some means of displaying a message, and, I came across it in another *.pdf code and thought it would be easy to implement.



Dik
 
Replies continue below

Recommended for you

I installed SMath studio the other day, inspired a little by some of your opinions on it here. I'm still a bit of a Excel monkey though...

You can also do similar in Excel with named ranges, create a named range called OK or PASS or whatever you fancy, add whatever text you like in these cells for the displayed warning string. Do a similar one for NOT_OK or FAIL or whatever you like.

Then instead of having:-
=if(Mf<=Mr,"FAILS","PASS")

you can just have
=if(Mf<=Mr,NOT_OK,OK)
Your corresponding text string relating to the true/false condition will be displayed. It also has the beauty of using autocomplete while typing out formulas for the named ranges, so beats typing out similar strings all day long. As an added bonus adding conditional formatting like turning the cell red if its false is also pretty easy with a formula '=NOT_OK' as the conditional format, better than hard-coding the failure string into the conditional format.

Using this method you can change the pass/fail variable spreadsheet wide without the need to change each individual formula or conditional format that might contain text strings.
 
This functionality was available in Mathcad, but bringing it to my attention like you are, just encourages me to switch. Thanks!
BTW, in Excel I like using "conditional formatting" to highlight fields when they are "NOT OK". It's much easier to use since about 2010.

STF
 
Agent666: thanks for the info... didn't know about it.

SparWeb: Still use excel... I've hundreds of programs I've written in it. Used to use MathCAD, but, found the formatting difficult. As I use SMath, I'm finding it a lot easier, and am starting to do things that I wouldn't attempt in MathCAD or Excel.

Dik
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top