Solved

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

Posted on 2011-09-20
2
303 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Compile Error 7 41
InStr Function not working properly in macro 3 19
Export Query data to excel file 14 36
Error in formula not increasing value 2 15
Dealing with unintended Excel Active-X resizing quirks (VBA code simulates "self correction") David Miller (dlmille) Intro Not everyone is a fan of Active-X controls in spreadsheets (as opposed to the UserForm approach, the older Form controls …
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 Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.
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…

910 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

16 Experts available now in Live!

Get 1:1 Help Now