Note: I've already posted this in another forum:http://www.vbaexpress.com/forum/showthread.php?t=39544
but after hours of waiting I didn't get any reply, and I need this urgently, so can someone pls help:
I need the VBA code to find the highest and 2nd highest value in a column based on criteria in another column. So for example:
Type | Time
RaceA| 4.5
RaceB| 5.5
RaceA| 6.2
RaceA| 3.1
RaceB| 2.1
I need the VBA code to be able to find the highest and 2nd highest Time for RaceA and highlight them in different color. So in the example above, the code should loop through the time based on Type and highlight 3.1 as highest and 4.5 as second highest
Ps I only want the vba sub for the solution not the worksheet functions
Can anyone help pls?
but after hours of waiting I didn't get any reply, and I need this urgently, so can someone pls help:
I need the VBA code to find the highest and 2nd highest value in a column based on criteria in another column. So for example:
Type | Time
RaceA| 4.5
RaceB| 5.5
RaceA| 6.2
RaceA| 3.1
RaceB| 2.1
I need the VBA code to be able to find the highest and 2nd highest Time for RaceA and highlight them in different color. So in the example above, the code should loop through the time based on Type and highlight 3.1 as highest and 4.5 as second highest
Ps I only want the vba sub for the solution not the worksheet functions
Can anyone help pls?