Excel Rank with MANY conditions skip ranks. Please help. my head is spinning

teddybear2018

New Member
Joined
Aug 26, 2020
Messages
7
Office Version
  1. 365
Platform
  1. Windows
This formula below was working
=IF(AP22="","N/A",IF(AP22="0","N/A",SUMPRODUCT(--($D$4:$D$387=D22),--($AP$4:$AP$387<>"")*(AP22<$AP$4:$AP$387)/COUNTIF($AP$4:$AP$387,$AP$4:$AP$387&""))+1))

NOW I had to add an additional condition, now it skips ranks. I no longer have rank 1 or 3,4. it just skips numbers

=IF(G36="Tech","N/A",IF(AP36="","N/A",IF(AP36="0","N/A",SUMPRODUCT(--($D$4:$D$387=D36),--($AP$4:$AP$387<>"")*(AP36<$AP$4:$AP$387)/COUNTIF($AP$4:$AP$387,$AP$4:$AP$387&""))+1)))

I just wanted to exclude tech dept.
If G36 is tech, or AP=36 is blank or 0 come back as "N/A", but the rest please rank. and NOT skip numbers
 
It is possible, but the example that I asked for in post 2 is still needed.

I did edit post 8 with a slight change to the formula but I don't think that it is going to work any better.

I suggest that you go back to the top of the thread and read every reply carefully, I seem to be constantly repeating myself or directing you back to earlier replies because you haven't read them properly.
 
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,214,987
Messages
6,122,613
Members
449,090
Latest member
vivek chauhan

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