Solved

Excel to Access time conversion issue

Posted on 2007-04-09
4
304 Views
Last Modified: 2008-02-01
Here was my original question:

Excel time format conversion issue
 
Question:
I had an import problem.  I imported a time from one spreadsheet to another and got the format mixed up.  Unfortunetly, I don't have the old data and don't want to change 25K rows by hand.

Here is what the time looks like in my spreadsheet

0:47:00

This is 47 minutes

It should be this

0:00:47

Can I convert this?

Ok, the accepted answer worked by changing all of the cells to d:mm:ss.  Now I need to get it into Access in the same format.  How do I do that?
0
Comment
Question by:farmingtonis
4 Comments
 
LVL 15

Expert Comment

by:dirknibleck
ID: 18878432
if they are all minutes, write a formula that captures just the minutes:

=TIME(0,0,MINUTE(A1))
0
 
LVL 75

Accepted Solution

by:
DatabaseMX (Joe Anderson - Microsoft MVP, Access and Data Platform) earned 500 total points
ID: 18878434
Please see this link, then let me know if you have any questions:

http://www.experts-exchange.com/Microsoft/Development/MS_Access/Q_22498310.html?cid=236#a18871665

mx
0
 
LVL 15

Expert Comment

by:stanscott2
ID: 18878448
When you have an entry of 47 minutes, you just divide by 60 to get 47 seconds.

You can modify the Excel spreadsheet first.  If I had a column of these entries starting in cell A2, I'd first insert a blank column next to it, enter the formula:  =A2/60 and then copy it down, convert it to values with a range value and then copy it back to the original column.

Does this help?
0
 
LVL 9

Expert Comment

by:BTognietti
ID: 18878499
You can apply similar formatting to the Access field. A question first on the Excel format, d:mm:ss would display 0:47:00, if you were looking for 0:00:47, you would want d:hh:mm.

For the Access field, right-click the table > Design view > Select the field you wish to format > Select Date/Time from the Data Type drop down > Select Short Time from the Format Menu.

Good luck,

Bud
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone 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

A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

837 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