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

查看:25
本文介绍了如何在不重复的情况下对 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 列中的日期.

Assuming date in in Column A.

这里有一个关于这个公式的很好的讨论:http://www.excelforum.com/excel-formulas-and-functions/672016-un-skiping-the-rank-after-a-duplicate-value-to-get-a-regular-series.html

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天全站免登陆