跳到主要内容

如何按Excel中最频繁的值对数据进行排序?

假设您的工作表中有一长串数据,现在您想按每个单词出现的频率对该列表进行排序。 也就是说,首先列出最常见的值(例如,在该列中出现四次),然后紧跟其后的单词出现三次,两次和一次,如下面的屏幕快照所示。 您如何在Excel中解决此任务?


使用帮助程序列按最频繁的值对数据进行排序

在Excel中,没有直接函数可用于根据出现频率立即对数据进行排序,您需要首先计算值的出现,然后在Excel中应用排序函数。

1。 选择原始列旁边的空白单元格,然后输入此公式 = COUNTIF($ A $ 2:$ A $ 16,A2) 放入其中,然后根据需要将该单元格的“自动填充手柄”向下拖动到该范围。 看截图:

备注:在以上公式中, A2:A16 是您要按频率排序的指定列表,而A2是此列表的第一个数据。

2。 继续选择这些公式单元格,然后单击 时间 > 将A到Z排序 or 将Z排序到A 根据需要。 请参见下面的屏幕截图:

3。 在打开的“排序警告”对话框中,请检查 扩大选择 选项,然后单击 排序 按钮。 参见上面的截图:

4。 现在,原始列已经按照频率进行了排序(请参见下面的屏幕截图)。 如有必要,请删除添加的帮助器列。


使用 Kutools for Excel 按最常见的值对数据进行排序

实际上,Kutools for Excel 提供了一种直接的解决方法,可以轻松地按频率对任何列表/列进行排序 高级排序 效用。 请执行以下操作:

Kutools for Excel - 包含 300 多个 Excel 基本工具。 享受全功能 30 天免费试用,无需信用卡! 现在下载!

1.选择您需要按频率排序的列表,然后单击 Kutools 加 > 排序>高级排序。 看截图:

2.在弹出 高级排序 对话框,请选择要按频率排序的列,然后选择 频率 来自 排序 下拉列表中,指定 订购产品 所需,然后单击确定按钮。 看截图:

Kutools for Excel的 高级排序 实用程序为我们提供了更灵活的排序方法:按文本长度排序,按姓氏排序,按绝对值排序等。 点击了解更多...

Kutools for Excel - 使用 300 多种基本工具增强 Excel 功能。 享受全功能 30 天免费试用,无需信用卡! 立即行动吧!

快速在Excel中查找最常用的文本值或数字

一般来说,我们可以应用MODE函数来查找Excel中出现次数最多的数字。但如何从指定范围内获取出现次数最多的文本值呢? Excel 的 Kutools 寻找最普遍的价值 配方为您提供了一种简便的方法!



Kutools for Excel - 使用 300 多种基本工具增强 Excel 功能。 享受全功能 30 天免费试用,无需信用卡! 立即行动吧!


演示


Kutools for Excel:超过 300 个方便的工具触手可及! 立即开始 30 天免费试用,没有任何功能限制。 立即下载!

相关文章:

最佳办公生产力工具

🤖 Kutools 人工智能助手:基于以下内容彻底改变数据分析: 智能执行   |  生成代码  |  创建自定义公式  |  分析数据并生成图表  |  调用 Kutools 函数...
热门特色: 查找、突出显示或识别重复项   |  删除空白行   |  合并列或单元格而不丢失数据   |   不使用公式进行四舍五入 ...
超级查询: 多条件VLookup    多值VLookup  |   跨多个工作表的 VLookup   |   模糊查询 ....
高级下拉列表: 快速创建下拉列表   |  依赖下拉列表   |  多选下拉列表 ....
列管理器: 添加特定数量的列  |  移动列  |  切换隐藏列的可见性状态  |  比较范围和列 ...
特色功能: 网格焦点   |  设计图   |   大方程式酒吧    工作簿和工作表管理器   |  资源库 (自动文本)   |  日期选择器   |  合并工作表   |  加密/解密单元格    按列表发送电子邮件   |  超级筛选   |   特殊过滤器 (过滤粗体/斜体/删除线...)...
前 15 个工具集12 文本 工具 (添加文本, 删除字符,...)   |   50+ 图表 类型 (甘特图,...)   |   40+ 实用 公式 (根据生日计算年龄,...)   |   19 插入 工具 (插入二维码, 从路径插入图片,...)   |   12 转化 工具 (小写金额转大写, 货币兑换,...)   |   7 合并与拆分 工具 (高级组合行, 分裂细胞,...)   |   ... 和更多

使用 Kutools for Excel 增强您的 Excel 技能,体验前所未有的效率。 Kutools for Excel 提供了 300 多种高级功能来提高生产力并节省时间。  单击此处获取您最需要的功能...

产品描述


Office Tab 为 Office 带来选项卡式界面,让您的工作更加轻松

  • 在Word,Excel,PowerPoint中启用选项卡式编辑和阅读,发布者,Access,Visio和Project。
  • 在同一窗口的新选项卡中而不是在新窗口中打开并创建多个文档。
  • 每天将您的工作效率提高50%,并减少数百次鼠标单击!
Comments (9)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Hi there,

I am trying to sort the contents of an excel table in terms of the maximum number of "Yes" values that each row has in columns F to M of the table.

For example if row 36 has "Yes" in B, C, D, E and F (let us simplify and say this is the maximum number of "Yes" values), then row 36 should be at the top. If row 2 has "Yes" values in only B, D and E, then it should come after row 36: row 36 has 5 "Yes" values, row 2 has 3.

How do I do this? I am using excel on a mac, if that makes a difference. Thanks very much!!
This comment was minimized by the moderator on the site
Hi All

In this solution after getting occurrence ,rest of the sorting i want to do with excel 2016 formula

can anyone help me ...how we can sort with using 2016 version formula only
This comment was minimized by the moderator on the site
Hello, singh,
If you want to use a formula to sort the data, you can use the Sort function, but, this function is only available for Excel 365 and later versions.
=SORT(array, [sort_index], [sort_order], [by_col])

To get more detaied information of this function, the below article can help you!
https://www.extendoffice.com/excel/functions/excel-sort-function.html

Please have a try, thank you!
This comment was minimized by the moderator on the site
Not sure if my comment ever went through but I just figured out my goof! Thank you so much for posting this, it's exactly what I was looking for!!
This comment was minimized by the moderator on the site
Just what I was looking for! I'm just having a little trouble with it still because my list is first and last names and it's only looking at the first word. So for example, if the first 10 names were "Taylor Swift", it's including "Taylor Morrisen" in the count. I'm still working on figuring it out but definitely worth including in this article! Thanks for posting (:
This comment was minimized by the moderator on the site
DOES NOT WORK FOR ME!!!!!!!!!!!!!!!!!!!! If I give the =COUNTIF($A$2:$A$15,"="&$A2) - it does not count the values for me, but instead, it only writes the count of the data which is in the field A2!
This comment was minimized by the moderator on the site
Remove a dollar sign on A2
This comment was minimized by the moderator on the site
Hi Vipera, That may happen if you've got the "$" symbol in the wrong place. To make sure you have it correct, type in the cell number (eg E2) and then press "F4" until the $ symbol is in the correct place. Alternatively, as you are only copying the formula down one column, you can leave the second cell number without the $ symbol and it should still work fine.
This comment was minimized by the moderator on the site
Thanks for the excellent trick. Is helping me out in sorting the data of a major shipping port that I have which helps in bringing out super cool trivia stuff regarding that port! :D
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations