Plumpychunks
New Member
- Joined
- Mar 1, 2018
- Messages
- 2
Hi,
Please help.
I have a sheet of data that is outputted from an external source, see below:
[TABLE="width: 200"]
<tbody>[TR]
[TD]Vehicle Reg[/TD]
[TD]AxleType[/TD]
[TD]Axle[/TD]
[TD]Position[/TD]
[TD]Dimension[/TD]
[TD]New/Retread[/TD]
[TD]Brand[/TD]
[TD]Pattern[/TD]
[TD]Event[/TD]
[TD]Mileage[/TD]
[TD]OTD[/TD]
[TD]Date[/TD]
[TD]RTD[/TD]
[TD]Removal[/TD]
[TD]Regrooved[/TD]
[/TR]
[TR]
[TD]abc123[/TD]
[TD]Drive[/TD]
[TD]3[/TD]
[TD]L[/TD]
[TD]295/80R22.5[/TD]
[TD]New[/TD]
[TD]GOODYEAR[/TD]
[TD]KMAX[/TD]
[TD]Fitment[/TD]
[TD]10[/TD]
[TD]24[/TD]
[TD]1.1.2016[/TD]
[TD]24[/TD]
[TD]3[/TD]
[TD]N[/TD]
[/TR]
[TR]
[TD]abc123[/TD]
[TD]Drive[/TD]
[TD]3[/TD]
[TD]L[/TD]
[TD]295/80R22.5[/TD]
[TD]New[/TD]
[TD]GOODYEAR[/TD]
[TD]KMAX[/TD]
[TD]Exam[/TD]
[TD]120000[/TD]
[TD]24[/TD]
[TD]31.12.2017[/TD]
[TD]6[/TD]
[TD]3[/TD]
[TD]N[/TD]
[/TR]
[TR]
[TD]abc123[/TD]
[TD]Drive[/TD]
[TD]3[/TD]
[TD]L[/TD]
[TD]295/80R22.5[/TD]
[TD]New[/TD]
[TD]GOODYEAR[/TD]
[TD]KMAX[/TD]
[TD]Removal[/TD]
[TD]123321[/TD]
[TD]24[/TD]
[TD]1.1.2018[/TD]
[TD]4[/TD]
[TD]3[/TD]
[TD]N[/TD]
[/TR]
[TR]
[TD]789zyx[/TD]
[TD]Carry[/TD]
[TD]3[/TD]
[TD]R[/TD]
[TD]385/65R22.5[/TD]
[TD]New[/TD]
[TD]PIRELLI[/TD]
[TD]AA1[/TD]
[TD]Fitment[/TD]
[TD]10[/TD]
[TD]22[/TD]
[TD]1.1.2012[/TD]
[TD]22[/TD]
[TD]3[/TD]
[TD]N[/TD]
[/TR]
</tbody>[/TABLE]
I would like some VBA to extract the rows that contain the earliest and latest date when columns A,B,C,D,E,G & H are all the same.
I can find methods to extract earliest and latest dates but none that can do it based 7 criteria.
All help would be greatly appreciated.
Please help.
I have a sheet of data that is outputted from an external source, see below:
[TABLE="width: 200"]
<tbody>[TR]
[TD]Vehicle Reg[/TD]
[TD]AxleType[/TD]
[TD]Axle[/TD]
[TD]Position[/TD]
[TD]Dimension[/TD]
[TD]New/Retread[/TD]
[TD]Brand[/TD]
[TD]Pattern[/TD]
[TD]Event[/TD]
[TD]Mileage[/TD]
[TD]OTD[/TD]
[TD]Date[/TD]
[TD]RTD[/TD]
[TD]Removal[/TD]
[TD]Regrooved[/TD]
[/TR]
[TR]
[TD]abc123[/TD]
[TD]Drive[/TD]
[TD]3[/TD]
[TD]L[/TD]
[TD]295/80R22.5[/TD]
[TD]New[/TD]
[TD]GOODYEAR[/TD]
[TD]KMAX[/TD]
[TD]Fitment[/TD]
[TD]10[/TD]
[TD]24[/TD]
[TD]1.1.2016[/TD]
[TD]24[/TD]
[TD]3[/TD]
[TD]N[/TD]
[/TR]
[TR]
[TD]abc123[/TD]
[TD]Drive[/TD]
[TD]3[/TD]
[TD]L[/TD]
[TD]295/80R22.5[/TD]
[TD]New[/TD]
[TD]GOODYEAR[/TD]
[TD]KMAX[/TD]
[TD]Exam[/TD]
[TD]120000[/TD]
[TD]24[/TD]
[TD]31.12.2017[/TD]
[TD]6[/TD]
[TD]3[/TD]
[TD]N[/TD]
[/TR]
[TR]
[TD]abc123[/TD]
[TD]Drive[/TD]
[TD]3[/TD]
[TD]L[/TD]
[TD]295/80R22.5[/TD]
[TD]New[/TD]
[TD]GOODYEAR[/TD]
[TD]KMAX[/TD]
[TD]Removal[/TD]
[TD]123321[/TD]
[TD]24[/TD]
[TD]1.1.2018[/TD]
[TD]4[/TD]
[TD]3[/TD]
[TD]N[/TD]
[/TR]
[TR]
[TD]789zyx[/TD]
[TD]Carry[/TD]
[TD]3[/TD]
[TD]R[/TD]
[TD]385/65R22.5[/TD]
[TD]New[/TD]
[TD]PIRELLI[/TD]
[TD]AA1[/TD]
[TD]Fitment[/TD]
[TD]10[/TD]
[TD]22[/TD]
[TD]1.1.2012[/TD]
[TD]22[/TD]
[TD]3[/TD]
[TD]N[/TD]
[/TR]
</tbody>[/TABLE]
I would like some VBA to extract the rows that contain the earliest and latest date when columns A,B,C,D,E,G & H are all the same.
I can find methods to extract earliest and latest dates but none that can do it based 7 criteria.
All help would be greatly appreciated.