#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Timestamp ?

Hi -

I run a query in oracle and import the results into excel. What I'm
looking to do is create a column in excel with the avg of the
timestamps. For example:

CRAT_TSP RESOL_DTE
05/27/2007 07:50:19 05/27/2007 07:50:34
05/27/2007 07:50:19 05/27/2007 07:50:38
05/27/2007 07:53:24 05/27/2007 07:53:38

I want to subtract the resolved minus created timestamp and create a
column with the average it took for it to complete. Can someone point
me in the right direction?

THANKS!!

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,441
Default Timestamp ?

=B2-A2

and format as time, then copy to match your values.

HTH,
Bernie
MS Excel MVP


"elroyerni" wrote in message
oups.com...
Hi -

I run a query in oracle and import the results into excel. What I'm
looking to do is create a column in excel with the avg of the
timestamps. For example:

CRAT_TSP RESOL_DTE
05/27/2007 07:50:19 05/27/2007 07:50:34
05/27/2007 07:50:19 05/27/2007 07:50:38
05/27/2007 07:53:24 05/27/2007 07:53:38

I want to subtract the resolved minus created timestamp and create a
column with the average it took for it to complete. Can someone point
me in the right direction?

THANKS!!



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 19
Default Timestamp ?

With creation time in column A and resolved in column B, enter a
formula in column C that looks like this:
=(C1-B1)*(24*60*60)
.... where (24*60*60) is the number of seconds in a day. The reason for
this requires a discussion of how Excel treats dates and times: a date
is an integer and a time is a portion of a day. Multiplying (resolved
- created) by 86400 converts the difference in timestamps to seconds.
Copy and paste this formula for other rows.

At the bottom of the range, you can use the AVERAGE(range) function to
determine the simple average.

Dave O

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
Timestamp PS Excel Discussion (Misc queries) 2 January 10th 07 02:21 PM
Timestamp Sher Excel Discussion (Misc queries) 2 November 3rd 06 04:31 PM
Now as timestamp Lp12 Excel Worksheet Functions 5 August 13th 06 11:32 AM
timestamp functions alexfthe Excel Worksheet Functions 4 March 12th 06 06:41 AM
Timestamp Button Eckleburg Excel Discussion (Misc queries) 2 June 6th 05 04:52 PM


All times are GMT +1. The time now is 04:16 PM.

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"