Hi all,
I am looking for some help and advice on a task that has landed on my desk!!
I have a set of data in Excel with supplier dates for Multiple & Duplicate vehicle Item No's across columns and then down rows with the part numbers. E.g.:
[TABLE="width: 500"]
<tbody>[TR]
[TD]A
[/TD]
[TD]B
[/TD]
[TD]C
[/TD]
[TD]D
[/TD]
[TD]E
[/TD]
[TD]F
[/TD]
[TD]G
[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]Item No
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD]CT1
[/TD]
[TD]01/04/18
[/TD]
[TD]01/04/18
[/TD]
[TD]15/05/18
[/TD]
[TD]30/05/18
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3
[/TD]
[TD]CT1
[/TD]
[TD]01/06/18
[/TD]
[TD]01/06/18
[/TD]
[TD]01/06/18
[/TD]
[TD]01/06/18
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4
[/TD]
[TD]CT2
[/TD]
[TD]01/05/18
[/TD]
[TD]01/05/18
[/TD]
[TD]01/05/18
[/TD]
[TD]01/05/18
[/TD]
[TD]01/05/18
[/TD]
[/TR]
[TR]
[TD]5
[/TD]
[TD]CT2
[/TD]
[TD]01/06/18
[/TD]
[TD]01/06/18
[/TD]
[TD]01/06/18
[/TD]
[TD]01/07/18
[/TD]
[TD]01/07/18
[/TD]
[/TR]
[TR]
[TD]6
[/TD]
[TD]CT3
[/TD]
[TD]01/04/18
[/TD]
[TD]01/04/18
[/TD]
[TD]01/04/18
[/TD]
[TD]01/04/18
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]7
[/TD]
[TD]CT3
[/TD]
[TD]01/05/18
[/TD]
[TD]01/06/18
[/TD]
[TD]01/06/18
[/TD]
[TD]01/07/18
[/TD]
[TD]01/07/18
[/TD]
[/TR]
</tbody>[/TABLE]
What I am trying to do with vba code (unsucsesfully so far! after searching extensively) is to combine and merge each Item number into one row with all dates showing for the item number so that I would get the below:
[TABLE="width: 500"]
<tbody>[TR]
[TD]A
[/TD]
[TD]B
[/TD]
[TD]C
[/TD]
[TD]D
[/TD]
[TD]E
[/TD]
[TD]F
[/TD]
[TD]G
[/TD]
[TD]H
[/TD]
[TD]I
[/TD]
[TD]J
[/TD]
[TD]K
[/TD]
[TD]L
[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]Item No
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD]CT1
[/TD]
[TD]01/04/18
[/TD]
[TD]01/04/18
[/TD]
[TD]15/05/18
[/TD]
[TD]30/05/18
[/TD]
[TD]01/06/18
[/TD]
[TD]01/06/18
[/TD]
[TD]01/06/18
[/TD]
[TD]01/06/18
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3
[/TD]
[TD]CT2
[/TD]
[TD]01/05/18
[/TD]
[TD]01/05/18
[/TD]
[TD]01/05/18
[/TD]
[TD]01/05/18
[/TD]
[TD]01/05/18
[/TD]
[TD]01/06/18
[/TD]
[TD]01/06/18
[/TD]
[TD]01/06/18
[/TD]
[TD]01/07/18
[/TD]
[TD]01/07/18
[/TD]
[/TR]
[TR]
[TD]4
[/TD]
[TD]CT3
[/TD]
[TD]01/04/18
[/TD]
[TD]01/04/18
[/TD]
[TD]01/04/18
[/TD]
[TD]01/04/18
[/TD]
[TD]01/05/18
[/TD]
[TD]01/06/18
[/TD]
[TD]01/06/18
[/TD]
[TD]01/07/18
[/TD]
[TD]01/07/18
[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I'm not sure if I am attempting the impossible, but any help and advice would be greatly appreciated! This is just a small sample of the data which currently extends to circa 4000 rows and 60 columns.
Many thanks in advance!!
Barry.
I am looking for some help and advice on a task that has landed on my desk!!
I have a set of data in Excel with supplier dates for Multiple & Duplicate vehicle Item No's across columns and then down rows with the part numbers. E.g.:
[TABLE="width: 500"]
<tbody>[TR]
[TD]A
[/TD]
[TD]B
[/TD]
[TD]C
[/TD]
[TD]D
[/TD]
[TD]E
[/TD]
[TD]F
[/TD]
[TD]G
[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]Item No
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD]CT1
[/TD]
[TD]01/04/18
[/TD]
[TD]01/04/18
[/TD]
[TD]15/05/18
[/TD]
[TD]30/05/18
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3
[/TD]
[TD]CT1
[/TD]
[TD]01/06/18
[/TD]
[TD]01/06/18
[/TD]
[TD]01/06/18
[/TD]
[TD]01/06/18
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4
[/TD]
[TD]CT2
[/TD]
[TD]01/05/18
[/TD]
[TD]01/05/18
[/TD]
[TD]01/05/18
[/TD]
[TD]01/05/18
[/TD]
[TD]01/05/18
[/TD]
[/TR]
[TR]
[TD]5
[/TD]
[TD]CT2
[/TD]
[TD]01/06/18
[/TD]
[TD]01/06/18
[/TD]
[TD]01/06/18
[/TD]
[TD]01/07/18
[/TD]
[TD]01/07/18
[/TD]
[/TR]
[TR]
[TD]6
[/TD]
[TD]CT3
[/TD]
[TD]01/04/18
[/TD]
[TD]01/04/18
[/TD]
[TD]01/04/18
[/TD]
[TD]01/04/18
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]7
[/TD]
[TD]CT3
[/TD]
[TD]01/05/18
[/TD]
[TD]01/06/18
[/TD]
[TD]01/06/18
[/TD]
[TD]01/07/18
[/TD]
[TD]01/07/18
[/TD]
[/TR]
</tbody>[/TABLE]
What I am trying to do with vba code (unsucsesfully so far! after searching extensively) is to combine and merge each Item number into one row with all dates showing for the item number so that I would get the below:
[TABLE="width: 500"]
<tbody>[TR]
[TD]A
[/TD]
[TD]B
[/TD]
[TD]C
[/TD]
[TD]D
[/TD]
[TD]E
[/TD]
[TD]F
[/TD]
[TD]G
[/TD]
[TD]H
[/TD]
[TD]I
[/TD]
[TD]J
[/TD]
[TD]K
[/TD]
[TD]L
[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]Item No
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD]CT1
[/TD]
[TD]01/04/18
[/TD]
[TD]01/04/18
[/TD]
[TD]15/05/18
[/TD]
[TD]30/05/18
[/TD]
[TD]01/06/18
[/TD]
[TD]01/06/18
[/TD]
[TD]01/06/18
[/TD]
[TD]01/06/18
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3
[/TD]
[TD]CT2
[/TD]
[TD]01/05/18
[/TD]
[TD]01/05/18
[/TD]
[TD]01/05/18
[/TD]
[TD]01/05/18
[/TD]
[TD]01/05/18
[/TD]
[TD]01/06/18
[/TD]
[TD]01/06/18
[/TD]
[TD]01/06/18
[/TD]
[TD]01/07/18
[/TD]
[TD]01/07/18
[/TD]
[/TR]
[TR]
[TD]4
[/TD]
[TD]CT3
[/TD]
[TD]01/04/18
[/TD]
[TD]01/04/18
[/TD]
[TD]01/04/18
[/TD]
[TD]01/04/18
[/TD]
[TD]01/05/18
[/TD]
[TD]01/06/18
[/TD]
[TD]01/06/18
[/TD]
[TD]01/07/18
[/TD]
[TD]01/07/18
[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I'm not sure if I am attempting the impossible, but any help and advice would be greatly appreciated! This is just a small sample of the data which currently extends to circa 4000 rows and 60 columns.
Many thanks in advance!!
Barry.