Solved

Excel to Access time conversion issue

Posted on 2007-04-09
4
303 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 - Access MVP) 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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

786 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