Skip to main content
1-Visitor
September 27, 2014
Solved

append/excel

  • September 27, 2014
  • 4 replies
  • 4305 views

Hello,

My program calculates several series of input data. I want to store all the outputs in an excel file. Is there similar function to "Appendprn" for excel file?

Thank you.

Best answer by Werner_E

Look at the attached sheet.

Guess it should do the job.

4 replies

25-Diamond I
September 27, 2014

Lookup WRITEEXCEL in the hep.

1-Visitor
September 28, 2014

As Werner said lookup WRITEEXCEL and there are also loads of scripted components in forum which have been developed which do similar.

That's if you are not using Prime.

25-Diamond I
September 28, 2014

WRITEEXCEL supports OpenXML (*.xlsx) files.

Depending on your needs WRITECSV might be an option, too.

payman1-VisitorAuthor
1-Visitor
September 28, 2014

Thank you.

But it overwrites the previously calculated values.

25-Diamond I
September 28, 2014

PAYMAN RAJAI wrote:

Thank you.

But it overwrites the previously calculated values.

No, it doesn't. You decide where the data should be written. An Excel file is not a sequential data file, so there can't be that sort of append. You have to provide some sort of counter to be able to write the data at the correct position.

As an alternative you could read in the whole Excel file with READEXCEL in a Mathcad matrix, stack that matrix on top of the new data and write the new matrix with WRITEEXCEL at position A1.

1-Visitor
November 6, 2014

Link to Excel Inputs


Video Link : 5443

Output to Excel

Video Link : 5445

MathCad/Input file/ppt