Hi,
I'm trying to think of a way to use VBA to transpose data with the same value in column A by sequential date order.
e.g starting with this:
The output I would like is this:
Does anyone know a way to do this in excel / VBA?
I'm trying to think of a way to use VBA to transpose data with the same value in column A by sequential date order.
e.g starting with this:
CAR | date | cost | ref |
VW | 01/02/2013 | 20 | ax1 |
FORD | 01/01/2018 | 22 | bx2 |
VW | 01/08/2014 | 21 | cx3 |
FORD | 01/08/2017 | 25 | cd3 |
AUDI | 05/02/2016 | 13 | cf4 |
AUDI | 05/02/2020 | 18 | cf5 |
VW | 01/10/2016 | 19 | cg6 |
AUDI | 01/02/2014 | 16 | gh4 |
The output I would like is this:
date1 | cost1 | ref1 | date2 | cost2 | ref2 | date3 | cost3 | ref3 | |
AUDI | 01/02/2014 | 16 | gh4 | 05/02/2016 | 13 | cf4 | 05/02/2020 | 18 | cf5 |
FORD | 01/08/2016 | 20 | df4 | 01/08/2017 | 25 | cd3 | |||
VW | 01/02/2013 | 20 | ax1 | 01/08/2014 | 21 | cx3 | 01/10/2016 | 19 | cg6 |
Does anyone know a way to do this in excel / VBA?