Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default How do I convert hours, minutes, and seconds into decimal format?

In cell A1 I have the day, month, year, hour, minute, and second a particular
transaction took place. In cell A2 I have the day, month, year, hour, minute,
and second the next transaction takes place. The Start and End dates and
times are used to determine the total number of hours, minutes and seconds
for one transaction. I have the total number of hours, minutes, and seconds
for a given transaction in column A3. If the total time in column A3 is
greater than 12:00:00, I want to return the value of 1 Business Day in column
A4. If the total is less than 12:00:00 I want to return the total hours,
minutes, and seconds in decimal format in column A4. Is this scientifically
possible?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 623
Default How do I convert hours, minutes, and seconds into decimal format?

Yes, it's possible. It depends what you mean by "hours, minutes, and seconds in
decimal format". Do you want decimal hours, minutes, seconds, or something else?

Time is stored in Excel as a fraction of a day, so 12:00:00 is 0.5 days. If you
multiply a time by 24, you will get decimal hours. So, the following should
work:

=if(a30.5,1,a3*24)

Format as number, or general.

--
Regards,
Fred


"Programmer Wannabe" <Programmer wrote in
message ...
In cell A1 I have the day, month, year, hour, minute, and second a particular
transaction took place. In cell A2 I have the day, month, year, hour, minute,
and second the next transaction takes place. The Start and End dates and
times are used to determine the total number of hours, minutes and seconds
for one transaction. I have the total number of hours, minutes, and seconds
for a given transaction in column A3. If the total time in column A3 is
greater than 12:00:00, I want to return the value of 1 Business Day in column
A4. If the total is less than 12:00:00 I want to return the total hours,
minutes, and seconds in decimal format in column A4. Is this scientifically
possible?



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
Convert Decimal hours and Minutes to minutes please. Steved Excel Worksheet Functions 13 July 5th 06 05:33 AM
How do i convert angles from degrees,minutes, seconds to decimal morne Excel Discussion (Misc queries) 1 November 23rd 05 02:09 PM
Convert "Time Interval" in "hours : minutes : seconds" to seconds Ianukotnorth New Users to Excel 7 May 8th 05 08:11 PM
Convert hours and minutes in time format into fractions of hours.. Akern Excel Worksheet Functions 4 April 21st 05 02:56 PM
Create a custom format to convert seconds to minutes. XOXO Excel Discussion (Misc queries) 3 April 12th 05 11:34 PM


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