跳到主要內容

如何在Excel中將單個列轉置/轉換為多個列?

假設您有一個如下所示的表,並且需要將一列更改為一個範圍。 在這裡,我們將向您展示一些有關如何將單列更改為多列的棘手事情。

文檔-將列轉換為行-1

使用公式將單列轉換為多列

使用Kutools for Excel將單列轉換為多列


箭頭藍色右氣泡 使用公式將單列轉換為多列

將單列轉換為行與行之間的一系列數據:

在excel中, OFFSET 函數可以為您提供幫助,您可以按照以下步驟使用此公式:

1。 在空白單元格C1中,請輸入以下公式:=OFFSET($A$1,COLUMNS($A1:A1)-1+(ROWS($1:1)-1)*5,0),然後將填充手柄從C1拖動到G1,請參見屏幕截圖:

文檔-將列轉換為行-2

備註: A1 是開始的單元格 *5 代表每行中要具有的單元格數。 同時,您必須在C列中啟動此公式。

2。 然後繼續將填充手柄向下拖動到所需範圍。 並且單列數據已轉換為多行,如以下屏幕截圖所示:

文檔-將列轉換為行-3

3。 由於它們是公式,因此在復制它們時,必須將它們複製並粘貼為值。


將單列轉換為列之間的一系列數據:

上面的公式可以幫助您將單個列轉置為行與列之間的範圍,如果需要將列轉置為列與列之間的範圍,則以下公式也可以幫您一個忙。

1。 在空白單元格C1中,請輸入以下公式:=INDEX($A$1:$A$20,ROW(C1)+(5*(COLUMNS($C$1:C$1)-1))),然後將填充手柄從C1拖動到C5,請參見屏幕截圖:

文檔-將列轉換為行-4

備註: A1:A20 是您要轉換的列數據, 5* 代表您希望每列中包含的單元格數量。

2。 然後將填充手柄跨C列拖到F列,並且單列中的數據已轉置到列與列之間的範圍內。 看截圖:

文檔-將列轉換為行-5


箭頭藍色右氣泡 使用Kutools for Excel將單列轉換為多列

這些公式有一些局限性,也許對於初學者來說很難應用。 在這裡,我將繼續為您介紹一種解決此問題的簡便方法。 用 Excel的Kutools's 變換範圍 功能,您可以根據需要快速將單個行或列數據轉換為一系列單元格。 請參見下面的演示。 點擊下載Kutools for Excel!

安裝後 Excel的Kutools,請這樣做:

1。 選擇要轉換的列。

2。 點擊 庫工具 > 範圍 > 變換範圍,請參見屏幕截圖:

3。 在 變換範圍 對話框中,指定設置如下:

  • 選擇 單列到範圍 轉換類型;
  • 指定每行的單元格,如果您選擇了以空白單元格作為分隔符的列,則可以檢查 空白單元格分隔記錄,數據將在每個空白單元格處開始新的一行。 您還可以從列表中指定每行的單元格數 固定值 你需要的。

文檔-將列轉換為行-7

4。 然後點擊 OK 變換範圍 彈出提示框,然後單擊一個單元格以放置結果。 可以在不同的工作表和工作簿中指定輸出範圍。 看截圖:

文檔-將列轉換為行-8

5。 點擊 OK,您將看到單列已轉換為所選單元格中的多列。 看截圖:

文檔-將列轉換為行-9

Excel的Kutools's 變換範圍 工具可以幫助您輕鬆地將單列轉換為範圍,將單行轉換為範圍,將範圍轉換為單行以及將範圍轉換為單列。 點擊了解更多…

點擊立即下載並免費試用Kutools for Excel!

最佳辦公生產力工具

🤖 Kutools 人工智慧助手:基於以下內容徹底改變數據分析: 智慧執行   |  生成代碼  |  建立自訂公式  |  分析數據並產生圖表  |  呼叫 Kutools 函數...
熱門特色: 尋找、突出顯示或識別重複項   |  刪除空白行   |  合併列或儲存格而不遺失數據   |   沒有公式的回合 ...
超級查詢: 多條件VLookup    多值VLookup  |   跨多個工作表的 VLookup   |   模糊查詢 ....
高級下拉列表: 快速建立下拉列表   |  依賴下拉列表   |  多選下拉列表 ....
欄目經理: 新增特定數量的列  |  移動列  |  切換隱藏列的可見性狀態  |  比較範圍和列 ...
特色功能: 網格焦點   |  設計圖   |   大方程式酒吧    工作簿和工作表管理器   |  資源庫 (自動文字)   |  日期選擇器   |  合併工作表   |  加密/解密單元格    按清單發送電子郵件   |  超級濾鏡   |   特殊過濾器 (過濾粗體/斜體/刪除線...)...
前 15 個工具集12 文本 工具 (添加文本, 刪除字符,...)   |   50+ 圖表 類型 (甘特圖,...)   |   40+ 實用 公式 (根據生日計算年齡,...)   |   19 插入 工具 (插入二維碼, 從路徑插入圖片,...)   |   12 轉化 工具 (數字到單詞, 貨幣兌換,...)   |   7 合併與拆分 工具 (高級合併行, 分裂細胞,...)   |   ... 和更多

使用 Kutools for Excel 增強您的 Excel 技能,體驗前所未有的效率。 Kutools for Excel 提供了 300 多種進階功能來提高生產力並節省時間。  點擊此處獲取您最需要的功能...

產品描述


Office選項卡為Office帶來了選項卡式界面,使您的工作更加輕鬆

  • 在Word,Excel,PowerPoint中啟用選項卡式編輯和閱讀,發布者,Access,Visio和Project。
  • 在同一窗口的新選項卡中而不是在新窗口中打開並創建多個文檔。
  • 將您的工作效率提高 50%,每天為您減少數百次鼠標點擊!

Comments (12)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
지렸습니다. 감사합니다.
This comment was minimized by the moderator on the site
This article is really very helpful
This comment was minimized by the moderator on the site
Thanks, helps!
This comment was minimized by the moderator on the site
Thank you - the first example using a formula worked beautifully.
This comment was minimized by the moderator on the site
Thank you so much for this article. The formula you described worked perfectly!
Thank you!
This comment was minimized by the moderator on the site
shall we convert single word into multiple column ???

Like "WORD" converted to W O R D in column
This comment was minimized by the moderator on the site
Thank you!
This comment was minimized by the moderator on the site
I have data imported to excel, a list, some lines begin with a [ and these I want the cell moved to column A, same line;, some lines have a space then a [ these I want to move to column B, same line; some columns have two spaces then data, and these I want to move to Column C, same line. Is there any way I can do this???????
This comment was minimized by the moderator on the site
I have a single name in several columns also had a amount list in several columns. Now how to total the whole amount and how to make a several name columns into single
This comment was minimized by the moderator on the site
Absolutely totally brilliant! I downloaded the trial version to see if this program will do what it said (I had my doubts). I completed a project I has been messing around with ALL DAY in less than 60 seconds. BRILLIANT is all I can say. I will now spend all night playing with this program to see what other exceptionally cool things it does. FYI – I was exporting a large amount of data from a very frustrating accounting program that does not play nice with any other program. I need the data in excel so that I can manipulate it. This program was a life saver!
There are no comments posted here yet
Load More
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations