跳到主要内容

如何在Excel中将多行合并到一个单元格?

有时,您需要将多行合并到一个单元格中,如左图所示。 以下方法将帮助您详细地将多行合并到Excel中的一个单元格。

使用公式将多行合并到一个单元格

使用 Kutools for Excel 将多行合并到一个单元格


使用公式将多行合并到一个单元格

您可以使用公式将多行组合到一个单元格,如下所示。

1.选择一个空白单元格以输出合并的内容,然后在其中输入以下公式。

=CONCATENATE(TRANSPOSE(B2:B19))

2.现在,您需要选择 透明质酸(B2:B19) 公式的一部分,然后按 F9 键。 您可以看到公式已更改,如下图所示。

3.从公式栏中的公式中删除大括号,然后按 输入 键。

现在,所选范围内的所有内容将合并到一个单元格中。

若要快速组合多行并使用逗号,分号等特定分隔符分隔每个单元格值,请尝试以下方法。


使用 Kutools for Excel 将多行合并到一个单元格

合并行,列或单元格而不会丢失数据 实用程序 Kutools for Excel 可以帮助您轻松地将多行合并到一个单元格,并使用特定的分隔符将每个合并的文本分开。

申请前 Kutools for Excel首先下载并安装.

1.选择需要合并到一个单元格的行的范围,然后单击 库工具 > 合并与拆分合并行,列或单元格而不会丢失数据。 看截图:

2.在 合并列或行 对话框中选择 合并成单个单元格 在第一部分中,然后指定一个分隔符,最后单击 OK 按钮。

现在,不同行中的所有选定单元格将立即合并为一个单元格。

:

  • 1.如果要保留原始数据,请将数据复制到新范围,然后应用此功能。
  • 2.如果要将原始格式保留在合并的单元格中,请检查 使用格式化的值合并列或行 对话框。

  如果您想免费试用(30天)此实用程序, 请点击下载,然后按照上述步骤进行操作。


使用 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 (5)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
copy all cells to MS Word not keeping the formatting, then copy back to desired cell in MS Excel...
This comment was minimized by the moderator on the site
I am trying to combine two datas into one row.. How do i do that in excel.
This comment was minimized by the moderator on the site
Dear roy,
Do you mean combine two datas in different rows into one row (the two datas still locating in different cells of same row after combining)?
This comment was minimized by the moderator on the site
using kutools method on this can you drag the formula down the sheet like in regular excel? I have roughly 1210 rows on a sheet. every 4 rows has some customer data in it, that i need to combine in one cell (or row would work) Is there also a way to remove extra variable spaces between words. some lines have 3 to 15 spaces between words that dont need to be there. like. hello customer# 434 Mike Jones address 2323 las vegas blvd phone number 702
This comment was minimized by the moderator on the site
Dear JOE, Thank you for your comment! Our Kutools has a Remove Spaces utility which can help you to remove not only leading spaces, but also remove trailing, excess as well as all spaces from specified cells. You can follow this link: https://www.extendoffice.com/product/kutools-for-excel/excel-remove-spaces.html to know more about this utility. For the Combine method, Kutools does not support dragging and filling. We will try our best to enhance the Kutools functions for more efficient Excel work! Thanks again for your comment! :-)
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations