Need to edge out the competition for your dream job? Train for certifications today.
Dim lr As Long, i As Long, j As Long
Dim x, y()
Dim NumStr As String
Application.ScreenUpdating = False
lr = Cells(Rows.Count, "CD").End(xlUp).Row
x = Range("CD7:CD" & lr).Value
ReDim y(1 To UBound(x, 1), 1 To 1)
On Error Resume Next
For i = 1 To UBound(x, 1)
If x(i, 1) <> "" Then
If IsNumeric(x(i, 1)) Then
NumStr = Right(Mid(x(i, 1), 1, 1) + 5, 1) & Right(Mid(x(i, 1), 2, 1) + 5, 1)
y(i, 1) = NumStr
Range("CC7:CC" & lr).NumberFormat = "@"
Range("CC7").Resize(lr, 1).Value = y
Application.ScreenUpdating = True
Open in new window
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
Have a better answer? Share it in a comment.
Please enter a first name
Please enter a last name
Must be at least 4 characters long.
Join and Comment
From novice to tech pro — start learning today.
Premium members can enroll in this course at no extra cost.