我想在excel中给出相同的数字 [英] I want to give same number to the duplicate data in excel

查看:171
本文介绍了我想在excel中给出相同的数字的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想为excel中的重复数据提供相同的号码

  AB 
apple 1
苹果1
苹果1
球2
蝙蝠3
狗4
狗4
山羊5
/ pre>

解决方案

排序列 A 然后插入数字<$单元格 B2 中的c $ c> 1 ,单元格 B3 中的以下函数和副本



在单元格 B2 = 1



单元格中的函数 B3 = if(A3 = A2,B2,B2 + 1)



更新




I want to give same number to the duplicate data in excel

 A      B
apple   1
apple   1
apple   1
ball    2
bat     3
dog     4
dog     4
goat    5

解决方案

Sort your column A then insert the number 1 in cell B2 and the following function in cell B3 and copy down.

in cell B2=1

function in cell B3: =if(A3=A2, B2, B2+1)

Update

这篇关于我想在excel中给出相同的数字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