xlsfinfo
XLSFINFO Determine whether a file contains a spreadsheet (MATLAB compatible). [STATUS, SHEETS, FORMAT] = XLSFINFO (FILENAME) For .xls workbooks FORMAT is 'xlWorkbookNormal'. For .xlsx/.xlsm/.xltx/.xltm workbooks STATUS is 'Microsoft Excel Spreadsheet', SHEETS the cell array of worksheet names and FORMAT 'xlOpenXMLWorkbook' (or the macro-enabled / template variants). For any other file STATUS is '' and SHEETS is an empty cell array.