Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
al al is offline
external usenet poster
 
Posts: 363
Default Please help with formating

I have a column that has times written as numbers, so, I have 1:30 written as
1.3 and 24:00 written as 24. and so on. When I try to format the column as
Time, I get very strange results. I need to format the time so that it would
go from 0:00 to 24:00 (military hours). I have so many records to go manually
to make these changes. When I make the change manually it works fine. Can
someone help me please. I am trying to meet a deadline and this way, it will
take forever.
thanks
Al
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,651
Default Please help with formating

On Sun, 23 Aug 2009 16:33:01 -0700, Al wrote:

I have a column that has times written as numbers, so, I have 1:30 written as
1.3 and 24:00 written as 24. and so on. When I try to format the column as
Time, I get very strange results. I need to format the time so that it would
go from 0:00 to 24:00 (military hours). I have so many records to go manually
to make these changes. When I make the change manually it works fine. Can
someone help me please. I am trying to meet a deadline and this way, it will
take forever.
thanks
Al


Excel stores time as fractions of a day (1 hr = 1/24).

So first convert the value into something that excel recognizes as a time.
e.g., with your value in H1:

=DOLLARDE(H1,60)/24

or if you do not have the ATP installed:

=(INT(H1)+MOD(H1,1)/0.6)/24

Then format the result as time (e.g. [h]:mm )
--ron
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,651
Default Please help with formating

On Sun, 23 Aug 2009 16:33:01 -0700, Al wrote:

I have a column that has times written as numbers, so, I have 1:30 written as
1.3 and 24:00 written as 24. and so on. When I try to format the column as
Time, I get very strange results. I need to format the time so that it would
go from 0:00 to 24:00 (military hours). I have so many records to go manually
to make these changes. When I make the change manually it works fine. Can
someone help me please. I am trying to meet a deadline and this way, it will
take forever.
thanks
Al


One change:

For my previous post, after you convert using the formula I posted, to get the
output as you want, format (Format/Cells/Number/Custom Type: hh:mm )
--ron
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,934
Default Please help with formating

I have a column that has times written as numbers, so, I have 1:30 written
as
1.3 and 24:00 written as 24. and so on. When I try to format the column as
Time, I get very strange results. I need to format the time so that it
would
go from 0:00 to 24:00 (military hours). I have so many records to go
manually
to make these changes. When I make the change manually it works fine. Can
someone help me please. I am trying to meet a deadline and this way, it
will
take forever.
thanks
Al


Excel stores time as fractions of a day (1 hr = 1/24).

So first convert the value into something that excel recognizes as a time.
e.g., with your value in H1:

=DOLLARDE(H1,60)/24

or if you do not have the ATP installed:

=(INT(H1)+MOD(H1,1)/0.6)/24

Then format the result as time (e.g. [h]:mm )


Here is another non ATP formula as well...

=--SUBSTITUTE(TEXT(H1,"0.00"),".",":")

Rick

  #5   Report Post  
Posted to microsoft.public.excel.programming
al al is offline
external usenet poster
 
Posts: 363
Default Please help with formating

Worked fine thanks

"Ron Rosenfeld" wrote:

On Sun, 23 Aug 2009 16:33:01 -0700, Al wrote:

I have a column that has times written as numbers, so, I have 1:30 written as
1.3 and 24:00 written as 24. and so on. When I try to format the column as
Time, I get very strange results. I need to format the time so that it would
go from 0:00 to 24:00 (military hours). I have so many records to go manually
to make these changes. When I make the change manually it works fine. Can
someone help me please. I am trying to meet a deadline and this way, it will
take forever.
thanks
Al


One change:

For my previous post, after you convert using the formula I posted, to get the
output as you want, format (Format/Cells/Number/Custom Type: hh:mm )
--ron



  #6   Report Post  
Posted to microsoft.public.excel.programming
al al is offline
external usenet poster
 
Posts: 363
Default Please help with formating

this also worked, thanks

"Rick Rothstein" wrote:

I have a column that has times written as numbers, so, I have 1:30 written
as
1.3 and 24:00 written as 24. and so on. When I try to format the column as
Time, I get very strange results. I need to format the time so that it
would
go from 0:00 to 24:00 (military hours). I have so many records to go
manually
to make these changes. When I make the change manually it works fine. Can
someone help me please. I am trying to meet a deadline and this way, it
will
take forever.
thanks
Al


Excel stores time as fractions of a day (1 hr = 1/24).

So first convert the value into something that excel recognizes as a time.
e.g., with your value in H1:

=DOLLARDE(H1,60)/24

or if you do not have the ATP installed:

=(INT(H1)+MOD(H1,1)/0.6)/24

Then format the result as time (e.g. [h]:mm )


Here is another non ATP formula as well...

=--SUBSTITUTE(TEXT(H1,"0.00"),".",":")

Rick


  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,651
Default Please help with formating

On Sun, 23 Aug 2009 19:29:01 -0700, Al wrote:

Worked fine thanks


You're welcome. Thanks for the feedback.
--ron
  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,651
Default Please help with formating

On Sun, 23 Aug 2009 22:18:58 -0400, "Rick Rothstein"
wrote:

Here is another non ATP formula as well...

=--SUBSTITUTE(TEXT(H1,"0.00"),".",":")


I believe this method requires that one be using the colon as a time separator
in the Regional and Language Windows settings. I don't know of any countries
that don't use it, but someone might have customized it.
--ron
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
formating JCRICKET Excel Worksheet Functions 1 April 12th 10 01:44 PM
Formating Andy_Trow Excel Discussion (Misc queries) 2 July 25th 07 12:32 PM
Install dates formating using conditional formating? Jerry Eggleston Excel Discussion (Misc queries) 2 November 9th 05 05:49 PM
formating john Excel Programming 1 March 15th 05 10:34 PM
FORMATING JASON Excel Programming 2 May 21st 04 12:37 AM


All times are GMT +1. The time now is 07:16 AM.

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

About Us

"It's about Microsoft Excel"