write data to excel (in a row without overwriting the other rows)
- November 4, 2015
- 2 replies
- 1599 views
Hello everyone,
I want to write data from Mathcad to an Exceldocument, where already data is saved.
The original data for example looks like this:

I want to overwrite the data in a special row. In the other rows, the data should not change. Below is my Mathcad file with 3 ways of writing data to Excel. The data should be written to the row with the number of the ID (here 3).

______________________________________________________________________________________________
The Variable k overwrite the first row, so this is wrong, see below.

________________________________________________________________________________________________
The Variable kk here gives the right solution, but only for ID=3, see below. So I find a third way, where I can change the ID. But if I have 1000 ID´s, this solution is very time-consuming.
Is there a better way to solve the problem?

Thank you
Stephan

