Skip to main content
1-Visitor
April 1, 2014
Solved

How to assign units to output of an excel component in MathCAD?

  • April 1, 2014
  • 1 reply
  • 8774 views

Just started MathCAD prime 2.0. Big change from MathCAD 15. Majority is unpleasant change. Anyways my questions below.

I have inserted a excel component in my MathCAD sheet.

1. The input into the excel component has units 'mm'. The value is 45 mm (Bolt dia). In the excel sheet it comes out as 0.045 automatically. Why is that so?

2. In the excel component there is a table and it does a VLOOKUP search in excel for the input given and returns the desired value. This value I have selected as a output of my excel component. The thing is that the output does not have any unit. But I want units of mm^2 (Bolt area) assigned to it. But for the life of me I am not able to do it. Each time I try to insert manually, MathCAD automatically makes it unitless by giving mm^2/m^2 result. Any help regarding this?

Thanking you all in advance.

Regards,

Debayan

Best answer by AndyWesterman

Hi,

I'm running Prime 2 & it seems to half-work...

Capture.PNG

the input strips the mm units out nicely, but although the scaling is working, the units seem to disappear???

Changing the A.si output to mm^2 gives:

Capture.PNG

Note: sometimes it flags the mm as a unit & most times not!

More proof that P2 is(was) a work in progress.

Looks like the output from the XL sheet has to be a number & add the scaling afterwards.

Capture.PNG

Regards

Andy

1 reply

1-Visitor
April 1, 2014

Please bear with Prime - it will come good in the end.

  1. Mathcad has converted the variable to the base SI unit , metres. You can divide the variable by mm and it will display correctly in the Excel component.
  2. You can muliply the right hand side of the output expression within the Excel component by the desired units.

Clipboard01.jpg

1-Visitor
April 1, 2014

Mike.

Thanks for your reply. But unfortunately your solution doesn't work in my MathCAD sheet (suprisingly!). I am attaching my MathCAD sheet below. Please take a look.

1-Visitor
April 1, 2014

I have Mathcad Prime 3.0 you see.

Seems to work for me.