Excel VBA replace duplicates for large formula

Eisasuarez

Well-known Member
Joined
Mar 23, 2012
Messages
653
Hi All,

I have some percentages for 3 weeks for 3 different Areas in

Area 1) B1:V100
Area 2) AB1:AV100
Area 3) BB1:BV100

now what i want to do is get the 5 largest values for each day

5 largest for each day
ie B1:B100
C1:C100
D1:D100 etc


Now i know i can rank them and use a countifs formula for each day to get around this by adding 0.00000001 + row() to that value but that would mean i would need to create this for every day

Now to avoid this...i want to create a macro that would change any duplicates for Each day by adding some small values for each day so that way i can use my large formula on the ranges mentioned without having to create rank, countifs for each day

any help will really be appreciated

After some Vba code please

thank you
 

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,224,818
Messages
6,181,152
Members
453,021
Latest member
Justyna P

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