提示:其它语言是由 Google 机器翻译的。 你可以访问 English 版本。
登录
x
or
x
x
马上登记
x

or

如何将一个单元格转换为Excel中的多个单元格/行?

有时,如果Excel中的单元格中有大量数据,则很难查看所有数据。 在这种情况下,将此单元格中的所有数据转换为多个单元格或行可以使查看长内容变得更加容易和清晰,如下所示。 在Excel中,您可以通过以下方法完成它。

将一个单元格转换为多个单元格/行,使用Excel中的文本到列和选择性粘贴

使用VBA将一个单元格转换为多个单元格/行

使用Kutools for Excel将一个单元格转换为多个列/行 好idea3


快速根据分隔符将一个单元格拆分成列或行

在Excel中,将一个单元格拆分成一列一列的向导是令人乏味的。 但是 Kutools for Excel's 拆分单元格 实用程序,您可以:1,根据分隔符将一个单元格转换为列或行; 2,将字符串转换为文本和数字; 3,根据特定的宽度转换字符串,点击。 点击查看功能齐全的60天免费试用版!
doc分割单元格
Kutools for Excel:拥有超过300便利的Excel加载项,可以在60天免费试用,不受限制。

箭头蓝色右泡 将一个单元格转换为多个单元格/行,使用Excel中的文本到列和选择性粘贴

1。 选择要转换其数据的单元格,然后单击 数据 > 文本到列,看截图:

2。 在弹出的对话框中,选中 分隔 复选框,然后单击 下一步。 看截图:

3。 检查 逗号 仅在对话框中复选框,然后单击 。 看截图:

4。 然后你可以看到单元格数据已经被分成多个列。 现在选择这些单元格并右键单击 复制 从上下文菜单复制它们。 看截图:

5。 选择一个空白的单元格,然后右键单击选择 移调(T),那么你可以看到数据已经被转换成多行。 看截图:

如果您使用的是Microsoft Excel 2007,请单击 主页 > > 颠倒 粘贴拆分的数据。

你可以看到如下所示的结果:


箭头蓝色右泡 使用VBA将一个单元格转换为多个单元格/行

如果您认为上述方法有点乏味,可以使用VBA来完成。

1。 保持 ALT 按钮并按下 F11 在键盘上打开一个 Microsoft Visual Basic for Application 窗口。

2。 点击 插页 > Module,然后将VBA复制到模块中。

VBA:将一个单元格转换为多行

Sub TransposeRange()
'Updateby20140312
Dim rng As Range
Dim InputRng As Range, OutRng As Range
xTitleId = "KutoolsforExcel"
Set InputRng = Application.Selection.Range("A1")
Set InputRng = Application.InputBox("Range(single cell) :", xTitleId, InputRng.Address, Type:=8)
Set OutRng = Application.InputBox("Out put to (single cell):", xTitleId, Type:=8)
Arr = VBA.Split(InputRng.Range("A1").Value, ",")
OutRng.Resize(UBound(Arr) - LBound(Arr) + 1).Value = Application.Transpose(Arr)
End Sub

3。 点击 运行VBA代码,和一个 KutoolsforExcel 弹出对话框供您选择要转换其数据的单个单元格。 看截图:

4。 点击 OK,并在另一个弹出对话框中选择一个单元格输出结果。 看截图:

你可以看到结果:

小技巧:在上面的VBA代码中,您可以更改分隔符 “,” 你想通过分隔数据。


箭头蓝色右泡 使用Kutools for Excel将一个单元格转换为多个列/行

如果你有 Kutools for Excel - 一个方便的工具安装,你可以使用它 拆分单元格 功能可以根据分隔符将单个单元格快速拆分为多个列或行。

Kutools for Excel:一个方便的Excel加载项工具,使您的工作更轻松,更高效。
  • 超过300个 功能强大且易于使用的功能,超过110,000个 Excel用户的选择
  • 全功能 60天免费试用,不需要信用卡
  • 数十个一键式功能可缩短您解决复杂问题的工作时间
  • 包括批量转换,删除,组合表/单元格,exproting等等,免费试用的功能。

