#1   Report Post  
katgolightly
 
Posts: n/a
Default Averaging time

I have columns with data in the following formats:
Column A Column B Column C
12/7/2004 2:00:00 PM 3:51:00 12/7/2004 5:51:00 PM

B1 being =C1-A1 and ColB being formatted to HH:MM:SS using time value.

I then want an average of the time values in all of ColB. Somewhere the
logic breaks if I try to do =AVG(B1:B255) though.

Kat

  #2   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

What happens, if the hours go over 24 then you must use a custom format

[hh]:mm:ss

otherwise average(range)

should and will work

Regards,

Peo Sjoblom

"katgolightly" wrote:

I have columns with data in the following formats:
Column A Column B Column C
12/7/2004 2:00:00 PM 3:51:00 12/7/2004 5:51:00 PM

B1 being =C1-A1 and ColB being formatted to HH:MM:SS using time value.

I then want an average of the time values in all of ColB. Somewhere the
logic breaks if I try to do =AVG(B1:B255) though.

Kat

  #3   Report Post  
katgolightly
 
Posts: n/a
Default

Looking at my data I think the problem is because in some cases the date/time
in ColC is more than 24 hours later. How do I get it to come up with a time
value for that (i.e. 36:01:01 for 36 hours/3days, 1 minute, 1 second)

Kat

"katgolightly" wrote:

I have columns with data in the following formats:
Column A Column B Column C
12/7/2004 2:00:00 PM 3:51:00 12/7/2004 5:51:00 PM

B1 being =C1-A1 and ColB being formatted to HH:MM:SS using time value.

I then want an average of the time values in all of ColB. Somewhere the
logic breaks if I try to do =AVG(B1:B255) though.

Kat

  #4   Report Post  
katgolightly
 
Posts: n/a
Default

How do I do a custom format? (new to me)

Kat

"Peo Sjoblom" wrote:

What happens, if the hours go over 24 then you must use a custom format

[hh]:mm:ss

otherwise average(range)

should and will work

Regards,

Peo Sjoblom

"katgolightly" wrote:

I have columns with data in the following formats:
Column A Column B Column C
12/7/2004 2:00:00 PM 3:51:00 12/7/2004 5:51:00 PM

B1 being =C1-A1 and ColB being formatted to HH:MM:SS using time value.

I then want an average of the time values in all of ColB. Somewhere the
logic breaks if I try to do =AVG(B1:B255) though.

Kat

  #5   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

It's just that it won't display more than 24 and then it starts over again,
however the underlying value is correct, just change the firmat to custom
format [hh]:mm:ss

Regards,

Peo Sjoblom

"katgolightly" wrote:

Looking at my data I think the problem is because in some cases the date/time
in ColC is more than 24 hours later. How do I get it to come up with a time
value for that (i.e. 36:01:01 for 36 hours/3days, 1 minute, 1 second)

Kat

"katgolightly" wrote:

I have columns with data in the following formats:
Column A Column B Column C
12/7/2004 2:00:00 PM 3:51:00 12/7/2004 5:51:00 PM

B1 being =C1-A1 and ColB being formatted to HH:MM:SS using time value.

I then want an average of the time values in all of ColB. Somewhere the
logic breaks if I try to do =AVG(B1:B255) though.

Kat



  #6   Report Post  
Jason Morin
 
Posts: n/a
Default

Go to Format Cells Number tab, click the
word "Custom" and fill in Peo's suggestion on the right
under "Type:".

HTH
Jason
Atlanta, GA

-----Original Message-----
How do I do a custom format? (new to me)

Kat

"Peo Sjoblom" wrote:

What happens, if the hours go over 24 then you must

use a custom format

[hh]:mm:ss

otherwise average(range)

should and will work

Regards,

Peo Sjoblom

"katgolightly" wrote:

I have columns with data in the following formats:
Column A Column B

Column C
12/7/2004 2:00:00 PM 3:51:00 12/7/2004 5:51:00

PM

B1 being =C1-A1 and ColB being formatted to HH:MM:SS

using time value.

I then want an average of the time values in all of

ColB. Somewhere the
logic breaks if I try to do =AVG(B1:B255) though.

Kat

.

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
entering numbers to display a time format Ian Williams/Eazygig Excel Discussion (Misc queries) 1 January 10th 05 11:57 AM
Help - Information with time and date PM Excel Discussion (Misc queries) 4 January 6th 05 08:25 AM
Combined date time cell to separate date & time components Mark Ada Excel Discussion (Misc queries) 1 December 2nd 04 12:07 AM
Combined date time cell to separate date & time components Mark Ada Excel Worksheet Functions 1 December 2nd 04 12:04 AM
time formatting and time categorizing (vlookup or data validation) MarianneR Excel Worksheet Functions 4 November 18th 04 03:24 PM


All times are GMT +1. The time now is 10:59 PM.

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"