Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
bpc bpc is offline
external usenet poster
 
Posts: 13
Default Text to Time conversion

I have time values as text (134 or 1614 for example) entered into a column
(J4) that I need to convert to a time value (1:34 or 16:14). Helpers cells
are ok but no VBA please. I have tried =IF(J4="","",TEXT(J4,"00\:00")) and
=IF(j4="","",MOD(j4,1)) to no avail as I need to peform another calculation
(thank you T Valko) on this data. Thoughts? If it helps I have the date for
the corresponding times in an adjacent cell(H4). BPC
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Text to Time conversion

=IF(J4="","",TEXT(J4,"00\:00")+0)


"bpc" wrote:

I have time values as text (134 or 1614 for example) entered into a column
(J4) that I need to convert to a time value (1:34 or 16:14). Helpers cells
are ok but no VBA please. I have tried =IF(J4="","",TEXT(J4,"00\:00")) and
=IF(j4="","",MOD(j4,1)) to no avail as I need to peform another calculation
(thank you T Valko) on this data. Thoughts? If it helps I have the date for
the corresponding times in an adjacent cell(H4). BPC

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,934
Default Text to Time conversion

The TEXT function returns... this should be no surprise... a text string.
You want a number, so you have to coax Excel into making the string into a
number. You do this be involving the text string in a calculation. Any one
of these should work for you...

=IF(J4="","",--TEXT(J4,"00\:00"))

=IF(J4="","",0+TEXT(J4,"00\:00"))

=IF(J4="","",1*TEXT(J4,"00\:00"))

--
Rick (MVP - Excel)


"bpc" wrote in message
...
I have time values as text (134 or 1614 for example) entered into a column
(J4) that I need to convert to a time value (1:34 or 16:14). Helpers
cells
are ok but no VBA please. I have tried =IF(J4="","",TEXT(J4,"00\:00"))
and
=IF(j4="","",MOD(j4,1)) to no avail as I need to peform another
calculation
(thank you T Valko) on this data. Thoughts? If it helps I have the date
for
the corresponding times in an adjacent cell(H4). BPC


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,240
Default Text to Time conversion

bpc wrote:
I have time values as text (134 or 1614 for example) entered into a column
(J4) that I need to convert to a time value (1:34 or 16:14). Helpers cells
are ok but no VBA please. I have tried =IF(J4="","",TEXT(J4,"00\:00")) and
=IF(j4="","",MOD(j4,1)) to no avail as I need to peform another calculation
(thank you T Valko) on this data. Thoughts? If it helps I have the date for
the corresponding times in an adjacent cell(H4). BPC


Another option:

=IF(J4="","",LEFT(J4,LEN(J4)-2)/24+RIGHT(J4,2)/24/60)
Reply
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
time conversion thisguy Excel Discussion (Misc queries) 2 January 16th 07 04:29 AM
Text Time Conversion Calculation ZeroWayCool Excel Worksheet Functions 4 April 1st 06 04:17 PM
Time conversion SteveTALL Excel Worksheet Functions 2 December 17th 05 07:16 PM
Time conversion Dave Excel Discussion (Misc queries) 1 September 12th 05 01:49 PM
Text to time conversion Robert Smith Excel Discussion (Misc queries) 3 September 2nd 05 05:33 AM


All times are GMT +1. The time now is 06:15 PM.

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"