cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X

Importing Data in to Excel

ross52
1-Visitor

Importing Data in to Excel

I am currently running a Mathcad program in controlled loops and exporting the resulting data in to an Excel file. My problem is this; each time Mathcad goes through the loop, it overwrites the data from the previous loop. This is a an issue considering I need the data from all 24 loops. I would like to know if there is a way to capture the output from each loop of calculations and save the data in Excel in: 1. Different File Names, 2. Different Sheets of that File, 3. Different Ranges of that File. Either one of the three mentioned ways is acceptable.

Thank You

ACCEPTED SOLUTION

Accepted Solutions

Another example for you. Not as clever, but does do the job.

Mike

View solution in original post

14 REPLIES 14

Yes, this can be done. Can you upload the worksheet containing the loop?

Mike

I am actually not allowed to upload the file. Is it necessary to have the file, or is there a generic way to do this?

Well I'm not sure how your trying to do it or how you have set your loop up.

You could post an example.

Nevertheless I will post the Excel component.

I couldn't get you an example program, but here is a document with a flow chart of what the program essentially looks like.

Looking at the Word document, can't you just pass the whole Matrix to Excel in one go?

Why don't you post the loop with none sensitive data included?

Mike

What version of Mathcad and Office are you running?

Mike

I am using Mathcad 15.0.

ross52
1-Visitor
(To:ross52)

And Microsoft Office 2007.

Try the attached file. Description included.

Mike

Another example for you. Not as clever, but does do the job.

Mike

VladimirN
24-Ruby II
(To:ross52)

In this case need to see worksheet. Can you upload them?

In this case need to see worksheet. Can you upload them?

Amber has already stated that a worksheet cannot be uploaded because of confidentiality, but I do agree that this is a case where a dummy worksheet should have been created and posted.

The way the thread has run thus far will be of no benefit to new forum members.

Mike

I apologize for not being able to upload the original or a dummy worksheet. But my question was indeed answered by your suggestions and the program is up and running. Thank you for all your help!

I apologize for not being able to upload the original or a dummy worksheet. But my question was indeed answered by your suggestions and the program is up and running. Thank you for all your help!

No problem at all, I'm glad you've found your solution.

Mike

Announcements

Top Tags