Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 04-03-2012, 01:09 PM
Sammael Sammael is offline Changing format of time data Windows 7 64bit Changing format of time data Office 2007
Novice
Changing format of time data
 
Join Date: Nov 2011
Posts: 8
Sammael is on a distinguished road
Default Changing format of time data

I have time data formatted together, like 1040 for 10 hours 40 minutes and 611 for 6 hours 11 minutes.



How can I change this data into form that Excel 2007 would understand it as time?
Reply With Quote
  #2  
Old 04-06-2012, 07:23 PM
caholmes caholmes is offline Changing format of time data Windows Vista Changing format of time data Office 2007
Advanced Beginner
 
Join Date: Dec 2008
Location: Sydney, Australia
Posts: 54
caholmes is on a distinguished road
Default

Hi Sammael,

We need to split apart the time into its respective hour and minute components by using string functions and then join them back together again as a valid time. Lets just say we have the times in column A



Follow these steps:
  1. in a new column (I'll use column B) enter the following formula:
    =LEFT(A1,LEN(A1)-2)
    This will give you the hours.
  2. in another column (I'll use column C) enter the next formula:
    =RIGHT(A1,2)
    This will give you the minutes.
  3. in another column enter this formula to rejoin them back together again: =TIME(B1,C1,0)
  4. This gives us the time however we need to convert it from a formula to a value because this formula is dependant on the other 2 previous formulas created in steps 1 and 2.
    Select all of the new times and copy and paste as values either in another column of over the top of itself.
  5. Delete the formulas you create above leaving you with just the times
I hope this helps you out.
Reply With Quote
  #3  
Old 04-08-2012, 12:13 PM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Changing format of time data Windows 7 64bit Changing format of time data Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,770
Pecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant future
Default

Or in one go perhaps
Code:
=(LEFT(A1,LEN(A1)-2)&":"&RIGHT(A1,2))+0
and format as h:mm
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
Reply

Tags
conversion, excel 2007, time

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing format of time data Excel 2007 and data in dd:hh:mm:ss format Sammael Excel 6 11-05-2011 06:52 AM
How to restore original data format - from a .pdf file to Excel columns KIM SOLIS Excel 1 09-18-2011 10:49 PM
Changing format of time data Font colour and format changing? Lamya Word 5 05-16-2011 02:35 AM
changing font size without changing leading carolns Word 1 09-14-2009 12:30 PM
Recurring Appointment randomly changing time rkryd03 Outlook 0 03-06-2007 10:25 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:44 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft