#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default Time Spent

I have a spread sheet that I have created that list start and end times in
them. Could you tell me how can I have my spreadsheet to calulate how much
time was spent in the total time spent collum.

Here's an example of what I'm talking about.
Date
User Name
Start Time
Finish Time
Total Time

I want to program it so that it will tell me the difference of time between
start and finish.

Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Time Spent


All you need to do is use a formula
=B4 - B3

then format the cell with the formula in any Time or Date format. I
usually recommend using custom format [h]:mm:ss because time formats
when over 24 hours truncates the hours to be less than 24. The custom
format showsx the hours greater than 24.


--
joel
------------------------------------------------------------------------
joel's Profile: 229
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=194050

http://www.thecodecage.com/forumz

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 43
Default Time Spent

As long as start and finish don't span midnight and are formatted as "h:mm",
a simple difference will tell you the elapsed time: in the Total Time cell
enter =B4-B3 and format as h:mm. (This formula assumes the values are in
column B; adjust to suit). If the times will ever go from one calendar day
into the next, you'll have to account for that in how you enter the start and
finish values; the formula will remain the same. In my sheet in Excel 2007, I
just entered 8:42 in B3, 9:45 in B4, and =B4-B3 in B5. The answer popped in
as 1:03 with no formatting on my part.

"SIRSTEVE" wrote:

I have a spread sheet that I have created that list start and end times in
them. Could you tell me how can I have my spreadsheet to calulate how much
time was spent in the total time spent collum.

Here's an example of what I'm talking about.
Date
User Name
Start Time
Finish Time
Total Time

I want to program it so that it will tell me the difference of time between
start and finish.

Thanks.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default Time Spent

Thanks you so much for your help. Your example did the trick....

"fisch4bill" wrote:

As long as start and finish don't span midnight and are formatted as "h:mm",
a simple difference will tell you the elapsed time: in the Total Time cell
enter =B4-B3 and format as h:mm. (This formula assumes the values are in
column B; adjust to suit). If the times will ever go from one calendar day
into the next, you'll have to account for that in how you enter the start and
finish values; the formula will remain the same. In my sheet in Excel 2007, I
just entered 8:42 in B3, 9:45 in B4, and =B4-B3 in B5. The answer popped in
as 1:03 with no formatting on my part.

"SIRSTEVE" wrote:

I have a spread sheet that I have created that list start and end times in
them. Could you tell me how can I have my spreadsheet to calulate how much
time was spent in the total time spent collum.

Here's an example of what I'm talking about.
Date
User Name
Start Time
Finish Time
Total Time

I want to program it so that it will tell me the difference of time between
start and finish.

Thanks.

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
Average of time spent monthly getting DIV/0 error Kelway07 Excel Worksheet Functions 2 August 5th 09 10:10 PM
Average time spent to # of events Jennifer Excel Worksheet Functions 2 December 11th 08 05:01 PM
Evaluate time spent on macro running Morris[_2_] Excel Programming 1 September 20th 06 11:35 AM
How can I show time spent? L Excel Worksheet Functions 1 May 8th 06 03:13 PM
Funcation to average the Time spent subbu Excel Worksheet Functions 1 December 7th 04 09:38 AM


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