Rank results

Xander78

New Member
Joined
Sep 15, 2016
Messages
2
Hi,

I'm trying to rank data based on 'Groups' & 'Score'. I've tried using SUMPRODUCT with no success.
There are blank cells in the score column but the formula is labelling them with a rank of 1.
I just need a unique rank 1-? for each group if there's a score with 1 being the best (see table below what im trying to achieve)
The data also contains negative values. Hope someone can assist :confused:

=SUMPRODUCT(($A$2:$A$82=A2)*(B2<$B$2:$B$82))+1

[TABLE="width: 322"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD]Groups[/TD]
[TD]score[/TD]
[TD]rank[/TD]
[/TR]
[TR]
[TD]GROUP 1[/TD]
[TD]-33[/TD]
[TD]8[/TD]
[/TR]
[TR]
[TD]GROUP 1[/TD]
[TD]60[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]GROUP 1[/TD]
[TD]42[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]GROUP 1[/TD]
[TD]25[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]GROUP 1[/TD]
[TD]44[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]GROUP 1[/TD]
[TD]15[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]GROUP 1[/TD]
[TD]-6[/TD]
[TD]7[/TD]
[/TR]
[TR]
[TD]GROUP 1[/TD]
[TD]10[/TD]
[TD]6[/TD]
[/TR]
[TR]
[TD]GROUP 2[/TD]
[TD]100[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]GROUP 2[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]GROUP 2[/TD]
[TD]45[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]GROUP 2[/TD]
[TD]53[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]GROUP 2[/TD]
[TD]46[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]GROUP 2[/TD]
[TD]36[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]GROUP 3[/TD]
[TD]0[/TD]
[TD]6[/TD]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TD]
[/TR]
[TR]
[TD]GROUP 5[/TD]
[TD]0[/TD]
[TD]7[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Hi Xander,

Is there a reason why you are unable to remove the blank cells?

Have you looked into the 'GoTo Special' options by pressing F5?
 
Upvote 0

Forum statistics

Threads
1,223,214
Messages
6,170,774
Members
452,353
Latest member
strainu

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top