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

วิธีการจัดอันดับหมายเลขช่วงโดยไม่ซ้ำกันโดยไม่ซ้ำกันใน Excel

ใน Microsoft Excel ฟังก์ชันอันดับปกติจะให้ตัวเลขที่ซ้ำกันอยู่ในอันดับเดียวกัน ตัวอย่างเช่นหากหมายเลข 100 ปรากฏขึ้นสองครั้งในช่วงที่เลือกและหมายเลข 100 แรกอยู่ในอันดับที่ 1 หมายเลขสุดท้าย 100 จะอยู่ในอันดับที่ 1 และจะข้ามตัวเลขบางตัวไป แต่บางครั้งคุณต้องจัดอันดับค่าเหล่านี้โดยไม่ซ้ำกันตามภาพหน้าจอต่อไปนี้ที่แสดง สำหรับรายละเอียดเพิ่มเติมเกี่ยวกับการจัดอันดับที่ไม่ซ้ำกันโปรดทำตามบทช่วยสอนต่อไปนี้ที่แสดงทีละขั้นตอน

จัดอันดับหมายเลขช่วงโดยไม่ซ้ำกันตามลำดับจากมากไปหาน้อย

จัดอันดับหมายเลขช่วงโดยไม่ซ้ำกันตามลำดับจากน้อยไปมาก


จัดอันดับหมายเลขช่วงโดยไม่ซ้ำกันตามลำดับจากมากไปหาน้อย

ในส่วนนี้เราจะแสดงวิธีจัดลำดับหมายเลขช่วงโดยไม่ซ้ำกันโดยเรียงลำดับจากมากไปหาน้อย

ใช้ข้อมูลของภาพหน้าจอด้านล่างเป็นตัวอย่างคุณจะเห็นว่ามีตัวเลขที่ซ้ำกันหลายตัวในช่วง 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 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 (27)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Hi every one, i have this formula
=RIJEN($H$2:$H$7)-SOMPRODUCT(--(H2-E2/10000>$H$2:$H$7-$E$2:$E$7/10000))

it determines the rank of a value in a column. if there is an equal value, the rank is determined by a 2nd value in another column. Now the problem is when negative numbers occur in the 2nd column, the rank is determined inversely -1 gets a lower rank than 0

can anyone adjust this formula or create a new one for excel 2007 dutch version
This comment was minimized by the moderator on the site
Hi every one, i have this formula
=RIJEN($H$2:$H$7)-SOMPRODUCT(--(H2-E2/10000>$H$2:$H$7-$E$2:$E$7/10000))

it determines the rank of a value in a column. if there is an equal value, the rank is determined by a 2nd value in another column. Now the problem is when negative numbers occur in the 2nd column, the rank is determined inversely -1 gets a lower rank than 0

can anyone adjust this formula or create a new one for excel 2007 dutch version

thanks
This comment was minimized by the moderator on the site
Hey so I just worked on this formula for the past 45 minutes. The above formula is wrong, the output does provide duplicates but that is only because the countif range is not accounting for the entire range.

Above the descending formula is: =RANK(A2,$A$2:$A$11,0)+COUNTIF($A$2:A2,A2)-1

The bold/underlined A2 cell should be equal to the ending of the range which is A11. Which would make correct forumla stance:

=round(RANK(A2,$A$2:$A$11,0)+COUNTIF($A$2:A7,A2)-1

For visuals, on my sheet I created a leader tracking board with the following formula and I got no duplicates see below 2 images with duplicate numbers but different ranking levels:


My Descending formula: =round(RANK(D7,$D$7:$BY$7)+countif($D$7:$BY$7,D7)-1)
Key Notes:
- My range is locked
- D7 is the start of my range and BY7 is the end of my range
- I have added the round formula to account for any decimals
- the (-1) will automatically subtract from the previous ranking.
This comment was minimized by the moderator on the site
Hi Zoe,
Thank you for your feedback. I will check the formula and make the changes.
This comment was minimized by the moderator on the site
It's very helpful content. Thank You so much.
This comment was minimized by the moderator on the site
Thank you for the solution! Works perfectly!
This comment was minimized by the moderator on the site
This tip was PERFECT in solving my sorting issue! Thanks very much!!!
This comment was minimized by the moderator on the site
I still have duplicate rankings. Before I used COUNTIF the rankings were 4 for both, now they are both ranked 5 with COUNTIF BUT in my chart, it will only list one of the items twice instead of listing both items. Here is my formula: =RANK(V3,V$3:V$30, 1)+COUNTIF(V$3:V$30:V3,V3)-1
In the ranking chart it displays rank 4 as team 1 and rank 5 as team 1 since team 1 and team 2 have the same rank, team 2 is not listed. Here is the formula for those cells:=INDEX($L$3:$L$30,MATCH(SMALL($V$3:$V$30,Y3),$V$3:$V$30,0))
How do I make sure teams that are tied do not get left off list?


This comment was minimized by the moderator on the site
Formulas for unique ascending and descending are identical. Ascending should be: =RANK(A2,$A$2:$A$11,1)+COUNTIF(A2:$A$2,A2)-1.
This comment was minimized by the moderator on the site
if you see the below ranking, where the duplicate numbers found, number is missing.
Exmples
After 23 it goes to 25, after 29 it goes to 30, Formula miss the next number like - 24 & 29

Score Rank

4661 21

4650 22

4648 23

4645 25

4645 25

4644 26

4629 27

4626 28

4595 30

4595 30

4578 31

4438 32
This comment was minimized by the moderator on the site
What's the formula for this ranking where it combines same values into one ranking???
This comment was minimized by the moderator on the site
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
This comment was minimized by the moderator on the site
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.
This comment was minimized by the moderator on the site
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.
There are no comments posted here yet
Load More
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations