Microsoft Excel: Difference between revisions
Jump to navigation
Jump to search
Line 17: | Line 17: | ||
CSV 檔案 (測試的 Excel 版本: Excel 2015 on {{Win}}、LibreOffice Calc v. 5.4.3.2 on {{Win}}) | CSV 檔案 (測試的 Excel 版本: Excel 2015 on {{Win}}、LibreOffice Calc v. 5.4.3.2 on {{Win}}) | ||
* | * 欄位間隔符號 {{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}} 點選兩下檔案直接開啟,不會看到中文變成亂碼,而且不同欄位不會擠到同一個欄位 (儲存格) | ** {{Gd}} 使用 Excel on {{Win}} 點選兩下檔案直接開啟,不會看到中文變成亂碼,而且不同欄位不會擠到同一個欄位 (儲存格) | ||
** 使用 LibreOffice Calc on {{Win}} 直接開啟檔案,會看到「文字匯入」對話視窗,需要調整字元集「Unicode (UTF-8)」,分隔符號則已經勾選「逗號」,即可順利匯入資料 | ** 使用 LibreOffice Calc on {{Win}} 直接開啟檔案,會看到「文字匯入」對話視窗,需要調整字元集「Unicode (UTF-8)」,分隔符號則已經勾選「逗號」,即可順利匯入資料 | ||
** 使用 Excel on {{Mac}} 直接開啟,會看到中文變成亂碼,需要改用匯入外部資料方式 | ** 使用 Excel on {{Mac}} 直接開啟,會看到中文變成亂碼,需要改用匯入外部資料方式 | ||
* | * 欄位間隔符號 {{kbd | key = ,}} 、UTF-8 編碼、沒有 BOM → | ||
** 使用 Excel on {{Win}} 點選兩下檔案直接開啟,會看到中文變成亂碼,需要改用匯入外部資料方式 | ** 使用 Excel on {{Win}} 點選兩下檔案直接開啟,會看到中文變成亂碼,需要改用匯入外部資料方式 | ||
** 使用 LibreOffice Calc on {{Win}} 直接開啟檔案,會看到「文字匯入」對話視窗,字元集正確偵測是「Unicode (UTF-8)」,分隔符號則已經勾選「逗號」,即可順利匯入資料 | ** 使用 LibreOffice Calc on {{Win}} 直接開啟檔案,會看到「文字匯入」對話視窗,字元集正確偵測是「Unicode (UTF-8)」,分隔符號則已經勾選「逗號」,即可順利匯入資料 | ||
** 使用 Excel on {{Mac}} 直接開啟,會看到中文變成亂碼,需要改用匯入外部資料方式 | ** 使用 Excel on {{Mac}} 直接開啟,會看到中文變成亂碼,需要改用匯入外部資料方式 | ||
* | * 欄位間隔符號 {{kbd | key = TAB}} 、UTF-8 編碼、'''有''' BOM → | ||
** 使用 Excel on {{Win}} 點選兩下檔案直接開啟,不會看到中文變成亂碼,但是不同欄位擠到同一個欄位 (儲存格) | ** 使用 Excel on {{Win}} 點選兩下檔案直接開啟,不會看到中文變成亂碼,但是不同欄位擠到同一個欄位 (儲存格) | ||
** 使用 LibreOffice Calc on {{Win}} 直接開啟檔案,會看到「文字匯入」對話視窗,需要調整字元集「Unicode (UTF-8)」,分隔符號則已經勾選「定位鍵」,即可順利匯入資料 | ** 使用 LibreOffice Calc on {{Win}} 直接開啟檔案,會看到「文字匯入」對話視窗,需要調整字元集「Unicode (UTF-8)」,分隔符號則已經勾選「定位鍵」,即可順利匯入資料 | ||
** 使用 Excel on {{Mac}} 直接開啟,會看到中文變成亂碼,需要改用匯入外部資料方式 | ** 使用 Excel on {{Mac}} 直接開啟,會看到中文變成亂碼,需要改用匯入外部資料方式 | ||
* | * 欄位間隔符號 {{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 on {{Win}} 點選兩下檔案直接開啟,會看到中文變成亂碼,需要改用匯入外部資料方式 | ||
** 使用 LibreOffice Calc on {{Win}} 直接開啟檔案,會看到「文字匯入」對話視窗,字元集正確偵測是「Unicode (UTF-8)」,分隔符號則已經勾選「定位鍵」,即可順利匯入資料 | ** 使用 LibreOffice Calc on {{Win}} 直接開啟檔案,會看到「文字匯入」對話視窗,字元集正確偵測是「Unicode (UTF-8)」,分隔符號則已經勾選「定位鍵」,即可順利匯入資料 |
Revision as of 14:57, 9 January 2018
Export MySQL query to Excel file
Export MySQL query to Excel file
Export CSV from EXCEL
建議使用 LibreOffice Calc (LibreOffice Portable) 開啟 Excel 檔案,匯出 UTF-8 編碼的 CSV 檔案
- 雖然 Excel 本身也有提供匯出 「Unicode 文字 (*.txt)」,但是因為無法設定使用雙引號框住欄位值。會造成後續匯入檔案容易出問題。
- Excel 本身提供匯出「CSV (逗號分隔) (*.csv)」是 Big5/ANSI 編碼,遇到 Unicode 文字會變成問號。
Import CSV to EXCEL
- 匯入或匯出文字檔案 - Excel 支援 Unicode 編碼 Win
- 欄位內容分隔符號 " (雙引號); 欄位分隔符號 , 不可夾雜空白。Unicode 檔案需要檔案有 BOM,這樣才能點選兩下 CSV,Excel 開啟時沒有問題。 (Excel 2007) Win
- 解決CSV檔亂碼 (Microsoft Excel 2007 或 OpenOffice.org 3.2) Win
- Mac Office Excel 匯入中文 CSV 檔案 (Microsoft Excel for Mac 2011) Mac
- 雖然 CSV 欄位已經用雙引號區隔,但是如果欄位裡面也有包含雙引號,匯入到 Excel,會導致欄位錯誤的問題。解法1: 原始資料的雙引號改成單引號、解法2: 不用 Excel ,改用 LibreOffice Calc
CSV 檔案 (測試的 Excel 版本: Excel 2015 on Win 、LibreOffice Calc v. 5.4.3.2 on Win )
- 欄位間隔符號 , 、UTF-8 編碼、有 BOM[1] →
- 欄位間隔符號 , 、UTF-8 編碼、沒有 BOM →
- 欄位間隔符號 TAB 、UTF-8 編碼、有 BOM →
- 欄位間隔符號 TAB 、UTF-8 編碼、沒有 BOM (byte-order mark) →
Import XLS to MySQL
- Toad for MySQL Freeware v7 32 bit 匯入 xls 檔案時,軟體視窗凍結沒有反應
- Excel2MySQL v 2.6.3 匯入後發現有掉資料
- $ Navicat for MySQL | MySQL 資料庫管理和開發工具
Batch convert TXT/CSV to EXCEL
原始檔案: 欄位值用雙引號框起來(enclosure)、不同欄位資料用定位鍵 Tab 間隔、檔案編碼 UTF8 沒有 BOM
"column_1" \t "column_2" \t "column_3"
批次轉檔的方案比較
- $ Advanced CSV Converter v 5.55 ok
- 轉檔時可以選擇 UTF-8 編碼,輸出的中文 Excel 不會亂碼。
- 但是不能辨識欄位值前後的雙引號 符號,所以原始檔案需要先去除欄位值前後的雙引號 符號。
- 試用版只能匯出 50 筆資料。
- ConvertXLS v. 8.54 中文亂碼
- Bytescout Spreadsheet Tools v. 1.10.0.21 中文亂碼
- Google 雲端硬碟 上傳 CSV 檔前,要勾選「轉換上傳檔案 -- 將已上傳的檔案轉換成 Google 文件編輯器格式」。上傳後,再下載會變成 Excel 格式。 [Last visited: 2016-12-30]
Copy & Paste
from spreadsheet application to another spreadsheet application
- Microsoft Excel --> Google Spreadsheet:
- columns & rows: Copy & Paste is ok
- Plain text --> Google Spreadsheet: ok
- columns: Tab separated columns --> Google Spreadsheet: ok
- rows: Enter separated rows --> Google Spreadsheet: ok
- Plain text --> Microsoft Excel: ok
- columns: Tab separated columns --> Microsoft Excel: ok
- rows: Enter separated rows --> Microsoft Excel: ok
- Microsoft Excel --> Table of Google Document:
- columns & rows: Copy & Paste is ok
- Plain text --> Table of Google Document: fail Suggest you copy to Microsoft Excel first and then copy paste to Google Document from Microsoft Excel.
- columns: Tab separated columns --> Table of Google Document: fail
- rows: Enter separated rows --> Table of Google Document: fail
- Plain text --> Microsoft Excel: ok
- columns: Tab separated columns --> Microsoft Excel: ok
- rows: Enter separated rows --> Microsoft Excel: ok
- How-to Create and Copy a Table in Google Mail (Gmail) from Excel - YouTube
further reading
from spreadsheet application to editor application
- Copy the table from Gmail/HTML ...
- Paste to MS Excel: the border line of table is missing
- Paste to MS Word: the border line of table is exists after posted
- Copy the table from MS Excel ...
- Paste to Gmail: the border line of table is missing
- Paste to MS Word: the border line of table is exists after posted
- Copy the table from MS Word ...
- Paste to Gmail: the border line of table is exists after posted
- Paste to MS Word: the border line of table is exists after posted
Google spreadsheet
利用Google spreadsheet的函式,分析及統計可複選的問卷題目結果。
Excel 「樞紐分析表(Pivot Tables)」
區塊「Σ 值」的「計數 - 欄位名稱」(該欄位的項目個數),除非是沒有填入任何資料的「空值」,否則都會被計算加 1。包含
- 邏輯值 TRUE、FALSE、字串、數值、錯誤代碼 #NAME? 等資料,會被列入計算加 1
- IF 回傳的空值,也會被列入計算加 1 version: Excel 2013
Excel 儲存格格式轉換
- 通用格式的年份,改成時間格式的年份:
- 法1: 將 2010 改成 2010/01/01 ,再利用 YEAR 函數擷取出年份
- 法2: 將 2010 改成 2010/01/01 ,再利用 Tableau$ 轉換成年份 walk around approach!
Troubleshooting of Excel errors
Excel 效能議題
- 資料筆數大量時的替代方案
- 如果 Excel 資料筆數約百萬筆,操作速度約耗費數小時,可改用資料庫。資料庫資料處理後,再輸出成 Excel 檔,而不要在 Excel 檔上面進行資料處理或換算。
- 如果要刪除符合特定條件約一萬筆的資料列太慢時。改成將篩選出符合另一條件的資料列,再複製貼上到新的工作表,會比較快。如果直接複製貼上也花超過5分鐘時間,可以選擇直接貼上值。
- 降低資料處理複雜度
- 全選工作表儲存格資料,複製後,選擇性貼上值到空白工作表。因為移除公式,所以另一工作表的操作速度會加快。 需要注意時間格式的數值會跑掉,變成一長串數字,需要額外設定儲存格格式成時間格式。
- 多重篩選條件會使用比較多的系統資源,在不使用篩選條件下,改成使用函數處理,會比較快。
- 電腦效能
- 軟體從 32位元 升級為 64位元版本,能較有效率使用記憶體。 e.g. Choose between the 64-bit or 32-bit version of Office - Office Support
- 關閉沒有在使用的 Excel 檔案,節省電腦效能
不同試算表方案的工作表或儲存格的大小限制
Microsoft Excel (XLS or XLSX) & OpenDocument Spreadsheet (ODS) file limits
Merge data from different files
Merge multiple CSV / Text files by using Windows command (命令提示字元)[2]
- copy *.csv bundle.csv for different CSV files
- copy *.txt bundle.txt for different Text files
Merge Excel worksheets (copy data from multiple worksheets into one workbook)
相關新聞聯播
Excel OR Spreadsheet OR 資料科學 相關新聞聯播 |
---|
Failed to load RSS feed from https://news.google.com/news/rss/search/section/q/Excel%20OR%20Spreadsheet%20OR%20%E8%B3%87%E6%96%99%E7%A7%91%E5%AD%B8/Excel%20OR%20Spreadsheet%20OR%20%E8%B3%87%E6%96%99%E7%A7%91%E5%AD%B8?hl=zh-TW&gl=TW&ned=tw: Error parsing XML for RSS
|
Powered by Google News |
references
Troubleshooting of ...
- PHP, cUrl, Python, selenium, HTTP status code errors
- Database: SQL syntax debug, MySQL errors, MySQLTuner errors or PostgreSQL errors
- HTML/Javascript: Troubleshooting of javascript, XPath
- Software: Mediawiki, Docker, FTP problems, online conference software
- Test connectivity for the web service, Web Ping, Network problem, Web user behavior, Web scrape troubleshooting
Template