LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 542
Default time conversion from a varying data dump

I hope this is an easy one...

I have data that spits out times in a text format that usually appear as
:mm:ss (zero hours are omitted), but in the rare chance it goes over 60min,
it appears as h:mm:ss. How do I account for the varying digit(s) for the
hours when using
TIME(hh,mm,ss)? The time starting with the ":" throws a monkeywrench into my
formulas...

I got it to work for anything under an hour using:
TIME(0,RIGHT(LEFT(A1,3),2),RIGHT(A1,2)), but when its greater than 60min, it
doesn't work (obviously since theres a zero in the hour field).
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
transposing vertical data to horizontal with varying amount of data Ghosty Excel Discussion (Misc queries) 5 August 1st 06 05:20 AM
extract key words/data from multiple files -dump in new worksheet MikeR-Oz New Users to Excel 10 March 20th 06 08:14 AM
Varying data on X axis coa01gsb Charts and Charting in Excel 2 February 6th 06 02:48 PM
Time conversion SteveTALL Excel Worksheet Functions 2 December 17th 05 07:16 PM
Condensing a large data dump Ant Excel Discussion (Misc queries) 1 October 4th 05 06:30 PM


All times are GMT +1. The time now is 05:39 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"