Go To Special to select dates

I want to select all of the dates in a column and move them to another column.  To select my data, I am selecting the entire column, using Go To Special and choosing Constants and then un-checking Text.  So I can select my data, but I am missing the step on how to cut and paste it into the next column.  I'm sure this is very easy but can't figure it out.
WilbertWaterburyAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Harry LeeCommented:
You cannot do multiple-range cut in Excel. You can only do multiple-range copy.

You can speed your single range cut and paste by using VBA.

Sub CopyDateToNextColumn()
Dim wkRng As Range

For Each wkRng In Selection
    If IsDate(wkRng) Then
        wkRng.Offset(0, 1).Value = wkRng.Value
        wkRng.ClearContents
    End If
Next
End Sub

Open in new window


Select the column with the dates you want to cut and paste, and run the above macro.

Please make backup before your test.

Let me know if it doesn't work the way you want.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.