split rank in order when certain criteria is met

RPimentel

New Member
Joined
Aug 17, 2016
Messages
4
I run a class that ranks everyone but there is 2 different groups that have to be ranked. There is about 15 sheets and on 1 of those sheets I would like to separate the 2 groups and rank them in order. Here is what I have so far:

Because of ties I used this formula
=(COUNTIF($Y$2:Y2,Y2)-1)*0.00001+Y2

Then I ranked the 2 groups each in 1 column using this:
=COUNTIFS($B:$B,">"&$B2,$G:$G,G2)+COUNTIFS($B$2:$B2,$B2,$G$2:$G2,$G2)

so what I need to do is rank A column when G column is 1 on Sheet1!A then rank A column when G column is 2 on Sheet1!E

right now it looks like this
A G

2 1
4 2
7 1
8 1
3 1
1 2
3 2
1 1
6 1
5 1
2 2
4 1
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
I solved it by adding 2 rows and adding an if statement first to find out if G column is a 1 or 2 so looks like this:
=IF(G2=1,(COUNTIF($Y$2:Y2,Y2)-1)*0.00001+Y2,"")
AND ADDING
=IF(G2=2,(COUNTIF($Y$2:Y2,Y2)-1)*0.00001+Y2,"")
then I can index match in Sheet1!A and Sheet1!e with the respective rows. Add an iferror( ,"") to down the page in ranking
 
Upvote 0

Forum statistics

Threads
1,215,374
Messages
6,124,567
Members
449,171
Latest member
jominadeo

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