Cutting last 10 charecters of a cell and pasting to next cell
Solved/Closed
BrianGreen
Posts
1005
Registration date
Saturday January 17, 2015
Status
Moderator
Last seen
September 30, 2021
-
Jul 27, 2015 at 09:18 AM
TrowaD Posts 2921 Registration date Sunday September 12, 2010 Status Moderator Last seen December 27, 2022 - Jul 28, 2015 at 11:58 AM
TrowaD Posts 2921 Registration date Sunday September 12, 2010 Status Moderator Last seen December 27, 2022 - Jul 28, 2015 at 11:58 AM
Related:
- Cutting last 10 charecters of a cell and pasting to next cell
- Conditional formatting if cell contains text - Excel Forum
- Count if cell contains number - Excel Forum
- If cell contains date then return value ✓ - Office Software Forum
- Insert a function in cell b2 to display the current date from your system. ✓ - Excel Forum
- Root directory is full or error in pasting - Android Forum
1 response
TrowaD
Posts
2921
Registration date
Sunday September 12, 2010
Status
Moderator
Last seen
December 27, 2022
555
Jul 27, 2015 at 11:18 AM
Jul 27, 2015 at 11:18 AM
Hi Brian,
Welcome back!
See if the following code gets you the desired result:
Best regards,
Trowa
Ps. I totally agree with your signature. A shame one has to point that out!
Welcome back!
See if the following code gets you the desired result:
Sub RunMe() Dim lRow As Integer lRow = Range("D1").End(xlDown).Row For Each cell In Range("D2:D" & lRow) cell.Offset(0, 1).Value = Right(cell.Value, 10) cell.Value = Left(cell.Value, Len(cell.Value) - 10) Next cell End Sub
Best regards,
Trowa
Ps. I totally agree with your signature. A shame one has to point that out!
Jul 27, 2015 at 02:44 PM
I wont be able to test this until tomorrow. I will let you know how it goes.
Thank you so much.
Jul 28, 2015 at 11:51 AM
Thanks Trowa - you're a star.
Jul 28, 2015 at 11:58 AM