Editing
Microsoft Excel
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Import CSV to EXCEL == * [http://office.microsoft.com/zh-tw/excel-help/HP010099725.aspx 匯入或匯出文字檔案 - Excel] 支援 Unicode 編碼 {{Win}} 圖形教學: [https://www.managertoday.com.tw/articles/view/55615 Excel打開是亂碼?教你換一個「開啟方式」,瞬間找回所有資料|經理人] * 欄位內容分隔符號 " (雙引號); 欄位分隔符號 , 不可夾雜空白。Unicode 檔案需要檔案有 BOM,這樣才能點選兩下 CSV,Excel 開啟時沒有問題。 (Excel 2007) {{Win}} * [http://errerrors.blogspot.com/2010/10/csv-microsoft-excel-2007-openofficeorg.html 解決CSV檔亂碼 (Microsoft Excel 2007 或 OpenOffice.org 3.2)] {{Win}} * [https://errerrors.blogspot.com/2019/01/fix-garbled-text-after-import-csv-on-mac-excel.html 解決 Mac 系統匯入中文 CSV 檔案遇到亂碼問題 (Excel on Mac 版本 16.20, Office 365)] {{Mac}} * [http://errerrors.blogspot.com/2014/05/mac-office-excel-csv-microsoft-excel.html Mac Office Excel 匯入中文 CSV 檔案 (Microsoft Excel for Mac 2011)] {{Mac}} * [https://errerrors.blogspot.com/2018/10/import-csv-file-on-mac-libreoffice.html 解決 MAC 電腦匯入中文 CSV 檔案遇到亂碼問題 (LibreOffice v. 6.1.2.1)] {{Mac}} * 雖然 CSV 欄位已經用雙引號區隔,但是如果欄位裡面也有包含雙引號,匯入到 Excel,會導致欄位錯誤的問題。解法1: 原始資料的雙引號改成單引號、解法2: 不用 Excel ,改用 [http://www.libreoffice.org/discover/calc/ LibreOffice Calc] === 讓 CSV 可以方便讓 Excel 直接開啟 === CSV 檔案 (測試的 Excel 版本: Excel 2016 on {{Win}}、LibreOffice Calc v. 5.4.3.2 on {{Win}}、Excel for {{Mac}} 2011 v. 14.7.7) * 欄位間隔符號 {{kbd | key = ,}} 、UTF-8 編碼、'''有''' BOM<ref>[https://stackoverflow.com/questions/3127436/adding-bom-to-utf-8-files utf 8 - Adding BOM to UTF-8 files - Stack Overflow]</ref> → ** {{Gd}} 使用 Excel on {{Win}} 點選兩下檔案直接開啟,不會看到中文變成亂碼,而且不同欄位不會擠到同一個欄位 (儲存格) (測試版本:Excel 2016 on {{Win}}) ** 使用 LibreOffice Calc on {{Win}} 直接開啟檔案,會看到「文字匯入」對話視窗,需要調整字元集「Unicode (UTF-8)」,分隔符號則已經勾選「逗號」,即可順利匯入資料 ** 使用 Excel on {{Mac}} 直接開啟,會看到中文變成亂碼,需要改用匯入外部資料方式 Excel for (測試版本:{{Mac}} 2011 v. 14.7.7、Mac 版 Microsoft Excel 365 版本 16.49) * 欄位間隔符號 {{kbd | key = ,}} 、UTF-8 編碼、沒有 BOM → ** 使用 Excel on {{Win}} 點選兩下檔案直接開啟,會看到中文變成亂碼,需要改用匯入外部資料方式 (測試版本:Excel 2016 on {{Win}}) ** 使用 LibreOffice Calc on {{Win}} 直接開啟檔案,會看到「文字匯入」對話視窗,字元集正確偵測是「Unicode (UTF-8)」,分隔符號則已經勾選「逗號」,即可順利匯入資料 ** 使用 Excel on {{Mac}} 直接開啟,會看到中文變成亂碼,需要改用匯入外部資料方式 (測試版本:{{Mac}} 2011 v. 14.7.7、Mac 版 Microsoft Excel 365 版本 16.49) * 欄位間隔符號 {{kbd | key = TAB}} 、UTF-8 編碼、'''有''' BOM → ** 使用 Excel on {{Win}} 點選兩下檔案直接開啟,不會看到中文變成亂碼,但是不同欄位擠到同一個欄位 (儲存格) (測試版本:Excel 2016 on {{Win}}) ** 使用 LibreOffice Calc on {{Win}} 直接開啟檔案,會看到「文字匯入」對話視窗,需要調整字元集「Unicode (UTF-8)」,分隔符號則已經勾選「定位鍵」,即可順利匯入資料 ** 使用 Excel on {{Mac}} 直接開啟,會看到中文變成亂碼,需要改用匯入外部資料方式 (測試版本:{{Mac}} 2011 v. 14.7.7) * 欄位間隔符號 {{kbd | key = TAB}} 、UTF-8 編碼、沒有 [https://zh.wikipedia.org/wiki/%E4%BD%8D%E5%85%83%E7%B5%84%E9%A0%86%E5%BA%8F%E8%A8%98%E8%99%9F BOM] (byte-order mark) → ** 使用 Excel on {{Win}} 點選兩下檔案直接開啟,會看到中文變成亂碼,需要改用匯入外部資料方式 (測試版本:Excel 2016 on {{Win}}) ** 使用 LibreOffice Calc on {{Win}} 直接開啟檔案,會看到「文字匯入」對話視窗,字元集正確偵測是「Unicode (UTF-8)」,分隔符號則已經勾選「定位鍵」,即可順利匯入資料 ** 使用 Excel on {{Mac}} 直接開啟,會看到中文變成亂碼,需要改用匯入外部資料方式 (測試版本:{{Mac}} 2011 v. 14.7.7) 相關文章 * [https://errerrors.blogspot.com/2021/06/how-to-fix-garbled-text-in-csv-file-opened-by-excel.html 不要把 CSV 轉成 Big5 編碼,怎樣正確解決 Excel 開 CSV 檔案遇到亂碼]
Summary:
Please note that all contributions to LemonWiki共筆 are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
LemonWiki:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Current events
Recent changes
Random page
Help
Categories
Tools
What links here
Related changes
Special pages
Page information