如何在Excel中对日期进行排名而不重复 [英] How to rank the date in Excel without duplicates

查看:322
本文介绍了如何在Excel中对日期进行排名而不重复的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

早上好.

我对Excel中的排名日期有疑问,请参见下面的图像,在排名列中,

I have a question about ranking date in excel, please see the image below, in the rank column,

我使用了公式:

=RANK($A3,$A:$A,1)

但这不是我想要的.

我只希望与目标格式"列中显示的日期共享相同的排名.谁能告诉我我应该采用什么公式来实现这一目标.

I just want the same date share same ranking as it is shown in my Target Format column. Can anyone please tell me know what formula should I apply to achieve this goal.

非常感谢.

推荐答案

或者您可以尝试使用数组公式:

Or you can try an array formula:

=SUMPRODUCT((A$1:A$6<A1)/COUNTIF(A$1:A$6,A$1:A$6&""))+1

假设日期在A列中.

对此公式进行了很好的讨论:

Here's a good discussion on this formula: http://www.excelforum.com/excel-formulas-and-functions/672016-un-skipping-the-rank-after-a-duplicate-value-to-get-a-regular-series.html

我的输出:

Date        number  rank
8/15/2017   1234    1
8/15/2017   4321    1
8/15/2017   4325    1
8/17/2017   8970    2
8/17/2017   8971    2
8/20/2017   5674    3

这篇关于如何在Excel中对日期进行排名而不重复的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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