How to hide rows in an excel sheet through Matlab by text name?

조회 수: 2 (최근 30일)
CD11
CD11 2020년 11월 28일
답변: Vimal Rathod 2020년 12월 1일
I am viewing an excel sheet through Matlab that has numeric data for various countries, with certain places (i.e. the US) having one row indicating total values for the entire country, and other rows with numeric data for each individual area (state, province, etc.) within the country. I am trying to sum up the values in this sheet for each location, so I only need to collect data on the total values for each country. If I need to call the rows by the country name and not the row positions (i.e. row 40-50) to hide them, how can I do that?
  댓글 수: 3
CD11
CD11 2020년 11월 28일
The file is very large so i'm not sure if I can paste it here, but basically the first column is "country," the second is "state" (if it has them), and all other 250+ columns have dates in the first row and values for virus cases in the other cells.

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

답변 (1개)

Vimal Rathod
Vimal Rathod 2020년 12월 1일
Hi,
It is difficult to use those commands from MATLAB alone. You would need to use ActiveX to use all commands of Excel VBA.
Refer to the following links to know more about it.
To know more about how to use ActiveX server commands refer the following link.

카테고리

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