excel内容合并:同一部门员工合并到同一单元格
时间:2022-10-15 02:39:05
来自于一位做人事管理的公司职员,他问如果把同一部门的员工姓名合并到同一单元格,就如下图,左侧每个员工对应一个数据行,如何快速变成右侧每个部门对应一个数据行。
关键步骤提示:
1、按照部门排序以后,在D1单元格输入公式:=IF(A2=A3,B2&”,”&D3,B2),往下填充,得到的结果是:
2、把结果复制,选择性粘贴,只保留数值,到C列相应的位置,在D列输入公式:=COUNTIF($A$2:A2,A2),公式向下填充,得到的结果是每个部门中的第一行编号都是1,即改名最全的一行,编号都是1:
3、筛选出“编号”不是1的各行,然后删除:
即得结果。
标签:Excel函数,excel函数公式,excel表格制作,Excel教程
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
word多级目录自动生成方法
2023-04-08 07:03:02
![](https://img.aspxhome.com/file/2023/0/23510_0s.jpg)
Windows10系统安装失败错误代码0x80240034怎么解决?
2023-11-19 03:34:37
![](https://img.aspxhome.com/file/2023/2/49372_0s.jpg)
Win10网页游戏打不开怎么办?
2023-11-25 20:09:59
![](https://img.aspxhome.com/file/2023/4/50124_0s.jpg)
Win10系统如何恢复默认的系统字体?
2023-12-03 11:34:46
![](https://img.aspxhome.com/file/2023/9/51289_0s.png)
如何在编辑word文件时进行文档定位?
2022-11-13 01:44:02
![](https://img.aspxhome.com/file/2023/2/28792_0s.jpg)
Excel怎么生成任意范围内的随机整数?
2022-06-15 16:28:27
![](https://img.aspxhome.com/file/2023/6/39936_0s.png)
word 多级列表与样式结合完成目录效果 实例教程
2023-12-01 01:29:23
![](https://img.aspxhome.com/file/2023/3/33313_0s.png)
如何使用Word 2007样式窗格?
2023-05-17 05:51:12
![](https://img.aspxhome.com/file/2023/7/23287_0s.jpg)
excel2016表格中的数据怎么一键汇总?
2022-02-19 00:09:29
![](https://img.aspxhome.com/file/2023/0/41150_0s.jpg)
Excel2019表格怎么插入和删除行列?
2023-11-06 15:59:38
![](https://img.aspxhome.com/file/2023/1/a141511_0s.jpg)
Win10删除原系统对正常的使用有什么影响吗?
2023-12-13 12:09:52
![](https://img.aspxhome.com/file/2023/6/51036_0s.jpg)
word如何在表格的表头中输入文字?
2022-06-17 06:56:46
![](https://img.aspxhome.com/file/2023/2/24642_0s.jpg)
wps文字怎样才能单排显示?
2023-09-15 07:05:20
2013word页眉线设置方法
2022-12-08 05:03:55
在Excel表格中如何将多列文字变成一列?
2022-04-02 00:37:55
![](https://img.aspxhome.com/file/2023/9/41829_0s.jpg)
wps表格如何更改文件默认保存位置?
2023-08-07 12:22:58
![](https://img.aspxhome.com/file/2023/7/53657_0s.jpg)
wps 表格中如何把图表的边框线去掉
2023-10-30 11:27:49
![](https://img.aspxhome.com/file/2023/9/a163639_0s.jpg)
excel表格怎么设置彩色的交叉图表?
2023-08-10 07:12:55
![](https://img.aspxhome.com/file/2023/7/a141577_0s.jpg)
Word剪贴板如何查看和清空?
2022-02-02 22:40:18
![](https://img.aspxhome.com/file/2023/0/32290_0s.png)
如何在Word 2007中将文本拖到另一个位置?
2023-07-07 01:37:12