Solved

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

Posted on 2011-09-20
2
314 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 50

Accepted Solution

by:
Ingeborg Hawighorst (Microsoft MVP / EE MVE) 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
This article describes a serious pitfall that can happen when deleting shapes using VBA.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

624 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