Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Trouble importing data froma text file and converting to date format in excel

Posted on 2011-02-17
6
Medium Priority
?
168 Views
Last Modified: 2012-05-11
I have a textfile with data that I want to import in to excel.  For some reason the text format imports funky looking and I cannot convert to a date and time value (end goal is to do a count for each hour period and each day of the week)

This is the text file
1/5/2011 16:45:28.14
1/5/2011 22:41:05.863

So any guidance on how to import it to a basic time (hh:mm) and date mm-dd-yy is greatly apperciated...once I can import it properly then I want to seperate the two in to different colums for analysis.
0
Comment
Question by:groovymonkey
  • 4
  • 2
6 Comments
 
LVL 5

Accepted Solution

by:
Noduzz earned 2000 total points
ID: 34918784
What you need to do is import the text file and choose delimited and make space the delimiter.
0
 
LVL 5

Assisted Solution

by:Noduzz
Noduzz earned 2000 total points
ID: 34918810
Then you will probably need to format the columns to the proper format of date and time that you want for each column.
0
 

Author Comment

by:groovymonkey
ID: 34928551
Okay two funky things happen:
1.  The time takes off and stays in its crappy format but clomps in to another field.
2.  The dates...some align right and some align left....so I imported them using the sapce and tab (delimited) and all seems fine except the dates flux between the following formats and some left align and some right align:
 (how can I convert them all to proper dates (the formatting route is not working so much)
8/30/2010
11/24/2010
11/25/2010
12/02/10
12/02/10
12/04/10
12/11/10
12/11/10
12/20/2010
12/20/2010
0
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.

 
LVL 5

Assisted Solution

by:Noduzz
Noduzz earned 2000 total points
ID: 34929023
You need to just select the column and choose the proper formatting  by right clicking the column header (the A,B,C,D...etc at the top) and choose format cells... then on the number tab choose Date and the proper formatting you want.
0
 

Author Comment

by:groovymonkey
ID: 34952407
Okay...the formatting funtion is NOT working...some are converting to dates and some are NOT...is there another way (I think the right align vs the left align indicates that they are diff formats)...the text I included above was what it looked like after I formatted it to mm/dd/yyyy
0
 
LVL 5

Assisted Solution

by:Noduzz
Noduzz earned 2000 total points
ID: 34952449
can you post a copy of the excel file?
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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.
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 …
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

971 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