简体   繁体   English

连接单元格并删除重复项

[英]Concatenate cells and remove duplicates

I have a data column in Excel: 我在Excel中有一个数据列:

Block Name | Cultivar | Reporter | Pests 
| Pest Stage | Severity

many time duplicate the Block Name but different data in columns: 很多时候复制块名称但列中的数据不同:

Pests | Pest Stage | Severity

I want concatename (Pests, Pest Stage and Severity by cells) and afterwards remove duplicates of Blocks, the good example is attached in picture 我想要concatename(Pests,Pest Stage和Severity by cells),然后删除Blocks的重复,好的例子附在图片中

Here is to image example [a link] https://imgur.com/rSFGack 这是图像示例[链接] https://imgur.com/rSFGack

I hope understand me, 我希望了解我,
Thanks 谢谢

插入新列并将公式放入新列=E1&F1&G1第一个单元格,然后删除此列中的重复项

Steps: 脚步:

  1. In Column I insert the below formula and drag it down. 在列I中插入以下公式并将其向下拖动。

     =B2 & "_" & E2 & "_" & F2 & "_" & H2 
  2. Select all columns (except headers), Go to Data - Data Tools - Remove Duplicates - Unchecked all columns except the one you enter the formula (ColumnI) and press ok. 选择所有列(标题除外),转到数据 - 数据工具 - 删除重复项 - 取消选中除输入公式(ColumnI)之外的所有列,然后按确定。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM