Difficult Ranking Problem

easybpw

Active Member
Joined
Sep 30, 2003
Messages
437
Office Version
  1. 365
  2. 2013
Platform
  1. Windows
Hi everyone,

Thanks in advance for the help. I am trying to rank a column based on specific criteria. I have it working up to a point. See below. As you can see I am ranking A, B, C, etc. based on the column that starts with 23.91. The column to the right of the B works fine, it is ranking everything based on the letter. =IF($O3=" "," ",SUMPRODUCT((O3=$O$3:$O$2000)*(J3<$J$3:$J$2000))+1). Column O is the letters, and J is 23.91. I then tried to rank just by the letters and don't want to include the dollar amounts for any other letter but this formula =IF($O3="A",RANK.EQ(P3,$P$3:$P$703,1)," ") is including them. As you can see below 22.55 should be ranked 2 and 22.33 should be and so on but it's not. What can I do to get it the way I need?

1661352535944.png
 
Ok, how about
Excel Formula:
=IF($B2="outside",SUMPRODUCT((B2=$B$2:$B$18)*(C2<$C$2:$C$18))+COUNTIFS(B$2:B2,"outside",C$2:C2,C2),"")
 
Upvote 0

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.

Forum statistics

Threads
1,215,771
Messages
6,126,797
Members
449,337
Latest member
BBV123

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