If you have a large worksheet in an Excel workbook in which you need to combine text from multiple cells, you can breathe a sigh of relief because you don’t have to retype all that text. You can easily concatenate the text.

如果您在Excel工作簿中有一个较大的工作表,需要在其中合并多个单元格中的文本,则可以放心,因为您不必重新输入所有文本。 您可以轻松地串联文本。

Concatenate is simply a fancy way ot saying “to combine” or “to join together” and there is a special CONCATENATE function in Excel to do this. This function allows you to combine text from different cells into one cell. For example, we have a worksheet containing names and contact information. We want to combine the Last Name and First Name columns in each row into the Full Name column.

串联只是说“组合”或“连接在一起”的一种奇特方式,并且Excel中有一个特殊的CONCATENATE函数来执行此操作。 此功能使您可以将来自不同单元格的文本合并为一个单元格。 例如,我们有一个包含名称和联系信息的工作表。 我们要将每行的“姓氏”和“名字”列合并为“全名”列。

To begin, select the first cell that will contain the combined, or concatenated, text. Start typing the function into the cell, starting with an equals sign, as follows.

首先,选择第一个包含合并的或串联的文本的单元格。 如下所示,以等号开始在单元格中键入该函数。

=CONCATENATE(

Now, we enter the arguments for the CONCATENATE function, which tell the function which cells to combine. We want to combine the first two columns, with the First Name (column B) first and then the Last Name (column A). So, our two arguments for the function will be B2 and A2.

现在,我们输入CONCATENATE函数的参数,该参数告诉该函数合并哪些单元格。 我们要合并前两列,首先是名字(B列),然后是姓氏(A列)。 因此,该函数的两个参数将为B2和A2。

There are two ways you can enter the arguments. First, you can type the cell references, separated by commas, after the opening parenthesis and then add a closing parenthesis at the end:

您可以通过两种方式输入参数。 首先,您可以在开括号后键入单元格引用(以逗号分隔),然后在末尾添加一个闭括号:

=CONCATENATE(B2,A2)

You can also click on a cell to enter it into the CONCATENATE function. In our example, after typing the name of the function and the opening parenthesis, we click on the B2 cell, type a comma after B2 in the function, click on the A2 cell, and then type the closing parenthesis after A2 in the function.

您也可以单击一个单元格以将其输入到CONCATENATE函数中。 在我们的示例中,键入函数的名称和左括号后,我们单击B2单元格,在函数B2后面键入逗号,单击A2单元格,然后在函数中A2后面键入右括号。

Press Enter when you’re done adding the cell references to the function.

完成将单元格引用添加到函数后,按Enter键。

Notice that there is no space in between the first and last name. That’s because the CONCATENATE function combines exactly what’s in the arguments you give it and nothing more. There is no space after the first name in B2, so no space was added. If you want to add a space, or any other punctuation or details, you must tell the CONCATENATE function to include it.

请注意,名字和姓氏之间没有空格。 这是因为CONCATENATE函数完全结合了您提供给它的参数中的内容,仅此而已。 B2中名字后面没有空格,因此没有添加空格。 如果要添加空格或任何其他标点符号或详细信息,则必须告诉CONCATENATE函数包括它。

To add a space between the first and last names, we add a space as another argument to the function, in between the cell references. To do this, we type a space surrounded by double quotes. Make sure the three arguments are separated by commas.

为了在名字和姓氏之间添加一个空格,我们在单元格引用之间添加一个空格作为函数的另一个参数。 为此,我们键入一个用双引号引起来的空格。 确保三个参数用逗号分隔。

=CONCATENATE(B2," ",A2)

Press Enter.

按Enter键。

That’s better. Now, there is a space between the first and last names.

这样更好现在,名字和姓氏之间有一个空格。

Now, you’re probably thinking you have to type that function in every cell in the column or manually copy it to each cell in the column. Actually, you don’t. We’ve got another neat trick that will help you quickly copy the CONCATENATE function to the other cells in the column (or row). Select the cell in which you just entered the CONCATENATE function. The small square on the lower-right corner of the selected is called the fill handle. The fill handle allows you to quickly copy and paste content to adjacent cells in the same row or column.

现在,您可能会想必须在该列的每个单元格中键入该函数,或将其手动复制到该列的每个单元格中。 实际上,您没有。 我们还有另一个巧妙的技巧,可以帮助您快速将CONCATENATE函数复制到列(或行)中的其他单元格上。 选择您刚刚在其中输入CONCATENATE函数的单元格。 所选右下角的小方块称为填充手柄。 填充手柄使您可以快速将内容复制并粘贴到同一行或同一列中的相邻单元格中。

Move your cursor over the fill handle until it turns into a black plus sign and then click and drag it down.

将光标移到填充手柄上,直到变成黑色加号,然后单击并向下拖动。

The function you just entered is copied down to the rest of the cells in that column, and the cell references are changed to match the row number for each row.

您刚刚输入的函数将被复制到该列的其余单元格中,并且单元格引用将更改为与每一行的行号匹配。

You can also concatenate text from multiple cells using the ampersand (&) operator. For example, you can enter =B2&" "&A2 to get the same result as =CONCATENATE(B2,” “,A2) . There’s no real advantage of using one over the other. although using the ampersand operator results in a shorter entry. However, the CONCATENATE function may be more readable, making it easier to understand what’s happening in the cell.

您还可以使用&运算符将多个单元格中的文本连接起来。 例如,您可以输入=B2&" "&A2获得与=CONCATENATE(B2,” “,A2)相同的结果。 使用一个相对于另一个没有真正的优势。 尽管使用&运算符可缩短输入时间。 但是,CONCATENATE函数可能更具可读性,从而更容易理解单元格中发生的事情。

翻译自: https://www.howtogeek.com/279719/how-to-combine-text-from-multiple-cells-into-one-cell-in-excel/

如何在Excel中将多个单元格中的文本合并到一个单元格中相关推荐

  1. Excel表格上如何将多个单元格里的内容合并到一个单元格?

    其实只需要一行命令,如下: ="固定的文字"&D2&AN$2&"" 其中D2 为人名所对应的单元格,AN$2 为结尾的.jpg后缀名(这 ...

  2. EXCEL--:将多个单元格中的内容合并到一个单元格中

    1.=A2&B2&C2 2.=A2&"."&B2&"."&C2 备注: 1.第一种是直接将内容放到一起. 2.第 ...

  3. excel单元格下拉选项怎么设置_excel同列不同行内容合并到一个单元格怎么办?...

    前段时间火了一阵子的<琉璃>让人欲罢不能,借着这个东风,写下了我这个公众号的第一篇小文.希望他可以成长! 言归正传,我这里有一个人物清单表,现在我想把下面每个单元格里的内容合并到一个单元格 ...

  4. EXCEL中将多个单元格内容合并到一个单元格中的方法(转帖+亲自实践)

    原帖位置:EXCEL中将多个单元格内容合并到一个单元格中的方法 http://t.excelhome.net/thread-3875-1-1.html 说明:这个技巧主要用到以下2个功能 1.Offi ...

  5. html怎么把excel表格合并单元格,Excel中如何快速合并多个单元格

    Excel是Microsoft为使用Windows和Apple Macintosh操作系统的电脑编写的一款电子表格软件.当我们制作表格中重复信息过多,通常会把重复信息的单元格进行合并.下面就给大家介绍 ...

  6. Excel中如何批量合并相同内容单元格

    Excel表格录入数据后,发现一些部门名称重复录入太多,看上去也比较复杂,怎么才能将所有重复内容全部合并到一个单元格中去呢? 最终效果 1.首先,我们要选中需要合并的列,「数据」-「分级显示」-「分类 ...

  7. Word和Excel齐发力,将多个单元格的文本内容合并到一个单元格

    有时候在处理Excel表格的时候,我们需要将多个单元格的文本内容合并到一个单元格中,中间添加\或,之类的分隔符.比如下面这个表格,左侧是原始单元格的内容,右侧是希望合并的结果,每个单元格之间用逗号分隔 ...

  8. 如何将Excel多行单元格文字合并到一个单元格中

    如何将Excel多行单元格文字合并到一个单元格中 参考网址:https://jingyan.baidu.com/article/ed15cb1b28042c5ae369819f.html 1.打开需要 ...

  9. Excel表格中多个文本内容快速合并到一个单元格内

    Excel表格中多个文本内容快速合并到一个单元格内 目录 Excel表格中多个文本内容快速合并到一个单元格内 1.在合并单元格内输入"=PHONETIC()"函数 2.框选需要合并 ...

最新文章

  1. 详解|清华大学100页PPT:工业机器人技术详解
  2. 【BZOJ】3301: [USACO2011 Feb] Cow Line(康托展开)
  3. 做专才能做强做大——从OA、协同之争说起
  4. python中常用的函数
  5. webpack4 入门配置研究
  6. php v9 上传_phpcms v9 表单添加文件上传字段
  7. AC日记——由乃与大母神原型和偶像崇拜 洛谷 P3792
  8. 无聊特意去拍月亮。呵呵
  9. 经典python题目练习
  10. c语言 无锁编程,无锁编程与有锁编程的效率总结、无锁队列的实现(c语言)
  11. rpm包的下载安装与使用---手把手教学
  12. 工具_Typora免费版下载(Typora最后一个免费版)md编辑器
  13. dzz云桌面1.2演示,及部分功能详细介绍
  14. zxing Qr二维码(二维码颜色、logo)
  15. Pytroch 深度学习 跑CIFAR10数据集
  16. 汇承4.0蓝牙BLE串口助手HC-COM的使用方法及出错的原因和改正方法
  17. excal怎么设置模板阈值
  18. B/S聊天室(websocket)
  19. Pixhwak差速无人艇配置改装笔记
  20. 10+ 张图解|高并发分布式架构演进

热门文章

  1. 飞利浦e570有JAVA吗_功能机怎么了?飞利浦E570的待机长达170天
  2. android iphone css,css能判断手机是安卓还是ios吗?
  3. android 电容屏多点触控协议
  4. fatal error C1859的有效解决办法
  5. Pygame放大缩小照片
  6. 浪潮全球化的一面:从OEM到JDM,从ODCC到OCP
  7. python宣传视频 抖音_Python生成抖音字符视频,技术流!
  8. 课题组亓林博士的论文被 IEEE TGRS 录用
  9. Windows下Ubuntu子系统,开启复制粘贴功能方法
  10. excel sumifs()对多列求和