How to Rank Filtered Cells with duplicates without skipping numbers in excel vba

mobi124

New Member
Joined
Feb 14, 2018
Messages
1
Hello I Need your help on an Excel Vba problem How to Rank Filtered Cells with duplicates without skipping number in excel vba Suppose I have worksheet that contains subject marks for different classes. I want them filtered and then show filtered rank. The problem I am unable to get rank when duplicate occurs. I want the duplicates be the same rank but then the next rank. but it skips rank e.g: 1,2,3,3,5,6 but I want 1,2,3,3,4,5, The same formula is given below {=SUM(IF(SUBTOTAL(103,OFFSET($N$8:$N$70,ROW($N$8:$N$70)-ROW($N$8),0,1))>0,IF(N8<$N$8:$N$70,1)))+1} I Have got another instance of the above formula which doesn't skip number but shows different results like 190, 180, 557. {=SUM(IF(SUBTOTAL(3,OFFSET($N$8:$N$108,ROW($N$8:$N$108)-ROW($N$8),0,1))>0,SUMPRODUCT((N8 < $N$8:$N$108)/COUNTIF(N$8:N$108,N$8:N$108))))+1}
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.

Forum statistics

Threads
1,215,327
Messages
6,124,292
Members
449,149
Latest member
mwdbActuary

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