【推薦本文原因】
如何使用Excel Power Query快速分割與整理換行資料? 想要分割資料,但不會函數怎麼辦! 不要再手動分類了,太浪費時間了! 當你在製作表格時,有時會遇到Excel需要分割換行資料的情況,通常無論你是在撰寫報告、整理數據還是做清單,掌握Excel Power Query分割換行資料,讓你的工作更加分。今日這次為你準備了簡單易懂的Excel Power Query分割換行資料的教學步驟,帶你了解如何在Excel 中使用Power Query分割換行資料!
內容目錄
Excel Power Query分割換行資料的重要性
在 Excel Power Query 中分割換行資料非常重要,特別是在處理複雜的訂單或報告時,能夠迅速整理出結構化的資訊。資料中常會有不同內容使用換行符號進行分隔,如地址或備註等,這些資料若不經過分割,無法有效分析或匯整。透過 Power Query 的換行符號分割功能,能將多個內容拆分到不同欄位,便於後續的數據處理和報表生成,大幅提高工作效率並減少手動整理的錯誤風險。
下面的步驟將教你如何使用Excel Power Query分割換行資料,來提高工作效率。
Excel 教學|Power Query分割換行資料
▌匯入工作表資料
- 首先,先選取資料範圍(建議拉大範圍)

- 資料 → 從表格/範圍 → 我的資料有標題 → 確定
點擊「資料」→「從表格/範圍」→ 勾選「我的資料有標題」→ 按「確定」

- 就會進入Power Query編輯器

- 更改右邊的查詢名稱
更改右邊的查詢名稱為「訂單資訊」

▌分割資料行
- 想要分割換行的資料,點擊分割資料行,選擇依分隔符號

- 下拉選擇自訂

- 勾選「使用特殊字元來分割」

- 下拉「選擇換行字元」

- 就會自動插入換行代碼,並按下確定

- 初步分隔完成!

但是! 儲存格中還有標題怎麼辦?

▌建立欄位名稱
- 先手動以複製貼上的模式,依序更改欄位名稱

- 接著,按下快捷鍵CTRL+A,選取整個範圍

▌刪除儲存格中的標題
- 轉換 → 擷取 → 分隔符號後的文字
點擊「轉換標籤」,點擊「擷取」,選擇「分隔符號後的文字」

- 輸入一個冒號「: 」,並按下確定

- 資料立馬整理好了!

- 常用 → 下拉關閉並載入 → 選擇關閉並載入至
點擊「常用」,「關閉並載入」, 選擇「關閉並載入至」

- 選擇表格 → 新工作表 → 確定

- 就匯入工作表啦

▌新增資料,自動更新
- 假如在原始資料的工作表中,又新增一筆資料

- 回到訂單資訊工作表中,滑鼠右鍵,選擇「重新整理」

- 就會自動更新資料了!

本文為 今日訊息 自產精華,請勿商用或以任何方式散播、贈送、販售。未經許可不得轉載、摘抄、複製及建立圖像等任何使用。如需轉載,請通過 今日訊息 申請獲得授權。圖片來源:【Canva】
今日Summary
恭喜你,現在已經學會如何使用Excel Power Query分割換行資料,Excel真的有很多可以學習的地方!Excel 是辦公室效率必備的神器,多學習將可以幫助你更有效地使用,看起來就會超級專業。記住,多練習這些步驟,你會越來越熟練,Excel 表格的整理將不再是一件難事。
💡再幫今日小夥伴統整一下「Excel Power Query分割換行資料」:
▌匯入工作表資料
選取資料範圍 → 資料 → 從表格/範圍 → 確定進入 Power Query 編輯器 → 更改名稱
▌分割資料行
分割資料行 → 依分隔符號 → 自訂 → 勾選使用特殊字元分割 → 選擇換行字元 → 確定
▌建立欄位名稱
手動更改欄位名稱(複製+貼上) → CTRL+A 選取整個範圍
▌刪除儲存格中的標題
轉換 → 擷取 → 分隔符號後的文字 → 輸入冒號「 : 」→ 確定
▌新增資料,自動更新
關閉並載入至新工作表 → 新增資料後 → 回到訂單資訊工作表 → 右鍵選擇重新整理 → 自動更新
<為您推薦>