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

or

如何在Excel中独一无二地排列范围数字?

在Microsoft Excel中,正常的排名函数会给出重复的数字相同的排名。 例如,如果数字100在选定范围内出现两次,并且第一个数字100取得1的排名,则最后一个数字100也将取得1的排名,这将跳过一些数字。 但是,有时候,您需要将这些值唯一地排列,如下面的截图所示。 有关独特排名的更多详情,请按照以下教程一步一步完成。

排名范围数字以降序排列

排序范围数字以升序排列唯一


您可能感兴趣的是:

将多个工作表/工作簿合并到一个工作表/工作簿中:

将多个工作表或工作簿合并到一个工作表或工作簿中可能是您​​日常工作中的一项重大任务。 但是,如果你有 Kutools for Excel,其强大的效用 - 结合 可以帮助您将多个工作表,工作簿快速合并到一个工作表或工作簿中。

Kutools for Excel 包含了比300更方便的Excel工具。 免费试用60天无限制。 了解更多 立即下载免费试用版

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

排名范围数字以降序排列


在本节中,我们将向您展示如何以降序排列唯一的范围数字。

以下面截图的数据为例,您可以看到A2:A11范围内有多个重复的数字。

1。 选择B2,复制并粘贴公式 =RANK(A2,$A$2:$A$11,0)+COUNTIF($A$2:A2,A2)-1配方栏,然后按 输入 键。 看截图:

2。 然后排序号码显示在单元格B2中。 选择单元格B2并将光标放在其右下角,当显示一个黑色小十字时,将其拖至单元格B11。 那么独特的排名是成功的。 看截图:


排序范围数字以升序排列唯一

如果您想要按升序排列唯一的范围数字,请按照以下步骤操作。

1。 选择单元格B2,复制并粘贴公式 =RANK(A2,$A$2:$A$11,1)+COUNTIF($A$2:A2,A2)-1配方栏,然后按 输入 键。 然后,第一个排名数字显示在单元格B2中。

2。 选择单元格B2,将填充手柄向下拖动到单元格B11,然后完成唯一排名。


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.
    Musawir · 9 months ago
    Hi, This formula just ranks all numbers in ascending/descending order and doesn't combine the duplicates into one rank. How do I combine the ranking for duplicates, for example two duplicate 100s to be combined and both ranked as 1, 3 duplicate 90s to be combined and ranked as 2, 2 duplicate 80s ranked as 3, etc.? In your example of total 10 students I want a formula that will rank the two 100s as 1, rank the two 90s as 2, rank the two 80s as 3, etc. Please help. Thanks
    • To post as a guest, your comment is unpublished.
      Alex · 17 days ago
      if you do want this kind of ranking, what I would do is copy the whole list somewhere else, then use remove duplicates in the Data menu to leave only the individual values. rank these individual scores using a standard RANK formula and then use a simple VLOOKUP formula to return the value against the score in the full list.

      this will show the values the way you want above.
    • To post as a guest, your comment is unpublished.
      Alex · 17 days ago
      Why do you need to do this? a standard RANK formula will rank these examples as 1, 1, 3, 3, 5, 5. this is a much more usual way of ranking as if there are 2 first places the next in line would usually logically be 3rd not 2nd.
  • To post as a guest, your comment is unpublished.
    Jack · 1 years ago
    The formula doesn't seem to work sometimes, and I think it might be due to a rounding error. RANK and COUNTIF probably treat rounding differently. If I first use ROUND on the range I want to rank it seems to work.
    • To post as a guest, your comment is unpublished.
      Rio · 1 years ago
      This is absolutely key. I've often encountered an error where it would still randomly duplicate a few ranks using this method and could not for the life of me work out why, really frustrating, especially if you need a complete set of rankings for lookups elsewhere - overriding / typing simply not an option. Jack has nailed this. Round the range you want to rank (even if it's in a separate column so you don't affect the integrity of your data), problem solved. Thanks Jack!!
  • To post as a guest, your comment is unpublished.
    Monisha · 1 years ago
    Thank you so much! Love the solution.
  • To post as a guest, your comment is unpublished.
    Matt · 1 years ago
    This formula is stupid and only works if there is one duplicate !
    • To post as a guest, your comment is unpublished.
      crystal · 1 years ago
      Dear Matt,
      The formula works well in my case even though multiple duplicates exist in the column. Can you provide your Excel version?
  • To post as a guest, your comment is unpublished.
    jHAA lEE · 1 years ago
    YOUR FORMULA DOES NOT WORK
    • To post as a guest, your comment is unpublished.
      Pavel · 7 months ago
      It does - generally there can be two things which can cause it

      1) You did not freeze the links properly (F4) - check the dollar signs in the formula.
      2) it somehow doesn't work on numbers with multiple decimal points - ideall is to have the numbers rounded to some definite number (even decimal)

      If both of these things are well managed, it will work.
    • To post as a guest, your comment is unpublished.
      Iain · 1 years ago
      works for me.
  • To post as a guest, your comment is unpublished.
    Dave · 2 years ago
    Hello all, I have mastered the ranking but how do I get the ranking to auto calculate points eg 1st equals 100 points 2nd equals 50 etc
  • To post as a guest, your comment is unpublished.
    Jete · 2 years ago
    Thank You, really appreciate the help. :D
  • To post as a guest, your comment is unpublished.
    kelly mort · 2 years ago
    Wow just loved this. Thanks a lot . Please say I am ranking a column then the duplicates come. If I wanna then use a criteria like the total to separate the tie what will be the function? Here I am using the min max to rank so when there is any number appearing more than once I want to separate them with the totals instead. Please help. Thanks.

    Kelly