Excel - how to copy the last record in "a" of each user and paste it to "b"

ramielm

New Member
Joined
Dec 2, 2017
Messages
4
I need your help on how to copy every last record of each user (highlighted) in column "A" and paste it to adjacent column "B" using macro or VB. Users transaction are separated with blank spaces.

[TABLE="width: 500"]
<tbody>[TR]
[TD]

<colgroup><col width="138"></colgroup><tbody>
[TD="class: xl63, width: 138"]Date Time[/TD]

</tbody>
[/TD]
[TD]

<colgroup><col width="138"></colgroup><tbody>
[TD="class: xl65, width: 138"]Date Time2[/TD]

</tbody>
[/TD]
[TD]

<colgroup><col width="138"></colgroup><tbody>
[TD="class: xl65, width: 138"]User[/TD]

</tbody>
[/TD]
[TD]

<colgroup><col width="138"></colgroup><tbody>
[TD="class: xl65, width: 138"]Transaction #[/TD]

</tbody>
[/TD]
[/TR]
[TR]
[TD]2017-10-03 09:34
[/TD]
[TD]2017-10-03 09:34
[/TD]
[TD]CWA
[/TD]
[TD]9371431935
[/TD]
[/TR]
[TR]
[TD]2017-10-03 09:50
[/TD]
[TD]

<colgroup><col width="138"></colgroup><tbody>
[TD="class: xl66, width: 138"]2017-10-03 09:59[/TD]

</tbody>
[/TD]
[TD]CWA
[/TD]
[TD]9371431942
[/TD]
[/TR]
[TR]
[TD]2017-10-03 14:59
[/TD]
[TD][/TD]
[TD]CWA
[/TD]
[TD]9371431999
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2017-10-03 09:03
[/TD]
[TD]2017-10-03 09:05
[/TD]
[TD]CMM
[/TD]
[TD]9371431954
[/TD]
[/TR]
[TR]
[TD]2017-10-03 09:08
[/TD]
[TD]2017-10-03 09:31
[/TD]
[TD]CMM
[/TD]
[TD]9371431962
[/TD]
[/TR]
[TR]
[TD]

<colgroup><col width="138"></colgroup><tbody>
[TD="class: xl66, width: 138"]2017-10-03 10:24[/TD]

</tbody>
[/TD]
[TD]2017-10-03 11:53
[/TD]
[TD]CMM
[/TD]
[TD]9371431996
[/TD]
[/TR]
[TR]
[TD]2017-10-03 13:08
[/TD]
[TD][/TD]
[TD]CMM
[/TD]
[TD]9371432096
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 

Forum statistics

Threads
1,226,837
Messages
6,193,249
Members
453,784
Latest member
Chandni

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top