Jump to content

Microsoft Excel: Difference between revisions

From LemonWiki共筆
m Text replacement - "errerrors.blogspot.tw" to "errerrors.blogspot.com"
Line 12: Line 12:
* [http://office.microsoft.com/zh-tw/excel-help/HP010099725.aspx 匯入或匯出文字檔案 - Excel] 支援 Unicode 編碼 {{Win}} 圖形教學: [https://www.managertoday.com.tw/articles/view/55615 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}}
* 欄位內容分隔符號 " (雙引號); 欄位分隔符號 , 不可夾雜空白。Unicode 檔案需要檔案有 BOM,這樣才能點選兩下 CSV,Excel 開啟時沒有問題。 (Excel 2007) {{Win}}
* [http://errerrors.blogspot.tw/2010/10/csv-microsoft-excel-2007-openofficeorg.html 解決CSV檔亂碼 (Microsoft Excel 2007 或 OpenOffice.org 3.2)] {{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}}
* [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.tw/2014/05/mac-office-excel-csv-microsoft-excel.html Mac Office Excel 匯入中文 CSV 檔案 (Microsoft Excel for Mac 2011)] {{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}}
* [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,會導致欄位錯誤的問題。解法1: 原始資料的雙引號改成單引號、解法2: 不用 Excel ,改用 [http://www.libreoffice.org/discover/calc/ LibreOffice Calc]

Revision as of 14:13, 19 January 2019

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 文字會變成問號。
  • 解決 Excel 轉 CSV 檔案的數字變為科學符號的問題

Import CSV to EXCEL

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

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

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

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 (命令提示字元)[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 資料科學 相關新聞聯播
Windows 11 24H2 支援倒數 30 天,Excel 貼上功能同傳災情 - BigGo 財經
Excel安全性更新讓複製貼上失效 微軟證實「操作失敗也不會提示」 - 4Gamers
EC Excel Holdings Berhad收入明細 – MYX:ECEXCEL - TradingView
Microsoft Excel 9 月更新爆災情 無法「複製貼上」、拖曳公式完全失效 - 電腦領域HKEPC Hardware
Windows 更新又出包!Excel「複製貼上」功能失效,修復解方看這裡 - XFastest News
Gemini文檔導出|實測一鍵生成Excel/Word/PDF!11種格式與手寫辨識如何提升辦公效率? - 新假期周刊
ChatGPT for Excel 及全新金融資料整合登場 - OpenAI
CISA警告,駭客正在利用17年前的Excel漏洞展開攻擊 - iThome
他實測11款AI做Excel,Claude Cowork勝出!一段提示詞從零生成700條公式,5步驟流程一次學 - 數位時代
Word、Excel 被 AI 取代漸成定局?AI 浪潮衝擊微軟 Office,生存地位面臨考驗 - TechNews 科技新報
具教煥過世72小時又活了!被說可PK漫威英雄 他回:我Excel比較強 - NOWnews今日新聞
微軟9月更新問題連環爆,Excel修補程式僅涵蓋2016版且附帶限制 - BigGo 財經
敲 Excel 也能變成電競比賽!華碩攜手MEWC,把試算表對決搬到自由女神像、艾菲爾鐵塔,7 月正式開打 - techbang.com
0906【AI大數據超級Excel表、5年殖利率】VIP 專屬-怪博士 - CMoney投資網誌
中央研究院-近期活動 | 資料科學漫步2026 - sinica.edu.tw
Google Gemini 重大更新:聊天室直接生成 Word、Excel、PDF 等 10 種檔案 - 電腦王阿達
ChatGPT for Excel 及全新金融數據整合登場 - OpenAI
ChatGPT 登陸 Excel 與 Google Sheets,試算表側邊欄可直接使用 AI - techbang.com
ChatGPT 整合 Excel 與 Google Sheets 正式版上線!用戶現在可用自然語言成為試算表大師 - TechNews 科技新報
Gemini服務現可直接生成PDF、Word、Excel及Google Docs等檔案 - iThome
學校不教?他怨新鮮人連Word、Excel也不會 網揭現況:根本沒電腦 - UDN
Grok登陸Excel!一句話分析試算表 圖表也能一鍵生成 - ETtoday AI科技
才過一年,微軟即將移除 Excel 裡的「=Copilot」函數 - 電腦王阿達
法官認證Excel檔由柯文哲親製 「1500」未列收賄證據原因曝光 - tw.news.yahoo.com
多人編輯Excel再也不怕找不到兇手 Copilot現可快速追查表格變更紀錄 - ettoday.net
SpaceXAI 推出免費 Excel 版 Grok 外掛,完成微軟 Office 套件全面布局 - BigGo 財經
馬斯克旗下SpaceXAI將Grok嵌入Excel,AI辦公室大戰一觸即發 - BigGo 財經
Claude in Excel官方教學!如何在Excel安裝Claude?查帳、除錯公式、建立財務模型…好用提示詞一次看 - 數位時代
一行指令讓 Gemini 直出 Word、Excel、PDF 等 10 種格式!告別複製貼上 - 未來商務
Excel苦手必看!Anthropic推出Claude in Excel,一鍵生成圖表、數據分析,用法教學一次看 - tw.news.yahoo.com
【資安日報】4月16日,17年前的Excel漏洞驚傳遭到利用 - iThome
excel 經典眼影首次改版!7 款命定棕色全面進化,「Skinny Rich Shadow N」於 2026 年春季登場 - Japaholic

Powered by Google News

references