Hello
I have stuggled with this one for ages. I'm just past beginner stage of VBA, and I can't find anything in the manuals or online. Here is my question :
I have a sheet like this, with one row per client, with codes and dates :
[TABLE="class: grid, width: 500, align: left"]
<TBODY>[TR]
[TD]Client
[/TD]
[TD]Code1
[/TD]
[TD]Code2
[/TD]
[TD]Code3
[/TD]
[TD]Code4
[/TD]
[TD]Date
[/TD]
[/TR]
[TR]
[TD]24435
[/TD]
[TD]X2
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]22/03/2012
[/TD]
[/TR]
[TR]
[TD]24436
[/TD]
[TD]D9
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]05/03/2012
[/TD]
[/TR]
[TR]
[TD]21546
[/TD]
[TD]S3
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]23/04/2012
[/TD]
[/TR]
[TR]
[TD]21546
[/TD]
[TD]E1
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]23/04/2012
[/TD]
[/TR]
[TR]
[TD]21546
[/TD]
[TD]Z5
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]23/04/2012
[/TD]
[/TR]
[TR]
[TD]21546
[/TD]
[TD]Q1
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]02/06/2012
[/TD]
[/TR]
[TR]
[TD]24387
[/TD]
[TD]S1
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]01/05/2012
[/TD]
[/TR]
</TBODY>[/TABLE]
I am trying to get the "Code" values in one row, where the there are duplicate values on both Client and Date, so it would look like this :
[TABLE="class: grid, width: 500, align: left"]
<TBODY>[TR]
[TD]Client
[/TD]
[TD]Code1
[/TD]
[TD]Code2
[/TD]
[TD]Code3
[/TD]
[TD]Code4
[/TD]
[TD]Date
[/TD]
[/TR]
[TR]
[TD]24435
[/TD]
[TD]X2
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]22/03/2012
[/TD]
[/TR]
[TR]
[TD]24436
[/TD]
[TD]D9
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]05/03/2012
[/TD]
[/TR]
[TR]
[TD]21546
[/TD]
[TD]S3
[/TD]
[TD]E1
[/TD]
[TD]Z5
[/TD]
[TD][/TD]
[TD]23/04/2012
[/TD]
[/TR]
[TR]
[TD]21546
[/TD]
[TD]Q1
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]02/06/2012
[/TD]
[/TR]
[TR]
[TD]24387
[/TD]
[TD]S1
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]01/05/2012
[/TD]
[/TR]
</TBODY>[/TABLE]
There are very large amounts of data, and a downstream process relies on having the data in the grouped format.
Any help is much appreciated!
Thanks
Jim
I have stuggled with this one for ages. I'm just past beginner stage of VBA, and I can't find anything in the manuals or online. Here is my question :
I have a sheet like this, with one row per client, with codes and dates :
[TABLE="class: grid, width: 500, align: left"]
<TBODY>[TR]
[TD]Client
[/TD]
[TD]Code1
[/TD]
[TD]Code2
[/TD]
[TD]Code3
[/TD]
[TD]Code4
[/TD]
[TD]Date
[/TD]
[/TR]
[TR]
[TD]24435
[/TD]
[TD]X2
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]22/03/2012
[/TD]
[/TR]
[TR]
[TD]24436
[/TD]
[TD]D9
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]05/03/2012
[/TD]
[/TR]
[TR]
[TD]21546
[/TD]
[TD]S3
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]23/04/2012
[/TD]
[/TR]
[TR]
[TD]21546
[/TD]
[TD]E1
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]23/04/2012
[/TD]
[/TR]
[TR]
[TD]21546
[/TD]
[TD]Z5
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]23/04/2012
[/TD]
[/TR]
[TR]
[TD]21546
[/TD]
[TD]Q1
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]02/06/2012
[/TD]
[/TR]
[TR]
[TD]24387
[/TD]
[TD]S1
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]01/05/2012
[/TD]
[/TR]
</TBODY>[/TABLE]
I am trying to get the "Code" values in one row, where the there are duplicate values on both Client and Date, so it would look like this :
[TABLE="class: grid, width: 500, align: left"]
<TBODY>[TR]
[TD]Client
[/TD]
[TD]Code1
[/TD]
[TD]Code2
[/TD]
[TD]Code3
[/TD]
[TD]Code4
[/TD]
[TD]Date
[/TD]
[/TR]
[TR]
[TD]24435
[/TD]
[TD]X2
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]22/03/2012
[/TD]
[/TR]
[TR]
[TD]24436
[/TD]
[TD]D9
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]05/03/2012
[/TD]
[/TR]
[TR]
[TD]21546
[/TD]
[TD]S3
[/TD]
[TD]E1
[/TD]
[TD]Z5
[/TD]
[TD][/TD]
[TD]23/04/2012
[/TD]
[/TR]
[TR]
[TD]21546
[/TD]
[TD]Q1
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]02/06/2012
[/TD]
[/TR]
[TR]
[TD]24387
[/TD]
[TD]S1
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]01/05/2012
[/TD]
[/TR]
</TBODY>[/TABLE]
There are very large amounts of data, and a downstream process relies on having the data in the grouped format.
Any help is much appreciated!
Thanks
Jim