Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 09-29-2014, 09:37 AM
gebobs gebobs is offline Macro to format unpredictable data Windows 7 64bit Macro to format unpredictable data Office 2010 64bit
Expert
 
Join Date: Mar 2014
Location: Atlanta
Posts: 837
gebobs has a spectacular aura aboutgebobs has a spectacular aura about
Default

First, I would ask that the data be generated in a more suitable format. Have all data in the time column exported as hh:mm:ss with no succeeding text.

But you can work with the data on hand until then by entering a conversion equation to the right (here for the data on line 2):

=LEFT(B2, FIND(" ",B2)-1)/IF(RIGHT(B2,5)="Hours",1,60)

See attached. I formatted the column C as h:mm:ss so the complete time is shown.
Attached Files
File Type: xlsx msof query.xlsx (9.0 KB, 10 views)
Reply With Quote
 

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro to format unpredictable data Mailmerge Data Format tombradley Mail Merge 1 09-29-2013 07:35 PM
Macro to format unpredictable data How to format WORD data using edit field? Azuki Mail Merge 2 04-01-2013 06:08 PM
Macro to format unpredictable data macro to format this ubns Word 3 04-24-2012 11:44 PM
Changing format of time data Sammael Excel 2 04-08-2012 12:13 PM
Macro to format unpredictable data Excel 2007 and data in dd:hh:mm:ss format Sammael Excel 6 11-05-2011 06:52 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:12 AM.


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