在Excel中创建序列列 [英] Create a sequence column in Excel

查看:49
本文介绍了在Excel中创建序列列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一列带有名称的列,并且我想添加一列,该列根据名称对每一行的顺序进行计数.因此,如果一个名称出现多次(即4),则该名称的第一行将具有序列1,第二行将具有序列2,依此类推...

I have a column with names and i wanted to add a column that count the sequence of each row based on the name. So if a name appears multiple time (i.e 4), the first row of that name will have sequence 1 and the 2nd row sequence 2, etc...

Name        Sequence    
Andrew       1    
Andrew       2    
Andrew       3    
Paul         1    
Amy          1    
Amy          2    
Jean         1

推荐答案

在可变范围内使用COUNTIF:

Use COUNTIF with a variable range:

=COUNTIF($A$1:A2,A2)

这篇关于在Excel中创建序列列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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