필터 지우기
필터 지우기

Finding Next Available Column in Excel

조회 수: 6 (최근 30일)
John  Bowling
John Bowling 2016년 8월 9일
댓글: dpb 2016년 8월 9일
I have written a program that exports data into excel, but currently overwrites what is currently in column A. I would like to write a program that is able to find the next available columns and export the data to that column. I have attached a screenshot. What the program needs to accomplish in this scenario is to see that column E contians the next available cells, and then export the data accordingly.
Thanks in advance,
John
  댓글 수: 1
dpb
dpb 2016년 8월 9일
This is an Excel question, not Matlab...see if there's a method that returns the info directly and use ActiveX to invoke it if so. If not, best I can think of directly from Matlab would be to read the data and see how big an array is returned...this only works if know the beginning column and there aren't empty columns...oh, you can use the optional 'raw' output that will return the actual info in cell array and search within it...
There is no Matlab method directly though, as noted its an Excel question if there is a way internally that you can query.

댓글을 달려면 로그인하십시오.

답변 (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