ไปยังเนื้อหาหลัก

วิธีจัดเรียงข้อมูลตามค่าที่พบบ่อยที่สุดใน Excel

สมมติว่าคุณมีรายการข้อมูลจำนวนมากในแผ่นงานของคุณและตอนนี้คุณต้องการจัดเรียงรายการนี้ตามความถี่ที่แต่ละคำเกิดขึ้น กล่าวคือค่าที่พบบ่อยที่สุด (เช่นเกิดขึ้นสี่ครั้งในคอลัมน์) จะแสดงรายการก่อนจากนั้นตามด้วยคำที่เกิดขึ้นสามครั้งสองครั้งและหนึ่งครั้งตามภาพหน้าจอที่แสดง คุณจะแก้ปัญหานี้ใน Excel ได้อย่างไร


จัดเรียงข้อมูลตามค่าที่พบบ่อยที่สุดด้วยคอลัมน์ตัวช่วย

ใน Excel ไม่มีฟังก์ชันโดยตรงสำหรับคุณในการจัดเรียงข้อมูลตามความถี่ของการเกิดขึ้นพร้อมกันคุณต้องนับค่าที่เกิดขึ้นก่อนจากนั้นจึงใช้ฟังก์ชันการเรียงลำดับใน Excel

1. เลือกเซลล์ว่างข้างคอลัมน์ต้นฉบับแล้วป้อนสูตรนี้ = COUNTIF ($ A $ 2: $ A $ 16, A2) จากนั้นลาก AutoFill Handle ของเซลล์นี้ลงไปยังช่วงตามที่คุณต้องการ ดูภาพหน้าจอ:

หมายเหตุ: ในสูตรข้างต้น A2: A16 คือรายการที่ระบุซึ่งคุณจะจัดเรียงตามความถี่และ A2 เป็นข้อมูลแรกของรายการนี้

2. เลือกเซลล์สูตรเหล่านี้ต่อไปแล้วคลิก ข้อมูล > เรียงลำดับ A ถึง Z or จัดเรียง Z ถึง A ตามที่คุณต้องการ ดูภาพหน้าจอด้านล่าง:

3. ในการเปิดกล่องโต้ตอบคำเตือนการเรียงลำดับโปรดตรวจสอบไฟล์ ขยายส่วนที่เลือก ตัวเลือกและคลิกที่ ประเภท ปุ่ม. ดูภาพหน้าจอด้านบน:

4. และตอนนี้คอลัมน์เดิมได้รับการจัดเรียงตามความถี่แล้ว (ดูภาพหน้าจอด้านล่าง) หากจำเป็นโปรดลบคอลัมน์ตัวช่วยที่เพิ่มเข้ามา


จัดเรียงข้อมูลตามค่าที่พบบ่อยที่สุดด้วย Kutools for Excel

จริงๆแล้ว Kutools for Excel มีวิธีแก้ปัญหาโดยตรงในการจัดเรียงรายการ / คอลัมน์ใด ๆ ตามความถี่ได้อย่างง่ายดายด้วยไฟล์ การเรียงลำดับขั้นสูง ยูทิลิตี้ กรุณาดำเนินการดังนี้:

Kutools สำหรับ Excel - เต็มไปด้วยเครื่องมือที่จำเป็นสำหรับ Excel มากกว่า 300 รายการ เพลิดเพลินกับฟีเจอร์ทดลองใช้ฟรี 30 วันโดยไม่ต้องใช้บัตรเครดิต! ดาวน์โหลดเดี๋ยวนี้!

1. เลือกรายการที่คุณต้องการจัดเรียงตามความถี่แล้วคลิก Kutools พลัส > เรียงลำดับ> เรียงลำดับขั้นสูง. ดูภาพหน้าจอ:

2. ในการโผล่ขึ้นมา การเรียงลำดับขั้นสูง โปรดเลือกคอลัมน์ที่คุณจะจัดเรียงตามความถี่เลือก เวลา จาก จัดเรียงบน รายการแบบเลื่อนลงระบุไฟล์ สั่งซื้อ ที่คุณต้องการแล้วคลิกปุ่มตกลง ดูภาพหน้าจอ:

Kutools สำหรับ Excel's การเรียงลำดับขั้นสูง ยูทิลิตี้ช่วยให้เรามีวิธีการเรียงลำดับที่ยืดหยุ่นมากขึ้น: จัดเรียงตามความยาวของข้อความเรียงตามนามสกุลจัดเรียงตามค่าสัมบูรณ์ ฯลฯ คลิกเพื่อทราบข้อมูลเพิ่มเติม ...

Kutools สำหรับ Excel - เพิ่มประสิทธิภาพ Excel ด้วยเครื่องมือที่จำเป็นมากกว่า 300 รายการ เพลิดเพลินกับฟีเจอร์ทดลองใช้ฟรี 30 วันโดยไม่ต้องใช้บัตรเครดิต! Get It Now

ค้นหาค่าข้อความหรือตัวเลขที่ใช้บ่อยที่สุดใน Excel ได้อย่างรวดเร็ว

