#1   Report Post  
JBoulton
 
Posts: n/a
Default daily average

I need a little help on a calculation.

Col A contains dates, Col C contains amounts. I need to calculate an
average by day given that there can be multiple entries for each day.

1/1/05 50
1/1/05 100
1/2/05 75

The calc should produce 112.50

TIA
--
Jim
  #2   Report Post  
Bernard Liengme
 
Posts: n/a
Default

Sounds like a candidate for PIVOT Table. Read Help and come back with
questions.
best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"JBoulton" wrote in message
...
I need a little help on a calculation.

Col A contains dates, Col C contains amounts. I need to calculate an
average by day given that there can be multiple entries for each day.

1/1/05 50
1/1/05 100
1/2/05 75

The calc should produce 112.50

TIA
--
Jim



  #3   Report Post  
JBoulton
 
Posts: n/a
Default

Bernard,

I *could* use a pivot table to total by day and then get an average, but by
the end of the year that would be a very long table. I'm hoping that someone
has a single function solution.

Jim

"Bernard Liengme" wrote:

Sounds like a candidate for PIVOT Table. Read Help and come back with
questions.
best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"JBoulton" wrote in message
...
I need a little help on a calculation.

Col A contains dates, Col C contains amounts. I need to calculate an
average by day given that there can be multiple entries for each day.

1/1/05 50
1/1/05 100
1/2/05 75

The calc should produce 112.50

TIA
--
Jim




  #4   Report Post  
Bob Phillips
 
Posts: n/a
Default

Jim,

How about

=SUMPRODUCT(--(A1:A20=--"2005-01-01"),C1:C20)/COUNTIF(A1:A20,--"2005-01-01")

or

=SUMPRODUCT(--(A1:A2000=H1),C1:C2000)/COUNTIF(A1:A200,H1)

if the comparison date is in H1

--

HTH

RP
(remove nothere from the email address if mailing direct)


"JBoulton" wrote in message
...
Bernard,

I *could* use a pivot table to total by day and then get an average, but

by
the end of the year that would be a very long table. I'm hoping that

someone
has a single function solution.

Jim

"Bernard Liengme" wrote:

Sounds like a candidate for PIVOT Table. Read Help and come back with
questions.
best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"JBoulton" wrote in message
...
I need a little help on a calculation.

Col A contains dates, Col C contains amounts. I need to calculate an
average by day given that there can be multiple entries for each day.

1/1/05 50
1/1/05 100
1/2/05 75

The calc should produce 112.50

TIA
--
Jim






  #5   Report Post  
JBoulton
 
Posts: n/a
Default

Bob,

That will certainly give me the average for any one day. What I want is the
average for all the days, whether I have one item in a day or many items on
the same day. This data accumulates constantly. I need the daily average.

In the first example, I'm looking for a way to calculate 112.50 (225/2) not
75 (225/3).

Jim

"Bob Phillips" wrote:

Jim,

How about

=SUMPRODUCT(--(A1:A20=--"2005-01-01"),C1:C20)/COUNTIF(A1:A20,--"2005-01-01")

or

=SUMPRODUCT(--(A1:A2000=H1),C1:C2000)/COUNTIF(A1:A200,H1)

if the comparison date is in H1

--

HTH

RP
(remove nothere from the email address if mailing direct)


"JBoulton" wrote in message
...
Bernard,

I *could* use a pivot table to total by day and then get an average, but

by
the end of the year that would be a very long table. I'm hoping that

someone
has a single function solution.

Jim

"Bernard Liengme" wrote:

Sounds like a candidate for PIVOT Table. Read Help and come back with
questions.
best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"JBoulton" wrote in message
...
I need a little help on a calculation.

Col A contains dates, Col C contains amounts. I need to calculate an
average by day given that there can be multiple entries for each day.

1/1/05 50
1/1/05 100
1/2/05 75

The calc should produce 112.50

TIA
--
Jim








  #6   Report Post  
Bob Phillips
 
Posts: n/a
Default

Jim,

Sorry, I am lost. I assumed you had made a typo. I don't understand where
the average is 112.5. 225/3 is 75, The average for the 1st is also 75. Where
does 112.5 come from, or more to the point, how?

--

HTH

RP
(remove nothere from the email address if mailing direct)


"JBoulton" wrote in message
...
Bob,

That will certainly give me the average for any one day. What I want is

the
average for all the days, whether I have one item in a day or many items

on
the same day. This data accumulates constantly. I need the daily

average.

In the first example, I'm looking for a way to calculate 112.50 (225/2)

not
75 (225/3).

Jim

"Bob Phillips" wrote:

Jim,

How about


=SUMPRODUCT(--(A1:A20=--"2005-01-01"),C1:C20)/COUNTIF(A1:A20,--"2005-01-01")

or

=SUMPRODUCT(--(A1:A2000=H1),C1:C2000)/COUNTIF(A1:A200,H1)

if the comparison date is in H1

--

HTH

RP
(remove nothere from the email address if mailing direct)


"JBoulton" wrote in message
...
Bernard,

I *could* use a pivot table to total by day and then get an average,

but
by
the end of the year that would be a very long table. I'm hoping that

someone
has a single function solution.

Jim

"Bernard Liengme" wrote:

Sounds like a candidate for PIVOT Table. Read Help and come back

with
questions.
best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"JBoulton" wrote in message
...
I need a little help on a calculation.

Col A contains dates, Col C contains amounts. I need to calculate

an
average by day given that there can be multiple entries for each

day.

1/1/05 50
1/1/05 100
1/2/05 75

The calc should produce 112.50

TIA
--
Jim








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
Using The Average Function if a cell has NA carl Excel Worksheet Functions 6 May 21st 23 07:46 PM
average on 2 conditions Ted Metro Excel Worksheet Functions 6 January 7th 05 08:23 PM
calculate average hours and minutes llstephens Excel Worksheet Functions 4 November 30th 04 03:47 PM
calculate average hours worked llstephens Excel Worksheet Functions 1 November 24th 04 02:37 PM
average, array and offsets Darin1979 Excel Worksheet Functions 0 November 17th 04 04:21 PM


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