Go To Special to select dates

Posted on 2013-09-19
Medium Priority
Last Modified: 2014-01-20
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.
Question by:WilbertWaterbury
1 Comment
LVL 12

Accepted Solution

Harry Lee earned 1000 total points
ID: 39507686
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
    End If
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.

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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.

Join & Write a Comment

When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.

627 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question