Data transfer from excel to excel

10 ビュー (過去 30 日間)
anu
anu 2015 年 3 月 12 日
コメント済み: anu 2015 年 3 月 13 日
Hello,
I have an excel workbook with 350 columns and 15 rows. I need to pick required columns ( for example col 1:5, 80: 82, 234:268 and all the rows. Then, I need to write that into a new excel. Any help is greatly appreciated.
Thanks in advance.

採用された回答

Image Analyst
Image Analyst 2015 年 3 月 12 日
Try something like this (untested)
[~,~,raw] = xlsread(oldFileName);
columns = [1:5, 80: 82, 234:268];
output = raw(:, columns); % Extract only the columns we want.
xlswrite(newFileName, output);
  1 件のコメント
anu
anu 2015 年 3 月 13 日
Thanks a lot for your help

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

その他の回答 (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