![]() |
Help with time/text format
I'm eporting from a source some of the times come out just fine if is longer then one hour if less then one hour.
Example 1:26:54 AM is fine and I can format to 1:26:54 but if its :08:54 it exports with a leading ":" so I would need to get a formula to add "00" before the ":" then convert it to time format |
Help with time/text format
|
Help with time/text format
Hi,
Am Wed, 25 Feb 2015 16:54:12 +0100 schrieb Claus Busch: =IF(LEFT(A1,1)=":",TIME(0,MID(A1,2,2),MID(A1,5,2)) ,TIMEVALUE(A1)) or: =IF(LEFT(A1,1)=":",TIMEVALUE(0&A1),TIMEVALUE(A1)) Regards Claus B. -- Vista Ultimate / Windows7 Office 2007 Ultimate / 2010 Professional |
Help with time/text format
Not good with VBA But the your last formula worked like a charm thank you as always Claus
On Wednesday, February 25, 2015 at 9:23:37 AM UTC-6, wrote: I'm eporting from a source some of the times come out just fine if is longer then one hour if less then one hour. Example 1:26:54 AM is fine and I can format to 1:26:54 but if its :08:54 it exports with a leading ":" so I would need to get a formula to add "00" before the ":" then convert it to time format |
All times are GMT +1. The time now is 09:57 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com