PC Review


Reply
Thread Tools Rate Thread

FREQUENCY and dates

 
 
sean.winship@gmail.com
Guest
Posts: n/a
 
      15th Mar 2006
Hi,

I'm doing some performance analysis and have a large number of
timestamp (formatted as dd/mm/yyyy hh:mm:ss) / transaction duration
pairs in a spreadsheet. I'm trying to create a histogram showing
number of transactions each hour, but when I use the FREQUENCY function
I get very small numbers associated with each timestamp "bin".

Am I missing something fundamental about the way Excel handles dates?

After that I need a similar plot of average duration each hour or 30
minutes. I don't see any way to force FREQUENCY to do that.

Related to this, I tried selecting the two columns of data and
generating several different kinds of charts, including scatter plots.
Excel did not behave as I would expect, the plots were nearly entirely
black with strange values like 01/01/1900 on the axes.

I'm a programmer, not a spreadsheet wizards, so please excuse me if I'm
missing something obvious.

Thanks,

Sean

 
Reply With Quote
 
 
 
 
sean.winship@gmail.com
Guest
Posts: n/a
 
      15th Mar 2006
> I'm doing some performance analysis and have a large number of
> timestamp (formatted as dd/mm/yyyy hh:mm:ss) / transaction duration
> pairs in a spreadsheet. I'm trying to create a histogram showing
> number of transactions each hour, but when I use the FREQUENCY function
> I get very small numbers associated with each timestamp "bin".


Naturally, I figured out my problem right after posting. Debugging by
public embarassment works. I am still having problems with the
following, though:

> After that I need a similar plot of average duration each hour or 30
> minutes. I don't see any way to force FREQUENCY to do that.


Any thoughts?

Thanks,

Sean

 
Reply With Quote
 
Pete_UK
Guest
Posts: n/a
 
      15th Mar 2006
I assume you have a start date and time in column A and an end date and
time in column B (or the other way round), so you can obtain a duration
for each by subtracting one from the other and formatting as [h]:mm:ss.
By "average duration", do you mean that you want to add up all the
durations which started in a particular half hour slot and take the
average of those? Then repeat this for all the half hour slots in a
day?

Pete

 
Reply With Quote
 
sean.winship@gmail.com
Guest
Posts: n/a
 
      15th Mar 2006
Pete_UK wrote:
> I assume you have a start date and time in column A and an end date and
> time in column B (or the other way round), so you can obtain a duration
> for each by subtracting one from the other and formatting as [h]:mm:ss.
> By "average duration", do you mean that you want to add up all the
> durations which started in a particular half hour slot and take the
> average of those? Then repeat this for all the half hour slots in a
> day?


Exactly. Thanks for restating it more clearly.

Regards,

Sean

 
Reply With Quote
 
sean.winship@gmail.com
Guest
Posts: n/a
 
      16th Mar 2006
(E-Mail Removed) wrote:
> Pete_UK wrote:
> > I assume you have a start date and time in column A and an end date and
> > time in column B (or the other way round), so you can obtain a duration
> > for each by subtracting one from the other and formatting as [h]:mm:ss.
> > By "average duration", do you mean that you want to add up all the
> > durations which started in a particular half hour slot and take the
> > average of those? Then repeat this for all the half hour slots in a
> > day?

>
> Exactly. Thanks for restating it more clearly.


The solution I came up with is:

{=AVERAGE(IF($A$2$A$12256<H12,IF($A$2:$A$12256>H11,$C$2:$C$12256)))}

where the timestamps are in column A, the durations in column C, and my
frequency bins in column H.

This is more than I wanted to know about Excel.

Sean

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RE: Calculate Dates based on Frequency Jim Burke in Novi Microsoft Access VBA Modules 0 18th Sep 2008 12:35 AM
How to set payment dates and frequency? =?Utf-8?B?cGhvb2V5?= Microsoft Excel Programming 1 20th Nov 2006 12:36 AM
histograms - frequency and relative frequency? confusedstudent Microsoft Excel Misc 2 8th Feb 2006 09:20 AM
Need IIF statement to alternate end dates by Billing Frequency EC Microsoft Access Getting Started 2 15th Jan 2004 06:24 PM
frequency distribution and percentage frequency jeanne Microsoft Excel Charting 1 13th Jan 2004 08:43 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:20 AM.