Solved

Trying to convert a column of data into date format in Excel

Posted on 2011-09-20
2
300 Views
Last Modified: 2012-05-12
Hi all,

I exported data from a program which I have openned in excel. The date and times have added an " ' " symbol. Specifically, in the date column, the data I have in the columns is:
'19/05/2011
'24/05/2011
'24/05/2011
'24/05/2011

In the time column (different column), the data I have is:

'1:52:35 AM
'9:34:21 AM
'1:12:06 PM
'1:14:04 PM

I know if I remove the " ' " character, excel is able to recognise the data as a time / date format. However, I tried functions in excel which removes the first character in a cell but that does not seem to work.

Any advice is greatly appreciated
0
Comment
Question by:Singamajig
2 Comments
 
LVL 50

Accepted Solution

by:
teylyn earned 500 total points
Comment Utility
Hello,

is the ' sign visible in the cell, or just in the formula bar?

If you can see it in the cell, then you could do this:

Insert an empty column to the right of the column with the date
Select all the dates and click
Data > Text to columns > Delimited > tick Other and enter a ' in the box > Finish

Do the same for the time values and delete the empty columns


If you can see the ' sign only when you edit the cell in the formula bar, use a formula in a helper column.

=A1+0

Format the result as a date, copy down. Do the same for the time values and format as time. Copy the resulting columns and use Paste Special > Values to paste over the original data. Delete the helper columns

cheers, teylyn
0
 

Author Comment

by:Singamajig
Comment Utility
Thanks Teylyn,

I could not see the ' sign in the cell.

Your second method works great.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Convert between Excel file formats (.XLS, .XLSX, .XLSM) with/without macro option David Miller (dlmille) Intro Over this past Fall, I've had the opportunity to see several similar requests and have developed a couple related solutions associate…
This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.

772 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now