跳到主要内容

在Excel中将单个列或行转置(转换)为范围,反之亦然

Kutools for Excel

提升 Excel 300+
强大的功能

实用程序 变换范围 in Kutools for Excel 可以帮助您将垂直列转换(转换)为几列,并将行快速转换为多行。

将一列转换或转换为多列
将一行转换或转换为多行
将多列转换或转换为单列
将多行转换或转换为单行

例如,如果您有一列数据(如以下屏幕截图所示),则每个客户的信息将按名称,电话和地址从上到下占据3行。 用 变换范围 您可以将其快速转换为三行,如下所示:

反之亦然,您可以将多个列或行转换为单个列或行。


点击 库工具 > 范围 > 变换范围。 查看屏幕截图:

镜头移调范围1 箭头2

 将一列转换或转换为多列

1. 选择要转换为多列的单列,然后通过单击应用该实用程序 库工具 > 范围 > 变换范围.

2.在 变换范围 对话框,进行以下设置。

1) 所选范围显示在 要转换的数据 部分。 如果需要,您可以更改范围;
2)在 转换类型 部分,选择 单列到范围 选项;
3)在 每条记录的列 部分,选择您需要的选项:
空白单元格分隔的记录:如果您的列中有空白单元格,并且您想将它们用作分隔符来转换列,则可以选择此选项。 新行将从每个空白单元格开始。
固定值:如果要将每 N 行从一列转换为多列,可以选择此选项,然后在文本框中输入代表每 N 行的数字。
4)点击 OK.

3、在接下来打开的对话框中,选择要输出结果的单个单元格,然后点击 OK.
Tips:可以将结果输出到当前工作簿的不同工作表中。

完成操作后,您可以看到如下结果。


 将一行转换或转换为多行

1. 选择要转换为多行的单行,然后通过单击应用该实用程序 库工具 > 范围 > 变换范围.

2.在 变换范围 对话框,进行以下设置。

1) 所选范围显示在 要转换的数据 部分。 如果需要,您可以更改范围;
2)在 转换类型 部分,选择 单行到范围 选项;
3)在 每条记录行 部分,选择您需要的选项:
空白单元格分隔的记录:如果您的行中有空白单元格,并且您想将它们用作分隔符来转换行,则可以选择此选项。 新列将从每个空白单元格开始。
固定值:如果要将一行中的每 N 列转置为多行,可以选择此选项,然后在文本框中输入数字。
4)点击 OK.

3、在接下来打开的对话框中,选择要输出结果的单个单元格,然后点击 OK.
Tips:可以将结果输出到当前工作簿的不同工作表中。

完成操作后,您可以看到如下结果。


 将多列转换或转换为单列

有时您需要将范围转换为单列 变换范围 工具,您可以轻松,快速地处理它。 进行如下操作:

1. 选择要转换为单列的范围,然后单击启用此功能 库工具 > 范围 > 变换范围.

1) 所选范围显示在 要转换的数据 部分。 如果需要,您可以更改范围;
2)在 转换类型 部分,选择 范围到单列 选项;
3)点击 OK.

3、在接下来打开的对话框中,选择要输出结果的单个单元格,然后点击 OK.
Tips:可以将结果输出到当前工作簿的不同工作表中。

然后你可以看到如下结果。


 将多行转换或转换为单行

要将多行转换为单行,可以执行以下操作:

1. 选择要转换为单行的范围,然后单击启用此功能 库工具 > 范围 > 变换范围.

1) 所选范围显示在 要转换的数据 部分。 如果需要,您可以更改范围;
2)在 转换类型 部分,选择 范围到单行 选项;
3)点击 OK.

3、在接下来打开的对话框中,选择要输出结果的单个单元格,然后点击 OK.
Tips:可以将结果输出到当前工作簿的不同工作表中。

然后你可以看到如下结果。 


 笔记:

箭头 该功能支持 解开 (按Ctrl + Z).

箭头 如果数据量大,想加快转换速度,勾选 不要保持格式化(处理速度更快) 对话框左下角的选项。 值得一提的是,如果选中此选项,单元格的格式将不会保留在输出范围内。


演示:将一系列单元格转换为单个行或列,反之亦然

Kutools for Excel:具有300多个便捷功能,可以在30天内免费试用。 立即下载并免费试用!


生产力工具推荐
以下工具可以极大地节省您的时间和金钱,哪一种适合您?
Office Tab: 在办公室中使用方便的选项卡,作为Chrome,Firefox和New Internet Explorer的方式。
Kutools for Excel: 超过300种Excel高级功能 2021、2019、2016、2013、2010、2007 和 Office 365。

Kutools for Excel

上述功能只是 Kutools for Excel 300 个强大功能之一。

专为 Excel(Office) 2021、2019、2016、2013、2010、2007 和 Office 365 设计。免费下载和使用 30 天。

Kutools for Excel 的屏幕截图

btn了解更多      btn下载     btn购买

Comments (4)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Question on "range to single row": I have a survey data. I need different household members data, in multiple row and column to be in one row and multiple column for a household. I want almost the same output with the above example but want it to look like A1, A2, A3, B1,B2,B3,C1,C2,C3 in multiple column with different length but all in one row. Could you help?
This comment was minimized by the moderator on the site
i want convert table data(which consist 4 raw 4 column) into each single raw in very quickly. each table are differentiate with one single raw
This comment was minimized by the moderator on the site
I have a simple file I'd like to send you to see if your macro can be used to handle it. I know it can be used to remove blank rows & columns, which is helpful. But I need something a little different than what I reviewed in your demo videos. How can I send you a simple Excel file?
This comment was minimized by the moderator on the site
[quote]I have a simple file I'd like to send you to see if your macro can be used to handle it. I know it can be used to remove blank rows & columns, which is helpful. But I need something a little different than what I reviewed in your demo videos. How can I send you a simple Excel file?By Steve Newbern[/quote] Hello, Please contact me at jaychivo#extendoffice.com. Please replace @ with #.
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations