檔案是舊版 .xls 時
要點
- 開啟
- 重新儲存
You want to turn an old-format .xls file into an HTML or Markdown table. Convert an Excel Table to HTML or Markdown targets .xlsx files. A .xls file as it is may not be usable.
Supported formats
- Supported: .xlsx
- Not supported: .xls (old format)
How to turn .xls into .xlsx
- Open the .xls file in Excel.
- Choose "Save As".
- Set the file type to "Excel Workbook (.xlsx)" and save.
- Open the saved .xlsx in this tool.
Changing only the extension doesn't work. Always re-save in Excel.
Notes when re-saving
- Keep the original .xls file as it is
- Macros aren't stored in .xlsx
- After saving, check that the table content is correct
Other methods
- You can also select the table, copy it and paste directly into a web page or document (though formatting can get mixed in)
- You can also save as CSV and use a conversion tool from CSV
For other formats
- .xlsm (with macros): re-save as .xlsx, then use.
- Google Sheets: download in Excel format, then use.
適合
- Putting tables from old material on the web
- Turning old system output into documentation
示例
Wanted to put a 5-year-old .xls price list on the site. Re-saved as .xlsx in Excel, turned it into an HTML table with this tool and pasted it.
Common stumbling blocks
- "Cannot read" appears: may be .xls or a broken file.
- Garbled text: re-saving sometimes fixes it.
Frequently asked questions
Can I just rename the extension to .xlsx?
No. The internal format differs, so it won't work.
小結
For .xls, re-save as .xlsx in Excel first.
使用「把 Excel 表格轉換成 HTML 或 Markdown」(免費)搭配使用的工具
- 把 Excel 轉換成 CSV 或 JSON:把 Excel 工作表轉換成 CSV、TSV 或 JSON。
- 把 Word 轉換成 HTML:把 Word 的文字轉換成 HTML。
- CSV 與 JSON 互相轉換:立即在 CSV 和 JSON 之間互相轉換。