Need a Vba code to obtain the rank for the latest date and car type.
EG find the latest date from today() for each car then obtain a rank. if the car changes the rank starts from 1 again. so In theory the latest 25 dates for each car.
[TABLE="width: 500"]
<tbody>[TR]
[TD]Car[/TD]
[TD]Date[/TD]
[TD]Rank[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Volvo[/TD]
[TD]01/01/2018[/TD]
[TD]2[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]volvo[/TD]
[TD]04/02/2018[/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]audi[/TD]
[TD]04/03/2018[/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]bmw[/TD]
[TD]20/02/2018[/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
EG find the latest date from today() for each car then obtain a rank. if the car changes the rank starts from 1 again. so In theory the latest 25 dates for each car.
[TABLE="width: 500"]
<tbody>[TR]
[TD]Car[/TD]
[TD]Date[/TD]
[TD]Rank[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Volvo[/TD]
[TD]01/01/2018[/TD]
[TD]2[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]volvo[/TD]
[TD]04/02/2018[/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]audi[/TD]
[TD]04/03/2018[/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]bmw[/TD]
[TD]20/02/2018[/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]