Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default opposite of weighted average

Hi!

I have a table of data:
column A: dates
column B: values

I want to know the average value over a certain period
however, for some dates I have more values than for others, which makes that
a classic average would give a distorted picture, very much like a wighted
average, which i don't want

eg.
13-Jun-02 8250
22-May-02 8400
16-May-02 8750
15-May-02 8000
12-Apr-02 8000
28-Mar-02 8300
22-Mar-02 8250
22-Mar-02 7750
08-Mar-02 8500
01-Mar-02 8250
26-Feb-02 7500
20-Feb-02 8400
05-Feb-02 6800
05-Feb-02 7000

I understand that the solution might take more than one step as if more that
one value corresponds with 1 single day, first an average should be
calculated? or not?
is there a single formula covering this request?

thanks in advance!
tom
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
bj bj is offline
external usenet poster
 
Posts: 1,397
Default opposite of weighted average

one method would be to use two helper columns

if dates are in column A and data in column b starting row 1
in C1 enter =1/countif(A:A,A1)
in D1 enter =B1*C1
your average of average per day would then be = Sum(D:D)/Sum(C:C)


"tom ossieur" wrote:

Hi!

I have a table of data:
column A: dates
column B: values

I want to know the average value over a certain period
however, for some dates I have more values than for others, which makes that
a classic average would give a distorted picture, very much like a wighted
average, which i don't want

eg.
13-Jun-02 8250
22-May-02 8400
16-May-02 8750
15-May-02 8000
12-Apr-02 8000
28-Mar-02 8300
22-Mar-02 8250
22-Mar-02 7750
08-Mar-02 8500
01-Mar-02 8250
26-Feb-02 7500
20-Feb-02 8400
05-Feb-02 6800
05-Feb-02 7000

I understand that the solution might take more than one step as if more that
one value corresponds with 1 single day, first an average should be
calculated? or not?
is there a single formula covering this request?

thanks in advance!
tom

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 33
Default opposite of weighted average

Thanks, that is a useful help for step 1 of David Biddulph's solution,
however, it neglects the "empty" dates, i.e. step 2

A B C D
01 January 2000 0 1 0
02 January 2000 0 0.5 0
02 January 2000 0 0.5 0
01 December 2001 10 1 10
02 December 2001 10 1 10
03 December 2001 10 1 10
04 December 2001 10 1 10
05 December 2001 10 0.5 5
05 December 2001 10 0.5 5


Result = 7.143

Looking at the period 1Jan00 till 31Dec01, the result should be close to 5,
about 4.95 or so...

the table contains only dates for which values are available



"bj" wrote:

one method would be to use two helper columns

if dates are in column A and data in column b starting row 1
in C1 enter =1/countif(A:A,A1)
in D1 enter =B1*C1
your average of average per day would then be = Sum(D:D)/Sum(C:C)


"tom ossieur" wrote:

Hi!

I have a table of data:
column A: dates
column B: values

I want to know the average value over a certain period
however, for some dates I have more values than for others, which makes that
a classic average would give a distorted picture, very much like a wighted
average, which i don't want

eg.
13-Jun-02 8250
22-May-02 8400
16-May-02 8750
15-May-02 8000
12-Apr-02 8000
28-Mar-02 8300
22-Mar-02 8250
22-Mar-02 7750
08-Mar-02 8500
01-Mar-02 8250
26-Feb-02 7500
20-Feb-02 8400
05-Feb-02 6800
05-Feb-02 7000

I understand that the solution might take more than one step as if more that
one value corresponds with 1 single day, first an average should be
calculated? or not?
is there a single formula covering this request?

thanks in advance!
tom



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
Weighted moving average Boom1 Excel Worksheet Functions 0 June 1st 06 08:47 PM
Weighted Average Using Row Number whiZZfiZZ Excel Worksheet Functions 2 May 8th 06 02:44 AM
Weighted Average phm New Users to Excel 3 February 3rd 06 11:42 AM
Weighted Average - Copy Function Melissa Excel Worksheet Functions 7 January 6th 06 05:51 PM
Show weighted average value after filter. BillC Excel Worksheet Functions 3 May 3rd 05 04:13 PM


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

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"