readtable error "Sheet name does not exist or is not supported"
조회 수: 40 (최근 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!