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 CenterFile Exchange에서 Spreadsheets에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by