Solved

Excel to Access time conversion issue

Posted on 2007-04-09
4
305 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
How to get Spreadsheet Compare 2016 working with the 64 bit version of Office 2016
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.

730 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