安装后 Kutools for Excel,请按照以下步骤操作:(免费下载Kutools for Excel!)

1。 选择要分割成行的单元格,然后单击 Kutools > 文本 > 拆分单元格。 看截图:
doc kutools 1

2。 然后在 拆分单元格 对话框,检查 拆分为行 选项下 类型 部分,并检查 其他 选项下 指定一个分隔符 部分,然后在文本框中输入您想要分割单元格的分隔符。 看截图:

doc kutools 2

3。 点击 Ok,弹出一个对话框提醒您选择一个单元格输出拆分结果。
doc kte 3

4。 点击 OK。 现在你可以看到一个单元格已经被转换成多行。
doc kte 4

提示: 如果您想要将单个单元格转换为基于特定分隔符的列,请选中 拆分为列 在对话框中的选项,并输入分隔符 其他 文本框。

箭头蓝色右泡 将一个单元格转换为多个行或列


快速转置交叉表列表,反之亦然

当你收到一张十字表,你需要转换为列表表,你怎么能迅速处理呢? 同 Kutools来自Excel的 转置表尺寸 实用程序,则可以尽可能快地将交叉维度表转换为三维表格,反之亦然。 点击60天全功能免费试用!
doc转到列表
Kutools for Excel:拥有超过300便利的Excel加载项,可以在60天免费试用,不受限制。

相关文章:


Kutools for Excel - 最佳办公生产力工具提高80%的生产力

  • 重用: 快速插入 复杂的公式,图表 以及你以前用过的任何东西; 加密单元格 密码; 创建邮件列表 并发送电子邮件...
  • 超级方程式酒吧 (轻松编辑多行文字和公式); 阅读布局 (轻松读取和编辑大量单元格); 粘贴到过滤范围...
  • 合并单元格/行/列 不丢失数据; 分裂细胞含量; 组合重复的行/列...防止重复的细胞; 比较范围...
  • 选择复制或唯一 行; 选择空行 (所有细胞都是空的); 超级查找和模糊查找 在许多工作簿中; 随机选择......
  • 精确复制 多个单元格而不更改公式参考; 自动创建参考 多张表; 插入项目符号,复选框等等......
  • 提取文本,添加文本,按位置删除, 删除空间; 创建和打印分页小计; 在单元格内容和注释之间转换...
  • 超级过滤器 (将过滤方案保存并应用到其他工作表); 高级排序 按月/周/日,频率等; 特殊过滤器 用粗体,斜体......
  • 结合工作簿和工作表; 根据键列合并表; 将数据拆分为多个表格; 批量转换xls,xlsx和PDF...
  • 超过300强大的功能。 支持Office / Excel 2007-2019和365。 支持所有语言。 在您的企业或组织中轻松部署。 全功能60天免费试用。
kte tab 201905

Office选项卡为Office提供选项卡式界面,使您的工作更轻松

  • 在Word,Excel,PowerPoint中启用选项卡式编辑和阅读,Publisher,Access,Visio和Project。
  • 在同一窗口的新选项卡中打开并创建多个文档,而不是在新窗口中。
  • 通过50%提高您的工作效率,每天为您减少数百次鼠标点击!
