Solved

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

Posted on 2011-09-20
2
308 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:
Ingeborg Hawighorst earned 500 total points
ID: 36571554
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
ID: 36573647
Thanks Teylyn,

I could not see the ' sign in the cell.

Your second method works great.
0

Featured Post

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question (http:/Q_27311462.html), I created an alternative function to the Excel Concatenate() function that you might find useful.  I tested several solutions and share the results in this article as well as t…
Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
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…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

830 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