Como classificar os números do intervalo de forma exclusiva, sem duplicatas no Excel?
No Microsoft Excel, a função de classificação normal fornece a mesma classificação aos números duplicados. Por exemplo, se o número 100 aparecer duas vezes no intervalo selecionado, e o primeiro número 100 receber a classificação 1, o último número 100 também terá a classificação 1 e isso ignorará alguns números. Mas, às vezes, você precisa classificar esses valores exclusivamente conforme as capturas de tela mostradas a seguir. Para obter mais detalhes sobre a classificação exclusiva, siga o tutorial a seguir mostrado passo a passo.
Nesta seção, mostraremos como classificar os números do intervalo exclusivamente em ordem decrescente.
Pegue os dados da captura de tela abaixo como exemplo, você pode ver que há vários números duplicados no intervalo A2: A11.
1. Selecione o B2, copie e cole a fórmula =RANK(A2,$A$2:$A$11,0)+COUNTIF($A$2:A2,A2)-1 no Barra de Fórmula, em seguida, pressione o botão Entrar chave. Veja a imagem:
2. Então, o número do ranking é mostrado na célula B2. Selecione a célula B2 e coloque o cursor em seu canto inferior direito, quando uma pequena cruz preta aparecer, arraste-a para baixo até a célula B11. Então, a classificação única é bem-sucedida. Veja a imagem:
Se você deseja classificar os números do intervalo exclusivamente em ordem crescente, faça o seguinte.
1. Selecione a célula B2, copie e cole a fórmula =RANK(A2,$A$2:$A$11,1)+COUNTIF($A$2:A2,A2)-1 no Barra de Fórmula, em seguida, pressione o botão Entrar chave. Em seguida, o primeiro número de classificação é exibido na célula B2.
2. Selecione a célula B2, arraste a alça de preenchimento para baixo até a célula B11 e a classificação exclusiva será concluída.
You are guest
or post as a guest, but your post won't be published automatically.
- To post as a guest, your comment is unpublished.· 1 years agoThis tip was PERFECT in solving my sorting issue! Thanks very much!!!
- To post as a guest, your comment is unpublished.· 1 years agoI 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)-1In 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?
- To post as a guest, your comment is unpublished.· 1 years agoFormulas for unique ascending and descending are identical. Ascending should be: =RANK(A2,$A$2:$A$11,1)+COUNTIF(A2:$A$2,A2)-1.
- To post as a guest, your comment is unpublished.· 1 years agoif you see the below ranking, where the duplicate numbers found, number is missing.
After 23 it goes to 25, after 29 it goes to 30, Formula miss the next number like - 24 & 29
- To post as a guest, your comment is unpublished.· 1 years agoWhat's the formula for this ranking where it combines same values into one ranking???
- To post as a guest, your comment is unpublished.· 2 years agoHi, 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.· 2 years agoif 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.· 2 years agoWhy 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.· 3 years agoThe 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.· 3 years agoThis 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.· 3 years agoThank you so much! Love the solution.
- To post as a guest, your comment is unpublished.· 3 years agoThis formula is stupid and only works if there is one duplicate !
- To post as a guest, your comment is unpublished.· 3 years agoDear 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.· 3 years agoYOUR FORMULA DOES NOT WORK
- To post as a guest, your comment is unpublished.· 2 years agoIt 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.· 3 years agoworks for me.
- To post as a guest, your comment is unpublished.· 4 years agoHello 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.· 2 years agoUse Large function
- To post as a guest, your comment is unpublished.· 4 years agoThank You, really appreciate the help. :D
- To post as a guest, your comment is unpublished.· 4 years agoWow 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.