官方底部
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    Sunil Graphics · 1 months ago
    i have data like this...

    one cell this data
    p. umesh,125 ramesh,52 sunil,478 mahesh,47 raj,75,487

    result (first column name ,, second column number)
    p. umesh 125
    ramesh 52
    sunil 478
    mahesh 47
    raj 75
    raj 487
    • To post as a guest, your comment is unpublished.
      Sunny · 16 days ago
      Hi, Sunil Graphics, if there is no trailing space after the comma and dot, you can do as these:
      1. Select the cell that contains data, click Data > Text to Column, in the popping text to column dialog, check delimited > next > check space > click Finish, now the data has been split into columns based on space, like p.umesh,125 | ranesh,52 | sunil,478 |...
      2. Then select these column data, press Ctrl + C to copy them, and select a another cell, right click to select Transpose in the paste options in the context menu. Now the data shows as
      p.umesh,125
      ranesh,52
      sunil,478
      3. Select the transpose data, use the Text to Column function again, this time, check delimited > next > comma > finish. Then it done.
  • To post as a guest, your comment is unpublished.
    Sunil Graphics · 1 months ago
    i have data like this...
  • To post as a guest, your comment is unpublished.
    Sunil Graphics · 1 months ago
    i have data like this...
    p. umesh,125 ramesh,52 sunil,478 mahesh,47 raj,75,487

    result
    p. umesh 125
    ramesh 52
    sunil 478
    mahesh 47
    raj 75
    raj 487

    how to solve this
  • To post as a guest, your comment is unpublished.
    Robin Hunuki · 3 months ago
    Thanks legend! "Convert One Cell To Multiple Cells/Rows With Text To Column And Paste Special In Excel" - worked perfectly.
  • To post as a guest, your comment is unpublished.
    Tushar Bhalerao · 1 years ago
    this is really helpfull for me, :) Thanks a lot.
  • To post as a guest, your comment is unpublished.
  • To post as a guest, your comment is unpublished.
    Rajiv Kumar · 2 years ago
    C033047C033025C0125397C033023C033033

    I would like that above number split in different row & start with C0.
    I have excel & in this excel above number in row. I would like in different row.
  • To post as a guest, your comment is unpublished.
    Sadhik · 2 years ago
    I have a table like this & i want to split the data in such a way that the result is appeared as in the output format.
    Any help is appreciated.


    Excel file :
    Id Disabled Production Group Name of Work Step
    BHM_777-57-854-01-01/551_1 0 LEFT WING OPEN PANELS 551AB 551BB 551CB


    desired output format :

    BHM_777-57-854-01-01/551_1 0 LEFT WING OPEN ACCESS PANEL 551AB
    BHM_777-57-854-01-01/551_2 0 LEFT WING SIGN OFF OPEN ACCESS PANEL 551AB
    BHM_777-57-854-01-01/551_3 0 LEFT WING OPEN ACCESS PANEL 551BB
    BHM_777-57-854-01-01/551_4 0 LEFT WING SIGN OFF OPEN ACCESS PANEL 551BB
    BHM_777-57-854-01-01/551_5 0 LEFT WING OPEN ACCESS PANEL 551CB
    BHM_777-57-854-01-01/551_6 0 LEFT WING SIGN OFF OPEN ACCESS PANEL 551CB
  • To post as a guest, your comment is unpublished.
    Gokul Anand · 2 years ago
    Hi i wanna one macro code to split my data

    i have data like

    1
    2
    3
    4
    5

    1
    2
    3
    4
    5
    i wanna split this like
    12345
    12345

    Please if any one know ping me..

    Thanku
  • To post as a guest, your comment is unpublished.
    rafeeq · 2 years ago
    in cell a1 i have date in cell b1 period and in c1 i have amount now i want that cell1 date ok, but cell b1 is period that 01.01.16 to 31.01.16 now i want that cell b1 to split in two column so that it look like this ::

    A1 B1 C1
    Date Period Amount
    01.01.16 01.01.16 31.01.16 15000

    i want the B1 period in split in two cloumn
  • To post as a guest, your comment is unpublished.
    Viral Shah · 2 years ago
    Hello ,
    How I can split one cell in two row to convert coloum.
    Example
    Cell A1 :. Meagan
    Vakariya

    I want above data in two coloum

    Pls any one resolve it..
  • To post as a guest, your comment is unpublished.
    Deeba · 2 years ago
    Hi

    I have a file with thousands of rows and i want one of the column to be divided into multiple rows and columns without disturbing its mapping with other columns.

    Column A Column B Column C Team Name Jeopardy Rules
    Res Product and Sales Inquiry Equipment Inquiry or Sale eMTA Inquiry QC/ON "Open for 72 hours - MGRSUPERCC (ON)/SACSUP (QC)
    Open for 96 hours - MGRSUPERCC (ON)/SACSUP (QC)
    In Progress for 120 hours - MGRSUPERCC (ON)/SACSUP (QC)
    In Progress for 150 hours - MGRSUPERCC (ON)/SACSUP (QC)
    In Progress for 200 hours - MGRSUPERCC (ON)/SACSUP (QC)
    Resolved for 168 hours - Assigned Agent/MGRSUPERCC (ON)/SACSUP (QC)"

    In the above example, entire content is in last cell. Row 2 column E

    Expected Result:

    Column A Column B Column C Column D Hours Status ON QC
    Res Product and Sales Inquiry Equipment Inquiry or Sale eMTA Inquiry QC/ON 72 Open MGRSUPERCC (ON) SACSUP (QC)
    Res Product and Sales Inquiry Equipment Inquiry or Sale eMTA Inquiry QC/ON 96 Open MGRSUPERCC (ON) SACSUP (QC)
    Res Product and Sales Inquiry Equipment Inquiry or Sale eMTA Inquiry QC/ON 120 In Progress MGRSUPERCC (ON) SACSUP (QC)
    Res Product and Sales Inquiry Equipment Inquiry or Sale eMTA Inquiry QC/ON 150 In Progress MGRSUPERCC (ON) SACSUP (QC)
    Res Product and Sales Inquiry Equipment Inquiry or Sale eMTA Inquiry QC/ON 200 In Progress MGRSUPERCC (ON) SACSUP (QC)
    Res Product and Sales Inquiry Equipment Inquiry or Sale eMTA Inquiry QC/ON 168 Resolved MGRSUPERCC (ON) SACSUP (QC)

    Can anyone please help me resolve it.
  • To post as a guest, your comment is unpublished.
    Rajeev Kumar · 2 years ago
    how to split a value in different columns like my value is 30122016
    i want to to do it 3 0 1 2 2 0 1 6


    best Rgds
    Rajeev
  • To post as a guest, your comment is unpublished.
    Delicate · 3 years ago
    I need to get from this

    All in one cell:
    aaaaaa
    bbbbbb
    ccccccc
    dddddd

    To all separated into individual cells without adding commas. (Text to columns button is not helping unless they are all on one line and commas are added.)

    Thanks!
  • To post as a guest, your comment is unpublished.
    Sachin Patil · 3 years ago
    Hi, My data is like
    in cell A1= Today is My Last Day in School
    in cell A2 = Tomorrow is My First Day in Office

    Expected:
    B1 Today
    B2
    B3 My
    B4 Last
    B5 Day and so on....

    Data in row A should be in Row B such that, after every 72 characters, the data should move to the cell below it. (B1 should have 72 chars, then 72 remaining in B2 and so onn)
  • To post as a guest, your comment is unpublished.
    FATIN · 3 years ago
    This is my sheet.
    aaaaa
    111111
    bbbbbb
    2222222
    cccccccc
    33333333
    ddddddd
    44444444

    And i need to achieve like this.
    aaaaa 111111
    bbbbbb 2222222
    cccccccc 33333333
    ddddddd 44444444
  • To post as a guest, your comment is unpublished.
    dan · 3 years ago
    I have a cell with multiple line breaks that I want to preserve and reserve into separate rows.

    For example:
    A

    B

    C


    D

    E

    Can I maintain the vertical spacing distributed as separate rows? Kutools seems to condense them into:
    A
    B
    C
    D
    E
  • To post as a guest, your comment is unpublished.
    sivaranjani · 3 years ago
    I have my dataset
    B1311740 mandiraray2013@gmail.com pradipkrray@rediffmail.com
    B1528120 asishmukh@gmail.com
    B1610861 payaltrivedi1979@gmail.com akneil789@gmail.com
    I want the data as below
    B1311740 mandiraray2013@gmail.com
    B1311740 pradipkrray@rediffmail.com
    B1528120 asishmukh@gmail.com
    B1610861 payaltrivedi1979@gmail.com
    B1610861 akneil789@gmail.com
    • To post as a guest, your comment is unpublished.
      DavidNavsix · 3 years ago
      Step 01:Insert 2 column on the Right.
      Step 02:Fill-In B column with 1,2,3.....
      Step 03:Sort on Column E.
      Step 04:in the formula in column A1. =If(e1"",b1+0.5,0)
      Step 05:copy the formula to the rest of A column
      Step 06:Copy the contents of A column to the unused space in B column (at the end of Column B).
      Step 07:Clear the contents in Column A.
      Step 08:Sort on Column B.
      Step 09:Delete those line that has 0 in column B.
      Step 10:In E1, insert a blank space, (with the option shift cell down).
      Step 11:Sort on Column D.
      Step 12:Delete the empty cells in Column D, (with the option shift cell left).
      Step 13:Sort on Column B again.
      Step 14:In A1, copy c1 to A1.
      Step 15:In A2, add the formula =IF(C2="",A1,C2)
      Step 16:Copy the formula to the rest of A1.
      Step 17:Copy the contents of Column A, and paste (value) onto Column C.
      Step 18:Delete column A & B.
  • To post as a guest, your comment is unpublished.
    Daniel · 4 years ago
    Thanx very helpful...atleast with this site i will be a genius soon
  • To post as a guest, your comment is unpublished.
    Pallavi · 4 years ago
    I have Data in sheet in below format in a cell
    1. Login to the Application
    2. Enter valid credentials
    3. Click on Submit
    Expected:
    Above three steps should get split in 3 rows

    Row 1 ----> 1. Login to the Application
    Row 2 ----> 2. Enter valid credentials
    Row 3 ----> 3. Click on Submit

    Please let me know is this possible in excel
  • To post as a guest, your comment is unpublished.
    DavidNavsix · 4 years ago
    Try this way,
    1. insert a blank column in before the A column, and number the line 1,2,1,2....you will see:
    1 aaaaa
    2 11111
    1 bbbbbb
    2 2222222
    1 cccccccc
    2 33333333
    1 ddddddd
    2 44444444

    2. Column the entire column b to column c, you get:
    1 aaaaa aaaaa
    2 11111 11111
    1 bbbbbb bbbbbb
    2 2222222 2222222
    1 cccccccc cccccccc
    2 33333333 33333333
    1 ddddddd ddddddd
    2 44444444 44444444
    3. Delete the first cell (shift cell up) in column c, you get:
    1 aaaaa 11111
    2 11111 bbbbbb
    1 bbbbbb 2222222
    2 2222222 cccccccc
    1 cccccccc 33333333
    2 33333333 ddddddd
    1 ddddddd 44444444
    2 44444444
    4. Now, sort column a, you will get:
    1 aaaaa 11111
    1 bbbbbb 2222222
    1 cccccccc 33333333
    1 ddddddd 44444444
    2 11111 bbbbbb
    2 2222222 cccccccc
    2 33333333 ddddddd
    2 44444444
    Delete all the line 2, and column A, you get what you want:
    aaaaa 11111
    bbbbbb 2222222
    cccccccc 33333333
    ddddddd 44444444
  • To post as a guest, your comment is unpublished.
    Shiva · 4 years ago
    This is my sheet.
    aaaaa
    111111
    bbbbbb
    2222222
    cccccccc
    33333333
    ddddddd
    44444444

    And i need to achieve like this.
    aaaaa 111111
    bbbbbb 2222222
    cccccccc 33333333
    ddddddd 44444444
  • To post as a guest, your comment is unpublished.
    Melissa · 4 years ago
    The row or field I want to break out into multiple rows is one complete number and I need every 8 numbers in a new row. They are not separated by commas. How can this be done?
  • To post as a guest, your comment is unpublished.
    Nizam · 4 years ago
    I tried it, it works for small and simple data but it doesnt work with my data, can you explain what can i do what that data ? the formate is like

    names: comments: Dates:
    name1,name2,name3 comment1,coment2,comnt3 2015:3:20:10,2015:3:21:10

    I Want to have name1, its comment1 and date1 in one row, and 2nd name, 2nd commnt, and 2date in 2nd row and so on.

    can you help me explain how to do this ?

    thanks
  • To post as a guest, your comment is unpublished.
    J. Felix · 5 years ago
    Great tutorial. Do you happen to know, how can you automatize this? I mean if you have multiple cells you want to transpose one below the other? (I am already having the needed number of empty rows in between them, so there is enough space to transpose, just I have more the 2500 rows, and would like to do it one by one.)