โดยทั่วไปเราสามารถใช้ฟังก์ชัน MODE เพื่อค้นหาหมายเลขที่ใช้บ่อยที่สุดใน Excel แต่จะรับค่าข้อความที่พบบ่อยที่สุดจากช่วงที่ระบุได้อย่างไร? Kutools สำหรับ Excel's ค้นหาค่าที่พบบ่อยที่สุด สูตรเป็นวิธีง่ายๆสำหรับคุณ!



Kutools สำหรับ Excel - เพิ่มประสิทธิภาพ Excel ด้วยเครื่องมือที่จำเป็นมากกว่า 300 รายการ เพลิดเพลินกับฟีเจอร์ทดลองใช้ฟรี 30 วันโดยไม่ต้องใช้บัตรเครดิต! Get It Now


ทดลอง


Kutools สำหรับ Excel: เครื่องมือแสนสะดวกกว่า 300 รายการอยู่แค่เพียงปลายนิ้วสัมผัส! เริ่มทดลองใช้ฟรี 30 วันโดยไม่มีข้อจำกัดด้านฟีเจอร์ตั้งแต่วันนี้ Download Now!

บทความที่เกี่ยวข้อง:

สุดยอดเครื่องมือเพิ่มผลผลิตในสำนักงาน

🤖 Kutools AI ผู้ช่วย: ปฏิวัติการวิเคราะห์ข้อมูลโดยยึดตาม: การดำเนินการที่ชาญฉลาด   |  สร้างรหัส  |  สร้างสูตรที่กำหนดเอง  |  วิเคราะห์ข้อมูลและสร้างแผนภูมิ  |  เรียกใช้ฟังก์ชัน Kutools...
คุณสมบัติยอดนิยม: ค้นหา เน้น หรือระบุรายการที่ซ้ำกัน   |  ลบแถวว่าง   |  รวมคอลัมน์หรือเซลล์โดยไม่สูญเสียข้อมูล   |   รอบโดยไม่มีสูตร ...
การค้นหาขั้นสูง: VLookup หลายเกณฑ์    VLookup หลายค่า  |   VLookup ข้ามหลายแผ่น   |   การค้นหาที่ไม่ชัดเจน ....
รายการแบบเลื่อนลงขั้นสูง: สร้างรายการแบบหล่นลงอย่างรวดเร็ว   |  รายการแบบหล่นลงขึ้นอยู่กับ   |  เลือกหลายรายการแบบหล่นลง ....
ผู้จัดการคอลัมน์: เพิ่มจำนวนคอลัมน์เฉพาะ  |  ย้ายคอลัมน์  |  สลับสถานะการมองเห็นของคอลัมน์ที่ซ่อนอยู่  |  เปรียบเทียบช่วงและคอลัมน์ ...
คุณสมบัติเด่น: กริดโฟกัส   |  มุมมองการออกแบบ   |   บาร์สูตรใหญ่    สมุดงานและตัวจัดการชีต   |  ห้องสมุดทรัพยากร (ข้อความอัตโนมัติ)   |  เลือกวันที่   |  รวมแผ่นงาน   |  เข้ารหัส/ถอดรหัสเซลล์    ส่งอีเมลตามรายการ   |  ซุปเปอร์ฟิลเตอร์   |   ตัวกรองพิเศษ (กรองตัวหนา/ตัวเอียง/ขีดทับ...) ...
ชุดเครื่องมือ 15 อันดับแรก12 ข้อความ เครื่องมือ (เพิ่มข้อความ, ลบอักขระ, ... )   |   50 + แผนภูมิ ประเภท (แผนภูมิ Gantt, ... )   |   40+ ใช้งานได้จริง สูตร (คำนวณอายุตามวันเกิด, ... )   |   19 การแทรก เครื่องมือ (ใส่ QR Code, แทรกรูปภาพจากเส้นทาง, ... )   |   12 การแปลง เครื่องมือ (ตัวเลขเป็นคำ, การแปลงสกุลเงิน, ... )   |   7 ผสานและแยก เครื่องมือ (แถวรวมขั้นสูง, แยกเซลล์, ... )   |   ... และอื่น ๆ

เพิ่มพูนทักษะ Excel ของคุณด้วย Kutools สำหรับ Excel และสัมผัสประสิทธิภาพอย่างที่ไม่เคยมีมาก่อน Kutools สำหรับ Excel เสนอคุณสมบัติขั้นสูงมากกว่า 300 รายการเพื่อเพิ่มประสิทธิภาพและประหยัดเวลา  คลิกที่นี่เพื่อรับคุณสมบัติที่คุณต้องการมากที่สุด...

รายละเอียด


แท็บ Office นำอินเทอร์เฟซแบบแท็บมาที่ Office และทำให้งานของคุณง่ายขึ้นมาก

  • เปิดใช้งานการแก้ไขและอ่านแบบแท็บใน Word, Excel, PowerPoint, ผู้จัดพิมพ์, Access, Visio และโครงการ
  • เปิดและสร้างเอกสารหลายรายการในแท็บใหม่ของหน้าต่างเดียวกันแทนที่จะเป็นในหน้าต่างใหม่
  • เพิ่มประสิทธิภาพการทำงานของคุณ 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