Finding Next Available Column in Excel

6 次查看(过去 30 天)
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 个)

标签

Community Treasure Hunt

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

Start Hunting!

Translated by