Microsoft Excel: Difference between revisions

From LemonWiki共筆
Jump to navigation Jump to search
(+ php library)
Line 139: Line 139:
** Paste to Gmail: the border line of table is exists after posted
** 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
** Paste to MS Word: the border line of table is exists after posted
== Excel online viewer ==
[https://onedrive.live.com/about/zh-tw/ Microsoft OneDrive] {{access | date=2020-03-10}}
* file limit: 5MB<ref>[https://support.office.com/zh-TW/client/results?Shownav=true&lcid=1028&ns=XLWAEndUser&version=15&omkt=zh-TW&ver=15&apps=WDWAENDUSER%2CXLWAENDUSER%2CPPWAENDUSER%2CONWAENDUSER&HelpID=BIGWORKBOOK 支援 - Office.com]</ref>
[https://www.google.com/drive/ Google drive]
* file limit: "Up to 5 million cells or 18,278 columns (column ZZZ) for spreadsheets that are created in or converted to Google Sheets."<ref>[https://support.google.com/drive/answer/37603?hl=en Files you can store in Google Drive - Google Drive Help]</ref>


== Google spreadsheet ==
== Google spreadsheet ==
利用[[Google spreadsheet]]的函式,分析及統計可複選的問卷題目結果。
利用[[Google spreadsheet]]的函式,分析及統計可複選的問卷題目結果。


== Excel 「樞紐分析表(Pivot Tables)」==
== Excel 「樞紐分析表(Pivot Tables)」==

Revision as of 10:33, 13 March 2020

Export MySQL query to Excel file

Export MySQL query to Excel file

Export CSV from EXCEL

Excel 檔案,匯出 UTF-8 編碼的 CSV 檔案

軟體 操作方式 輸出 CSV 檔案格式
LibreOffice Calc (LibreOffice Portable) 版本 6.2.4.2 檔案 -> 另存新檔 -> 存檔類型:文字 CSV (.csv) -> 字元集:Unicode (UTF-8) Good.gif UTF-8 編碼 不帶簽名(BOM)
LibreOffice Calc (LibreOffice Portable) 版本 6.2.4.2 檔案 -> 另存新檔 -> 存檔類型:文字 CSV (.csv) -> 字元集:正體中文 (Big5) Big5 編碼
Google 雲端硬碟 檔案 -> 下載 -> 逗號分隔值檔案 (.csv,目前工作表) Good.gif UTF-8 編碼 不帶簽名(BOM)
Microsoft Excel on Mac icon_os_mac.png 版本 16.33 檔案 -> 另存新檔 -> 檔案格式:CSV UTF-8 逗號分隔(.csv) UTF-8 編碼,帶簽名(BOM)
Microsoft Excel on Mac icon_os_mac.png 版本 16.32 檔案 -> 另存新檔 -> 檔案格式:逗號分隔值 (.csv) Big5 編碼
Microsoft Office 2016 on Win Os windows.png 檔案 -> 另存新檔 -> (選擇存檔位置) -> 存檔類型:CSV 逗號分隔 (.csv) Big5 編碼

Import CSV to EXCEL

讓 CSV 可以方便讓 Excel 直接開啟

CSV 檔案 (測試的 Excel 版本: Excel 2015 on Win Os windows.png 、LibreOffice Calc v. 5.4.3.2 on Win Os windows.png 、Excel for Mac icon_os_mac.png 2011 v. 14.7.7)

  • 欄位間隔符號 , 、UTF-8 編碼、 BOM[1]
    • Good.gif 使用 Excel on Win Os windows.png 點選兩下檔案直接開啟,不會看到中文變成亂碼,而且不同欄位不會擠到同一個欄位 (儲存格)
    • 使用 LibreOffice Calc on Win Os windows.png 直接開啟檔案,會看到「文字匯入」對話視窗,需要調整字元集「Unicode (UTF-8)」,分隔符號則已經勾選「逗號」,即可順利匯入資料
    • 使用 Excel on Mac icon_os_mac.png 直接開啟,會看到中文變成亂碼,需要改用匯入外部資料方式
  • 欄位間隔符號 , 、UTF-8 編碼、沒有 BOM →
    • 使用 Excel on Win Os windows.png 點選兩下檔案直接開啟,會看到中文變成亂碼,需要改用匯入外部資料方式
    • 使用 LibreOffice Calc on Win Os windows.png 直接開啟檔案,會看到「文字匯入」對話視窗,字元集正確偵測是「Unicode (UTF-8)」,分隔符號則已經勾選「逗號」,即可順利匯入資料
    • 使用 Excel on Mac icon_os_mac.png 直接開啟,會看到中文變成亂碼,需要改用匯入外部資料方式
  • 欄位間隔符號 TAB 、UTF-8 編碼、 BOM →
    • 使用 Excel on Win Os windows.png 點選兩下檔案直接開啟,不會看到中文變成亂碼,但是不同欄位擠到同一個欄位 (儲存格)
    • 使用 LibreOffice Calc on Win Os windows.png 直接開啟檔案,會看到「文字匯入」對話視窗,需要調整字元集「Unicode (UTF-8)」,分隔符號則已經勾選「定位鍵」,即可順利匯入資料
    • 使用 Excel on Mac icon_os_mac.png 直接開啟,會看到中文變成亂碼,需要改用匯入外部資料方式
  • 欄位間隔符號 TAB 、UTF-8 編碼、沒有 BOM (byte-order mark) →
    • 使用 Excel on Win Os windows.png 點選兩下檔案直接開啟,會看到中文變成亂碼,需要改用匯入外部資料方式
    • 使用 LibreOffice Calc on Win Os windows.png 直接開啟檔案,會看到「文字匯入」對話視窗,字元集正確偵測是「Unicode (UTF-8)」,分隔符號則已經勾選「定位鍵」,即可順利匯入資料
    • 使用 Excel on Mac icon_os_mac.png 直接開啟,會看到中文變成亂碼,需要改用匯入外部資料方式

Import XLS to MySQL

Batch convert TXT/CSV to EXCEL

原始檔案: 欄位值用雙引號框起來(enclosure)、不同欄位資料用定位鍵 Tab 間隔、檔案編碼 UTF8 沒有 BOM

"column_1" \t "column_2" \t "column_3"

批次轉檔的方案比較

  1. Good.gif $ Advanced CSV Converter v 5.55 ok
    • 轉檔時可以選擇 UTF-8 編碼,輸出的中文 Excel 不會亂碼。
    • 但是不能辨識欄位值前後的雙引號 符號,所以原始檔案需要先去除欄位值前後的雙引號 符號。
    • 試用版只能匯出 50 筆資料。
  2. ConvertXLS v. 8.54 中文亂碼 Icon_exclaim.gif
  3. Bytescout Spreadsheet Tools v. 1.10.0.21 中文亂碼 Icon_exclaim.gif
  4. 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 Icon_exclaim.gif 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 Icon_exclaim.gif
    • 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 Icon_exclaim.gif
    • 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

Excel online viewer

Microsoft OneDrive [Last visited: 2020-03-10]

  • file limit: 5MB[2]

Google drive

  • file limit: "Up to 5 million cells or 18,278 columns (column ZZZ) for spreadsheets that are created in or converted to Google Sheets."[3]

Google spreadsheet

利用Google spreadsheet的函式,分析及統計可複選的問卷題目結果。

Excel 「樞紐分析表(Pivot Tables)」

區塊「Σ 值」的「計數 - 欄位名稱」(該欄位的項目個數),除非是沒有填入任何資料的「空值」,否則都會被計算加 1。包含

  • 邏輯值 TRUEFALSE、字串、數值、錯誤代碼 #NAME? 等資料,會被列入計算加 1
  • IF 回傳的空值,也會被列入計算加 1 Icon_exclaim.gif version: Excel 2013

Checking of data type

儲存格資料類型檢查與類型轉換

數字

時間

時間: 年份

  • 預期: 可以「從最舊到最新排序」、「從最新到最舊排序」。
  • 異常: 如果是「從 A 到 Z 排序」、「從 Z 到 A 排序」,需要將通用格式的年份,改成時間格式的年份:
    • 法1: 將 2010 改成 2010/01/01 ,再利用 YEAR 函數擷取出年份
    • 法2: 將 2010 改成 2010/01/01 ,再利用 Tableau$ 轉換成年份 Icon_exclaim.gif walk around approach!

Troubleshooting of Excel errors

Excel 效能議題

  • 資料筆數大量時的替代方案
    • 如果 Excel 資料筆數約百萬筆,操作速度約耗費數小時,可改用資料庫。資料庫資料處理後,再輸出成 Excel 檔,而不要在 Excel 檔上面進行資料處理或換算。
    • 如果要刪除符合特定條件約一萬筆的資料列太慢時。改成將篩選出符合另一條件的資料列,再複製貼上到新的工作表,會比較快。如果直接複製貼上也花超過5分鐘時間,可以選擇直接貼上值。
  • 降低資料處理複雜度
    • 全選工作表儲存格資料,複製後,選擇性貼上值到空白工作表。因為移除公式,所以另一工作表的操作速度會加快。 Icon_exclaim.gif 需要注意時間格式的數值會跑掉,變成一長串數字,需要額外設定儲存格格式成時間格式。
    • 多重篩選條件會使用比較多的系統資源,在不使用篩選條件下,改成使用函數處理,會比較快。
  • 電腦效能

不同試算表方案的工作表或儲存格的大小限制

Microsoft Excel (XLS or XLSX) & OpenDocument Spreadsheet (ODS) file limits

Merge data from different files

Merge multiple CSV / Text files by using Windows command (命令提示字元)[4]

  • 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)

PHP libraby

相關新聞聯播

Excel OR Spreadsheet OR 資料科學 相關新聞聯播
耍心機?鎖同事工作EXCEL報表公式:就不想分享 難道不可以? - 聯合新聞網
VLOOKUP 用法教學|Excel 函數公式怎麼用?一範例快速應用 - 經理人
影/超閒!女主播花費9小時實測「Excel有幾列」 專家一秒得出結果 - Yahoo奇摩新聞
開發者將GPT-2模型直接塞進單一Excel表格中,檔案體積達1.25GB、免連網直接執行AI生成任務 - T客邦 Techbang
微軟終於允許Excel用戶調整自動轉換功能,可以不再自動將連續字母與數字轉成日期 - iThome Online
Excel不只是辦公工具,竟還有一場「電競比賽」!Excel世界錦標賽在比什麼? - 數位時代
2023 年Excel 世界電競賽落幕,澳洲數據分析專家倪安德蟬聯冠軍 - TechNews 科技新報
Excel技巧|教你2種累計加總技巧,讓你快速掌握銷售趨勢|小資女の職場生存之道 - 方格子 - 方格子
2024 Excel辦公室實用技巧|5個必學秘技:表格轉向、建立選單等 - 香港01
Excel超快做表格靠它!微軟、亞馬遜與谷歌3大AI誰最強? - 遠見雜誌
Excel最多有幾行?女主播9小時「狂按↓鍵」內行竟1秒找到 - Yahoo奇摩新聞
Excel 高效小訣竅|快速選取儲存格、修正錯誤 - 經理人
Excel技巧|高手都在用,利用Ctrl+G 技巧,讓工作效率輕鬆翻倍|小資女の職場生存之道 - 方格子 - 方格子
Excel甘特圖怎麼畫?用內建圖表完成「甘特圖範例」!簡單 4 步驟,讓專案排程一目瞭然 - 經理人
Excel最多有幾列?女主播花9小時實測網友1秒就給答案 - Yahoo奇摩新聞
Excel超實用快捷鍵大全!Ctrl快捷鍵讓你工作效率翻倍|小資女の職場生存之道 - 方格子 - 方格子
頂尖工作者的PPT、Excel 祕訣!除了快速鍵,還有15 個高效小訣竅 - 經理人
Excel 打開是亂碼?換「開啟方式」找回CSV 檔案資料 - 經理人
Excel 樞紐分析表教學|3步驟設定範圍,完成資料分析 - 經理人
3大Excel排序功能:輕鬆把資料分類!最常用的資料整理法 - 經理人
美國CISA示警Chrome 和Excel 最新漏洞 - 資安人科技網
50次相親都失敗!單身男自製「相親Excel表」曝光審美標準引熱議 - Yahoo奇摩新聞
花9hr實測Excel總格數!女主播參加閒王比賽 - Yahoo奇摩新聞
微軟將在Excel加入Python支援,可用於預測分析、機器學習 - iThome Online
Excel教學技巧/利用「自訂檢視模式」為試算表操作建立「儲存點」,下次可直接切換顯示回先前設定狀態 - T客邦 Techbang
微軟Excel 引進Python 語言,執行進階分析、資料視覺化 - TechNews 科技新報
高材生不會Excel「學校都不教?」 她崩潰問想放生 - Yahoo奇摩新聞
Excel技巧|一鍵快速設定儲存格格式,讓你工作更輕鬆|小資女の職場生存之道 - 方格子 - 方格子
他傻眼公司前輩「不會用Excel」!一票人喊正常:學校沒教 - Yahoo奇摩新聞
真的太閒!女主播9小時實測「Excel最多有幾列」 內行人:快捷鍵1秒解答 | 財經 | CTWANT - CTWANT
新人是高材生「不會用Word、Excel」 她愣:學校沒教?一票搖頭 - ETtoday財經雲
Excel教學技巧/善用 Excel 資料驗證功能,每月花費若超過上限可自動跳出提示訊息 - T客邦 Techbang

Powered by Google News

references


Troubleshooting of ...

Template