Ranking of data in non-continuous rows

siddharthnk

New Member
Joined
Jun 20, 2013
Messages
48
Hi,

I need help in ranking data in non-continuous rows. I have two columns. Column A has numbers that need to be ranked. For example we will take the numbers 100, 75, 100, 75 & 50 in that order from cell A1 to A5. The second column has the letters Y or N which will be arrived at based on certain conditions from cell B1 to B5. The ranking only needs to happen on numbers in rows where there is a Y in column B with the highest number getting the 1st rank. If there are identical numbers in column A, these identical numbers should not have the same rank and again no rank should be skipped.
In the above example if the 100's and the 75 have a Y next to them, the ranking should be as follows
100=1st rank, (2nd)100 = 2nd rank, 75 = 3rd rank.

Thanking you in advance
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
Maybe...



A

B

C

1

Values​

Y/N​

Rank​

2

100​

Y​

1​

3

75​

N​

4

100​

Y​

2​

5

75​

Y​

3​

6

50​

N​

<TBODY>
</TBODY>


Formula in C2 copied down
=IF(B2="Y",COUNTIFS($A$2:$A$6,">"&A2,$B$2:$B$6,"Y")+COUNTIFS(A$2:A2,A2,B$2:B2,"Y"),"")

M.
 
Upvote 0

Forum statistics

Threads
1,215,911
Messages
6,127,682
Members
449,397
Latest member
Bastbog

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