フィルターのクリア

Add new data into existing excel file

35 ビュー (過去 30 日間)
Hazel Sialongo
Hazel Sialongo 2016 年 10 月 4 日
コメント済み: Cádmo Dias 2019 年 3 月 25 日
I have an existing excel file and I want to add new data in a new column. How will I do that?

採用された回答

Gareth Thomas
Gareth Thomas 2016 年 10 月 4 日
If you use xlswrite with this code it should work:
filename = 'testdata.xlsx';
A = {'Time','Temperature'; 12,98; 13,99; 14,97};
sheet = 2;
xlRange = 'E1';
xlswrite(filename,A,sheet,xlRange)
Notice how the xlRange shows the columns.
  2 件のコメント
Hazel Sialongo
Hazel Sialongo 2016 年 10 月 4 日
I want to happen is every time I click the save button it will automatically save the data in another column.
Cádmo Dias
Cádmo Dias 2019 年 3 月 25 日
First of all, thanks for your help,Gareth!
Hazel, I suggest to you increase the range, in "xlRange" variable, to change the column.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSpreadsheets についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by