Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

From Mathcad to Microsoft Excel

Status
Not open for further replies.

ginsoakedboy

Mechanical
Oct 14, 2004
157
Is there a way to import data (calculation results) from Mathcad into MS Excel? Please list the steps involved.

Please note: I am asking about getting information *into* Excel *from* Mathcad and not the other way around.
 
Replies continue below

Recommended for you

There's supposed to be an Mathcad add-in for Excel.

Other than that, you can write out a data file that's read in by Excel, I suppose.

TTFN

FAQ731-376
 
Choose Component from the Insert Menu. Select Microsoft Excel from the list. Then select "Create an empty Excel Worksheet". In the Excel Setup Wizard, enter the number of variables you want to transfer to Excel. In the table below, enter the cells the data will transfer to. You can change the number of transfers and the call addresses later. If you don't need to transfer data back to Mathcad, you may select 0 Outputs.

You'll want to strip the data of any units before the transfer. Also, if you have a lot of data, it is possible to transfer it as an an array of data.
 
You can also copy/paste, with one small quirk.

assuming you have a matrix called test, type

test =
highlight the rows/columns you want to copy
right click, and select "copy selection" (DON'T select "copy")
paste into excel normally.

Peter
 
For one-off copies, Peter's solution is easiest. Make sure that you format the results with enough decimals and a high enough exponential limit. What gets copied is what is displayed, not the underlying number.

Also, Ctrl-C does the same thing as Copy Selection.

You have to format matrix results as a table to select rows/columns instead of the whole matrix.
 
There is also a collab thread about pushing a value into a particular excel sheet cell. This can be used to drive external sheets that you are not allowed to modify.

I think Tom gutman wrote/documented it. It used a short VBscript function.

Philip
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor