انتقل إلى المحتوى الرئيسي

كيفية ترتيب أرقام النطاق بشكل فريد دون تكرار في 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 رسم الأنواع (مخطط جانت، ...)   |   40+ عملي الصيغ (احسب العمر على أساس تاريخ الميلاد، ...)   |   19 إدخال الأدوات (أدخل رمز الاستجابة السريعة, إدراج صورة من المسار، ...)   |   12 تحويل الأدوات (أرقام إلى كلمات, نتيجة تحويل عملة، ...)   |   7 دمج وتقسيم الأدوات (الجمع بين الصفوف المتقدمة, تقسيم الخلايا، ...)   |   ... و اكثر

عزز مهاراتك في Excel باستخدام Kutools for Excel، واختبر كفاءة لم يسبق لها مثيل. يقدم Kutools for Excel أكثر من 300 ميزة متقدمة لتعزيز الإنتاجية وتوفير الوقت.  انقر هنا للحصول على الميزة التي تحتاجها أكثر...

الوصف


يجلب Office Tab الواجهة المبوبة إلى Office ، ويجعل عملك أسهل بكثير

  • تمكين التحرير والقراءة المبوبة في Word و Excel و PowerPointوالناشر والوصول و Visio والمشروع.
  • فتح وإنشاء مستندات متعددة في علامات تبويب جديدة من نفس النافذة ، بدلاً من النوافذ الجديدة.
  • يزيد من إنتاجيتك بنسبة 50٪ ، ويقلل مئات النقرات بالماوس كل يوم!
Comments (25)
No ratings yet. Be the first to rate!
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.
This comment was minimized by the moderator on the site
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.
This comment was minimized by the moderator on the site
Thanks Jack, from the future!
This comment was minimized by the moderator on the site
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!!
This comment was minimized by the moderator on the site
Thank you so much! Love the solution.
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