Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
JLHORMAN
 
Posts: n/a
Default convert number to time format?


I have a column of 3-4 numbers representing time of day. The number vary
from 63 (=6:30 AM) to 113 (= 11:30 AM). Can anyone help me to convert
the numbers to time format? Thanks.


--
JLHORMAN
------------------------------------------------------------------------
JLHORMAN's Profile: http://www.excelforum.com/member.php...o&userid=23768
View this thread: http://www.excelforum.com/showthread...hreadid=374148

  #2   Report Post  
swatsp0p
 
Posts: n/a
Default


Assumption:

Cell D7 contains your coded time (e.g. 63 or 113)

Use this formula in a cell formatted as TIME 1:30 PM:

=(LEFT(D7,LEN(D7)-1)&":"&RIGHT(D7,1)&"0")*1

The result is 63 becomes 6:30 AM
113 becomes 11:30 AM

NOTES:
times from midnight to 12:50 AM will need to be entered as text in this
format:
'00 =12:00 AM
'03 = 12:30 AM
123 = 12:30 PM
133 = 1:30 PM
233 = 11:30 PM

HTH


--
swatsp0p


------------------------------------------------------------------------
swatsp0p's Profile: http://www.excelforum.com/member.php...o&userid=15101
View this thread: http://www.excelforum.com/showthread...hreadid=374148

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 format help needed Dan W. Excel Worksheet Functions 19 March 6th 08 09:08 AM
why does currency format change to number format? Cassie Excel Discussion (Misc queries) 3 March 18th 05 06:57 PM
Convert time to all seconds glenlee Excel Discussion (Misc queries) 2 March 12th 05 03:02 PM
How do I convert time format to text? Andrew Excel Discussion (Misc queries) 1 February 16th 05 07:07 PM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM


All times are GMT +1. The time now is 05:17 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"