Effacer les filtres
Effacer les filtres

Finding Next Available Column in Excel

6 vues (au cours des 30 derniers jours)
John  Bowling
John Bowling le 9 Août 2016
Commenté : dpb le 9 Août 2016
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 commentaire
dpb
dpb le 9 Août 2016
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.

Connectez-vous pour commenter.

Réponses (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by