跳到主要内容

如何在Excel中将单个列转置/转换为多个列?

假设您有一个如下所示的表,并且需要将一列更改为一个范围。 在这里,我们将向您展示一些有关如何将单列更改为多列的棘手事情。

doc将列转换为行1

使用公式将单列转换为多列

使用 Kutools for Excel 将单列转置为多列


箭头蓝色右气泡 使用公式将单列转换为多列

将单列转换为行与行之间的一系列数据:

在excel中, OFFSET 函数可以帮助您,可以按以下步骤使用此公式:

1。 在空白单元格C1中,请输入以下公式:=OFFSET($A$1,COLUMNS($A1:A1)-1+(ROWS($1:1)-1)*5,0),然后将填充手柄从C1拖动到G1,请参见屏幕截图:

doc将列转换为行2

备注: A1 是开始的单元格 *5 代表每行中要具有的单元格数。 同时,您必须在C列中启动此公式。

2。 然后继续将填充手柄向下拖动到所需范围。 并且单列数据已转换为多行,如以下屏幕截图所示:

doc将列转换为行3

3。 由于它们是公式,因此在复制它们时,必须将它们复制并粘贴为值。


将单列转换为列之间的一系列数据:

上面的公式可以帮助您将单个列转置为行与列之间的范围,如果您需要将列转置为列与列之间的范围,则以下公式也可以帮您一个忙。

1。 在空白单元格C1中,请输入以下公式:=INDEX($A$1:$A$20,ROW(C1)+(5*(COLUMNS($C$1:C$1)-1))),然后将填充手柄从C1拖动到C5,请参见屏幕截图:

doc将列转换为行4

备注: A1:A20 是您要转换的列数据, 5* 代表您希望每列中包含的单元格数。

2。 然后将填充手柄跨C列拖到F列,并且单列中的数据已转置到列与列之间的范围内。 看截图:

doc将列转换为行5


箭头蓝色右气泡 使用 Kutools for Excel 将单列转置为多列

这些公式有一些局限性,也许对于初学者来说很难应用。 在这里,我将继续为您介绍一种解决此问题的简便方法。 用 Kutools for Excel's 变换范围 功能,您可以根据需要快速将单个行或列数据转换为一系列单元格。 请参见下面的演示。 点击下载Kutools for Excel!

安装后 Kutools for Excel,请这样做:

1。 选择要转换的列。

2。 点击 库工具 > 范围 > 变换范围,请参见屏幕截图:

3。 在 变换范围 对话框中,指定设置如下:

  • 单列到范围转换类型;
  • 指定每行的单元格,如果您选择了以空白单元格作为分隔符的列,则可以检查 空白单元格分隔记录,数据将在每个空白单元格处开始新的一行。 您还可以从列表中指定每行的单元格数 固定值 你需要的。

doc将列转换为行7

4。 然后点击 OK,以 变换范围 弹出提示框,然后单击一个单元格以放置结果。 可以在不同的工作表和工作簿中指定输出范围。 看截图:

doc将列转换为行8

5。 点击 OK,您将看到单列已转换为所选单元格中的多列。 看截图:

doc将列转换为行9

Kutools for Excel'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 Tab 为 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