提示:其它语言是由 Google 机器翻译的。 你可以访问 English 版本。
登录
x
or
x
x
马上登记
x

or

如何排名重复没有跳过Excel中的数字?

一般情况下,当我们对重复列表进行排名时,会跳过一些数字,如下面的截图1所示,但在某些情况下,我们只想排列唯一的数字或排名重复的同一数字,而不会跳过屏幕截图2所示的数字。 你有任何在Excel中解决这个问题的技巧吗?

doc无需跳过1即可排名重复 doc无需跳过2即可排名重复

排名重复,不会跳过数字

Office选项卡在Office中启用选项卡式编辑和浏览,使您的工作更轻松......
Kutools for Excel - 最佳办公生产力工具将解决您的大部分Excel问题
  • 重用任何东西: 将最常用或最复杂的公式,图表和其他任何内容添加到您的收藏夹中,并在将来快速重复使用它们。
  • 超过20文本功能: 从文本字符串中提取数字; 提取或删除部分文本; 将数字和货币转换为英语单词...
  • 合并工具:多个工作簿和表格合二为一; 合并多个单元格/行/列而不丢失数据; 合并重复行和总和...
  • 拆分工具:根据价值将数据拆分为多个表格; 一个工作簿到多个Excel,PDF或CSV文件; 一列到多列......
  • 粘贴跳过 隐藏/过滤行; 数和总和 按背景颜色; 创建邮件列表和 通过Cell的价值发送电子邮件...
  • 超级过滤器: 创建高级过滤方案并应用于任何工作表; 排序 按周,日,频率等; 筛选 通过大胆,公式,评论......
  • 超过300强大的功能; 适用于Office 2007-2019和365; 支持所有语言; 在公司轻松部署; 全功能60天免费试用。

箭头蓝色右泡 排名重复,不会跳过数字


如果要使用唯一编号排列所有数据,请选择数据旁边的空白单元C2,然后键入此公式 =RANK(A2,$A$2:$A$14,1)+COUNTIF($A$2:A2,A2)-1,并向下拖动自动填充控制柄以将此公式应用于单元格。 看截图:
doc无需跳过5即可排名重复

如果你想用相同的数字排列重复,你可以应用这个公式 =SUM(IF(A2>$A$2:$A$14,1/COUNTIF($A$2:$A$14,$A$2:$A$14)))+1 在数据的下一个单元格中,按 Shift + Ctrl + Enter 键一起,然后拖动自动填充手柄。 看截图:
doc无需跳过4即可排名重复

提示。如果您想要快速选择并高亮显示重复项或唯一值,请尝试使用Kutools for Excel 选择重复和唯一单元格 实用程序,如以下屏幕截图所示。 它在60天没有限制的全功能, 请立即下载并免费试用。

doc在列6上突出显示重复项

Kutools for Excel - 最佳办公生产力工具提高80%的生产力

  • 重用: 快速插入 复杂的公式,图表 以及你以前用过的任何东西; 加密单元格 密码; 创建邮件列表 并发送电子邮件...
  • 超级方程式酒吧 (轻松编辑多行文字和公式); 阅读布局 (轻松读取和编辑大量单元格); 粘贴到过滤范围...
  • 合并单元格/行/列 不丢失数据; 分裂细胞含量; 组合重复的行/列...防止重复的细胞; 比较范围...
  • 选择复制或唯一 行; 选择空行 (所有细胞都是空的); 超级查找和模糊查找 在许多工作簿中; 随机选择......
  • 精确复制 多个单元格而不更改公式参考; 自动创建参考 多张表; 插入项目符号,复选框等等......
  • 提取文本,添加文本,按位置删除, 删除空间; 创建和打印分页小计; 在单元格内容和注释之间转换...
  • 超级过滤器 (将过滤方案保存并应用到其他工作表); 高级排序 按月/周/日,频率等; 特殊过滤器 用粗体,斜体......
  • 结合工作簿和工作表; 根据键列合并表; 将数据拆分为多个表格; 批量转换xls,xlsx和PDF...
  • 超过300强大的功能。 支持Office / Excel 2007-2019和365。 支持所有语言。 在您的企业或组织中轻松部署。 全功能60天免费试用。
kte tab 201905

Office选项卡为Office提供选项卡式界面,使您的工作更轻松

  • 在Word,Excel,PowerPoint中启用选项卡式编辑和阅读,Publisher,Access,Visio和Project。
  • 在同一窗口的新选项卡中打开并创建多个文档,而不是在新窗口中。
  • 通过50%提高您的工作效率,每天为您减少数百次鼠标点击!
官方底部
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    Katrina · 2 months ago
    This is showing the rank in ascending order. Can I get it to show in descending order?
  • To post as a guest, your comment is unpublished.
    Philip J · 5 months ago
    This formula will allow ties and not skip in ranks when scoring see cell F35 for the example
    https://docs.google.com/spreadsheets/d/1Y1AHRn-bRnVex-tFwbPV9bN4t46usrFAvRPsUPUn6i4/edit?usp=sharing


    =SUMPRODUCT((DD34<$F34:$DT34)/COUNTIF($F34:$DT34,$F34:$DT34))+1
  • To post as a guest, your comment is unpublished.
    Miguel · 7 months ago
    =RANK(A2,$A$2:$A$14,1)+COUNTIF($A2:A$3,A2)-1 This formula has a problem:

    If the 3 first records are the same number the formula will generate a duplicate ranking for the Record #1 and Record #3 .

    Example: 10 , 10, 10, 21, 4, 9 the ranking generated will be 3, 2, 3, 1, 6, 5 Ranking # is generated twice
    • To post as a guest, your comment is unpublished.
      Sunny · 7 months ago
      Dear Miguel, thanks for your pointing out mistake, I have updated the tutorial, you can try this formula =RANK(A2,$A$2:$A$14,1)+COUNTIF($A$2:A2,A2)-1
  • To post as a guest, your comment is unpublished.
    Joe Dirt · 8 months ago
    It's a very nice example, but you inverted the ranking in the end... in the original rank (19) was the highest value and had a rank of 1. In your pair of formulas it made (10), which is actually the lowest number in the set rank 1.

    How do you adjust the formula so (19) stays with a rank of 1?
    • To post as a guest, your comment is unpublished.
      Sunny · 7 months ago
      Hello, Joe Dirt, I do not get your problem clearly, could you give me more details?
  • To post as a guest, your comment is unpublished.
    Me · 1 years ago
    Thank You.
  • To post as a guest, your comment is unpublished.
    Raz · 1 years ago
    The formula works if have to rank up to 100. From 100 skips to 102.
  • To post as a guest, your comment is unpublished.
    Chris · 1 years ago
    Thank you for the formula. How do you keep it staying at zero when you don't type anything yet.
    • To post as a guest, your comment is unpublished.
      Sunny · 1 years ago
      Do you mean keep blank cells display zero in general or when you count numbers?
  • To post as a guest, your comment is unpublished.
    Bob · 1 years ago
    Thank you very much for sharing how to rank using consecutive numbers! It was just what I was looking for. Very counter-intuitive for sure, and I've written a few formulas that make your head hurt. This one made MY head hurt! :)