Solved

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

Posted on 2011-02-17
6
160 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 500 total points
Comment Utility
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 500 total points
Comment Utility
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
Comment Utility
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
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 5

Assisted Solution

by:Noduzz
Noduzz earned 500 total points
Comment Utility
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
Comment Utility
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 500 total points
Comment Utility
can you post a copy of the excel file?
0

Featured Post

Highfive Gives IT Their Time Back

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

Suggested Solutions

Drop Down List with Unique/Distinct Values (Part II - ComboBox or ListBox and Data Validation List Bonus!) David Miller (dlmille) Intro This article focuses on delivering unique, sorted lists to list objects (e.g., ComboBox, ListBox) and Dat…
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
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 in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

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

14 Experts available now in Live!

Get 1:1 Help Now