readtable error "Sheet name does not exist or is not supported"
39 ビュー (過去 30 日間)
古いコメントを表示
Hi,
I use readtable all the time but never had this error until today: "Sheet name does not exist or is not supported, To check if the sheet is supported, specify the sheet by its worksheet index." Here is the way I am using it:
a = readtable(filename, 'sheet', sheetname);
If I just do a = readtable(filename), there is no error and the output a is a table with the first sheet. If I use an index, it works as well:
a = readtable(filename, 'sheet', 1);
But I need to use sheetname in this case.
What is wrong here?
Thanks for any help!
2 件のコメント
Walter Roberson
2018 年 7 月 12 日
What is the name of the sheet in this case?
What does xlsinfo report as the available sheet names?
Meg Glade
2018 年 7 月 12 日
Do you mind sharing the exact call you are making to readtable (with filename and sheetname filled in)?
採用された回答
JFz
2018 年 7 月 12 日
1 件のコメント
honggildong
2021 年 6 月 30 日
I have the exact same issue. Could you maybe explain your solution further?
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Whos についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!