Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
How can I format a cell to be "hours:minutes:seconds" without Excel treating
it as a time of day? When I enter "2:24:38" Excel treats it as "2:24:38 AM". My goal is to have Excel treat the times entered as an "elapsed time" so to speak. Then, at the bottom of the column, I'm looking to add a total of all the elapsed times in that column. How do I accomplish that? Thanx. |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Use this custom format before you enter the time.
[h]:mm:ss "Steven Sinclair" wrote: How can I format a cell to be "hours:minutes:seconds" without Excel treating it as a time of day? When I enter "2:24:38" Excel treats it as "2:24:38 AM". My goal is to have Excel treat the times entered as an "elapsed time" so to speak. Then, at the bottom of the column, I'm looking to add a total of all the elapsed times in that column. How do I accomplish that? Thanx. |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
You can use the 24 hour format hh:mm:ss
-- Regards, Peo Sjoblom Northwest Excel Solutions www.nwexcelsolutions.com (remove ^^ from email address) Portland, Oregon "Steven Sinclair" wrote in message ... How can I format a cell to be "hours:minutes:seconds" without Excel treating it as a time of day? When I enter "2:24:38" Excel treats it as "2:24:38 AM". My goal is to have Excel treat the times entered as an "elapsed time" so to speak. Then, at the bottom of the column, I'm looking to add a total of all the elapsed times in that column. How do I accomplish that? Thanx. |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Actually Excell treats all times the same. Any time or date entered is
automatically converted to the number of days from 12/31/1899. So you when you enter 2:24:38, it is converted to 0.0998263888888889 which is equal to 1/0/1900 2:24:38 AM. You can show this by converting the cell to a number. So to answer your question directly, All time is treated as elapsed time. If you don't preformat it though, it might look confusing. For Example: 10:35:24 + 4:25:12 + 9:45:32 should equal 24:46:08, but if you don't format it using the format [h]:mm:ss it will look like 0:46:08 "Sloth" wrote: Use this custom format before you enter the time. [h]:mm:ss "Steven Sinclair" wrote: How can I format a cell to be "hours:minutes:seconds" without Excel treating it as a time of day? When I enter "2:24:38" Excel treats it as "2:24:38 AM". My goal is to have Excel treat the times entered as an "elapsed time" so to speak. Then, at the bottom of the column, I'm looking to add a total of all the elapsed times in that column. How do I accomplish that? Thanx. |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Regarding the answers to my question...I'm thinking the question is not being
understood. I don't want to enter an actual time ( 10:22:38 AM ). I'm inputing elapsed times from a printout in the form of ( hh:mm:ss ), not actual times of day. So, I just need to be able to tell Excel not to format the time entered as a time of day. Can that be done? Thanx. |
#6
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Okay...I have figured out part of it.
I have a column of start times (E), a column of stop times (F), and a column of elapsed times (G). For the formula in the cells for column (G), I have placed the following: =TEXT(F3-E3,"hh:mm:ss") This properly gives me the elapsed time between columns (E) and (F). Now, at the bottom of column (G), I'd like to be able to have a total of all the elapsed times, but can't figure out that formula. Any ideas? Thanx. |
#7
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I don't think you understand how Excel stores time. If you did, you would
realise there is no reason to ask what you are asking. You HAVE to insert time as a specific time, but you can use the custom format I gave you to DISPLAY it as elapsed time. Below is from the help under "How Excel Stores Dates and Times". How Microsoft Excel stores dates and times Microsoft Excel stores dates as sequential numbers known as serial values. Excel stores times as decimal fractions because time is considered a portion of a day. Dates and times are values and, therefore, can be added, subtracted, and included in other calculations. For example, to determine the difference between two dates, you can subtract one date from the other. You can view a date as a serial value and a time as a decimal fraction by changing the format of the cell that contains the date or time to General format. "Steven Sinclair" wrote: Regarding the answers to my question...I'm thinking the question is not being understood. I don't want to enter an actual time ( 10:22:38 AM ). I'm inputing elapsed times from a printout in the form of ( hh:mm:ss ), not actual times of day. So, I just need to be able to tell Excel not to format the time entered as a time of day. Can that be done? Thanx. |
#8
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Don't use the TEXT function. Simply subtract the two times and use a custom
number format. How to Create a custom number format: 1. Select the cells you want to format. 2. On the Format menu, click Cells, and then click the Number tab. 3. In the Category list, click Custom. 4. In the Type box, insert this... [h]:mm:ss 5. Click Okay To SUM the elapsed times use the SUM function and then use the same custom number format. "Steven Sinclair" wrote: Okay...I have figured out part of it. I have a column of start times (E), a column of stop times (F), and a column of elapsed times (G). For the formula in the cells for column (G), I have placed the following: =TEXT(F3-E3,"hh:mm:ss") This properly gives me the elapsed time between columns (E) and (F). Now, at the bottom of column (G), I'd like to be able to have a total of all the elapsed times, but can't figure out that formula. Any ideas? Thanx. |
#9
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
When summing time you want to use the format that was shown as
[h]:mm:ss the square brackets around h or hh keep the hours from overflowing into days; otherwise you would not see anything higher than 23 in that posiiton.. Dates are recorded as days past a reference date such as Dec 31, 1899, and time is stored as fractional days. For more information see . http://www.mvps.org/dmcritchie/excel/datetime.htm --- HTH, David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001] My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm Search Page: http://www.mvps.org/dmcritchie/excel/search.htm "Sloth" wrote in message ... Don't use the TEXT function. Simply subtract the two times and use a custom number format. How to Create a custom number format: 1. Select the cells you want to format. 2. On the Format menu, click Cells, and then click the Number tab. 3. In the Category list, click Custom. 4. In the Type box, insert this... [h]:mm:ss 5. Click Okay To SUM the elapsed times use the SUM function and then use the same custom number format. "Steven Sinclair" wrote: Okay...I have figured out part of it. I have a column of start times (E), a column of stop times (F), and a column of elapsed times (G). For the formula in the cells for column (G), I have placed the following: =TEXT(F3-E3,"hh:mm:ss") This properly gives me the elapsed time between columns (E) and (F). Now, at the bottom of column (G), I'd like to be able to have a total of all the elapsed times, but can't figure out that formula. Any ideas? Thanx. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Conditional Formatting For A Cell Other Than The One With The Form | Excel Worksheet Functions | |||
Drop Down List that has formatting of cell range Font ect. | Excel Discussion (Misc queries) | |||
can conditional formatting on one cell value to another cell valu | Excel Worksheet Functions | |||
Transfer Cell Formatting for linked cells | Excel Discussion (Misc queries) | |||
cell color index comparison | New Users to Excel |