(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