当前位置:网站首页>Excel查找一列中的相同值,删除该行或替换为空值
Excel查找一列中的相同值,删除该行或替换为空值
2022-07-02 17:35:00 【cy413026】
目录
参考文档
1.查找一列中的相同值
设在Excel中有一列数据如下:

A4-A23中有很多相同的值,下面分别给出删除重复值,替换为空值和合并的操作
1.1 删除重复值

选择数据中的删除重复值即可 效果如下:

1.2替换为空值
有时场景如下 A列虽然有重复 B列不一样,我们不能直接删除A列重复的行,而是只需要将A列重复的行替换为空值

操作过程如下:

1.在辅助列用公式找出重复的数据并标记
2.复制并粘贴辅助列为值

3.筛选出带有chognfu的行


4.选中所有带有重复的单元格,右键 清除内容,效果如右下图


此时已经完成了替换为空值(注意区分空值和空白字符""的区别,=IF(COUNTIF($B8:B27,B8)=1,B8,"") 这个写法就是有一个""的空白字符)。
1.3合并相同值
还是以1.2节场景 首先进行排序,效果如下图

边栏推荐
- 新加坡暑假旅遊攻略:一天玩轉新加坡聖淘沙島
- FastDFS安装
- How to clean up discarded PVs and their corresponding folders
- How to play when you travel to Bangkok for the first time? Please keep this money saving strategy
- [fluent] dart data type (VaR data type | object data type)
- Installation of thingsboard, an open source IOT platform
- 【每日一题】第二天
- 如何优雅的写 Controller 层代码?
- 电商系统中常见的 9 大坑,你踩过没?
- How can retail enterprises open the second growth curve under the full link digital transformation
猜你喜欢

Web版3D可视化工具,程序员应该知道的97件事,AI前沿论文 | 资讯日报 #2022.07.01

Leetcode (81) -- search rotation sort array II

Leetcode(81)——搜索旋转排序数组 II

M2DGR:多源多场景 地面机器人SLAM数据集(ICRA 2022 )

After 22 years in office, the father of PowerShell will leave Microsoft: he was demoted by Microsoft for developing PowerShell

【JVM调优实战100例】02——虚拟机栈与本地方法栈调优五例

使用 Cheat Engine 修改 Kingdom Rush 中的金钱、生命、星

How to enable the run dashboard function of idea

Thoroughly understand the point cloud processing tutorial based on open3d!

Ali was wildly asked by the interviewer on three sides. Redis dared not write 'proficient' on his resume anymore
随机推荐
[daily question] the next day
options should NOT have additional properties
Google's official response: we have not given up tensorflow and will develop side by side with Jax in the future
Server PHP environment building tutorial, PHP server environment building graphic explanation
快速排序基本思路(通俗易懂+例子)「建议收藏」
第一次去曼谷旅游怎么玩?这份省钱攻略请收好
新加坡暑假旅游攻略:一天玩转新加坡圣淘沙岛
Meta universe chain game system development (logic development) - chain game system development (detailed analysis)
Detailed explanation of cjson usage
使用 Cheat Engine 修改 Kingdom Rush 中的金钱、生命、星
任职 22 年,PowerShell 之父将从微软离职:曾因开发 PowerShell 被微软降级过
iptable端口重定向 MASQUERADE[通俗易懂]
How to delete the border of links in IE? [repeat] - how to remove borders around links in IE? [duplicate]
在纽约寻找童真——新泽西州乐高乐园探索中心的美好一天
reduce--遍历元素计算 具体的计算公式需要传入 结合BigDecimal
Tips for material UV masking
R语言使用epiDisplay包的cox.display函数获取cox回归模型汇总统计信息(风险率HR、调整风险率及其置信区间、模型系数的t检验的p值、Wald检验的p值和似然比检验的p值)、汇总统计
Responses of different people in technology companies to bugs | daily anecdotes
MySQL advanced learning summary 7: MySQL data structure - Comparison of hash index, AVL tree, B tree and b+ tree
消除IBM P750小机上的黄色报警灯[通俗易懂]