Hello everyone,
I am a long time lurker and excel novice. I have a data set that has multiple entries per date and per group and I would like to combine those entries into a single line. I have given an before and after example below. I am hoping for a VBA solution so that I can save it as a macro but the method to do so escapes me. The actual data set is approximately 250,000 records. I have had mixed success's with various methods and any assistance would be greatly appreciated.
[TABLE="width: 500"]
<tbody>[TR]
[TD]Name[/TD]
[TD]Date[/TD]
[TD]Group[/TD]
[TD]Time[/TD]
[/TR]
[TR]
[TD]Jeff[/TD]
[TD]1/1/19[/TD]
[TD]G1[/TD]
[TD]284[/TD]
[/TR]
[TR]
[TD]Jeff[/TD]
[TD]1/1/19[/TD]
[TD]G2[/TD]
[TD]767[/TD]
[/TR]
[TR]
[TD]Jeff[/TD]
[TD]1/1/19[/TD]
[TD]G3[/TD]
[TD]451[/TD]
[/TR]
[TR]
[TD]Jeff[/TD]
[TD]1/2/19[/TD]
[TD]G2[/TD]
[TD]568[/TD]
[/TR]
[TR]
[TD]Jeff[/TD]
[TD]1/2/19[/TD]
[TD]G7[/TD]
[TD]489[/TD]
[/TR]
[TR]
[TD]Steve[/TD]
[TD]1/1/19[/TD]
[TD]G13[/TD]
[TD]654[/TD]
[/TR]
[TR]
[TD]Steve[/TD]
[TD]1/1/19[/TD]
[TD]G77[/TD]
[TD]789[/TD]
[/TR]
[TR]
[TD]Steve[/TD]
[TD]1/2/19[/TD]
[TD]G31[/TD]
[TD]413[/TD]
[/TR]
[TR]
[TD]Steve[/TD]
[TD]1/2/19[/TD]
[TD]G23[/TD]
[TD]877[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 500"]
<tbody>[TR]
[TD]Name[/TD]
[TD]Date[/TD]
[TD]Group[/TD]
[TD]Time[/TD]
[/TR]
[TR]
[TD]Jeff[/TD]
[TD]1/1/19[/TD]
[TD]G1;G2;G3[/TD]
[TD]1502[/TD]
[/TR]
[TR]
[TD]Jeff[/TD]
[TD]1/2/19[/TD]
[TD]G2;G7[/TD]
[TD]1057[/TD]
[/TR]
[TR]
[TD]Steve[/TD]
[TD]1/1/19[/TD]
[TD]G13;G77[/TD]
[TD]1443[/TD]
[/TR]
[TR]
[TD]Steve[/TD]
[TD]1/2/19[/TD]
[TD]G31;G23[/TD]
[TD]1290[/TD]
[/TR]
</tbody>[/TABLE]
Thank you for your time and have a wonderful day!
I am a long time lurker and excel novice. I have a data set that has multiple entries per date and per group and I would like to combine those entries into a single line. I have given an before and after example below. I am hoping for a VBA solution so that I can save it as a macro but the method to do so escapes me. The actual data set is approximately 250,000 records. I have had mixed success's with various methods and any assistance would be greatly appreciated.
[TABLE="width: 500"]
<tbody>[TR]
[TD]Name[/TD]
[TD]Date[/TD]
[TD]Group[/TD]
[TD]Time[/TD]
[/TR]
[TR]
[TD]Jeff[/TD]
[TD]1/1/19[/TD]
[TD]G1[/TD]
[TD]284[/TD]
[/TR]
[TR]
[TD]Jeff[/TD]
[TD]1/1/19[/TD]
[TD]G2[/TD]
[TD]767[/TD]
[/TR]
[TR]
[TD]Jeff[/TD]
[TD]1/1/19[/TD]
[TD]G3[/TD]
[TD]451[/TD]
[/TR]
[TR]
[TD]Jeff[/TD]
[TD]1/2/19[/TD]
[TD]G2[/TD]
[TD]568[/TD]
[/TR]
[TR]
[TD]Jeff[/TD]
[TD]1/2/19[/TD]
[TD]G7[/TD]
[TD]489[/TD]
[/TR]
[TR]
[TD]Steve[/TD]
[TD]1/1/19[/TD]
[TD]G13[/TD]
[TD]654[/TD]
[/TR]
[TR]
[TD]Steve[/TD]
[TD]1/1/19[/TD]
[TD]G77[/TD]
[TD]789[/TD]
[/TR]
[TR]
[TD]Steve[/TD]
[TD]1/2/19[/TD]
[TD]G31[/TD]
[TD]413[/TD]
[/TR]
[TR]
[TD]Steve[/TD]
[TD]1/2/19[/TD]
[TD]G23[/TD]
[TD]877[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 500"]
<tbody>[TR]
[TD]Name[/TD]
[TD]Date[/TD]
[TD]Group[/TD]
[TD]Time[/TD]
[/TR]
[TR]
[TD]Jeff[/TD]
[TD]1/1/19[/TD]
[TD]G1;G2;G3[/TD]
[TD]1502[/TD]
[/TR]
[TR]
[TD]Jeff[/TD]
[TD]1/2/19[/TD]
[TD]G2;G7[/TD]
[TD]1057[/TD]
[/TR]
[TR]
[TD]Steve[/TD]
[TD]1/1/19[/TD]
[TD]G13;G77[/TD]
[TD]1443[/TD]
[/TR]
[TR]
[TD]Steve[/TD]
[TD]1/2/19[/TD]
[TD]G31;G23[/TD]
[TD]1290[/TD]
[/TR]
</tbody>[/TABLE]
Thank you for your time and have a wonderful day!