Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 57
Default Help with Average formula

I am looking for help for a formula to get an average based on criteria. In
the table below there are %'s assigned to each week end date.

sheet1 (weekly values)

Name 4/1 4/10 4/17 4/24 5/1
Name 1 100 50 40 80 80
Name 2 100 100 100 50 100


sheet2 (AVG by month)
Apr-09 May-09
Name 1 xx xx
Name 2 xx xx

In sheet2 I want to calculate the average of all %'s by month per Name. For
example the average for Name 1 in Apr-09 should equal = 67.5%; Name 2 =
87.5%. Was looking for a dynamic formula that will match and avg the weeks
for a corresponding month in a column header. Any help is very much
appreciated!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Help with Average formula

Assuming your data in sheet 1 A1:IV100

Sheet 2

In B2:
=AVERAGE(IF((Sheet1!$A$2:$A$100=$A2)*(MONTH(Sheet1 !$B$1:$IV$1)=MONTH(B$1)),Sheet1!$B$2:$IV$100))

"GoBucks" wrote:

I am looking for help for a formula to get an average based on criteria. In
the table below there are %'s assigned to each week end date.

sheet1 (weekly values)

Name 4/1 4/10 4/17 4/24 5/1
Name 1 100 50 40 80 80
Name 2 100 100 100 50 100


sheet2 (AVG by month)
Apr-09 May-09
Name 1 xx xx
Name 2 xx xx

In sheet2 I want to calculate the average of all %'s by month per Name. For
example the average for Name 1 in Apr-09 should equal = 67.5%; Name 2 =
87.5%. Was looking for a dynamic formula that will match and avg the weeks
for a corresponding month in a column header. Any help is very much
appreciated!

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 915
Default Help with Average formula

GoBucks wrote:
I am looking for help for a formula to get an average based on criteria. In
the table below there are %'s assigned to each week end date.

sheet1 (weekly values)

Name 4/1 4/10 4/17 4/24 5/1
Name 1 100 50 40 80 80
Name 2 100 100 100 50 100


sheet2 (AVG by month)
Apr-09 May-09
Name 1 xx xx
Name 2 xx xx

In sheet2 I want to calculate the average of all %'s by month per Name. For
example the average for Name 1 in Apr-09 should equal = 67.5%; Name 2 =
87.5%. Was looking for a dynamic formula that will match and avg the weeks
for a corresponding month in a column header. Any help is very much
appreciated!


Not your average Average formula!

This solution may be a little simplistic. It assumes the name list is
the same in both worksheets and the dates do not overlap in years.

On Sheet2!B2 (fill right and down) this array* formula works:
=AVERAGE(IF(MONTH(B$1)=MONTH(Sheet1!$B$1:$F$1),She et1!$B2:$F2))

*Commit an array formula by pressing Ctrl+Shift+Enter, not just Enter.

Adding contingencies for multiple years and random lists of names can be
done at the expense of making the formula much more complicated.

Alternatively, were your data laid out like this:

Name Date Value
Name 1 01-Apr 100
Name 1 10-Apr 50
Name 1 17-Apr 40
Name 1 24-Apr 80
Name 1 01-May 80
Name 2 01-Apr 100
Name 2 10-Apr 100
Name 2 17-Apr 100
Name 2 24-Apr 50
Name 2 01-May 100

You could use a pivot table to average Value while automagically
grouping the time series by month. This will handle irregular name lists
as well as any dates.
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 57
Default Help with Average formula

TM and smafrtin..thank you very much!! Both solutions work great!!!!

"smartin" wrote:

GoBucks wrote:
I am looking for help for a formula to get an average based on criteria. In
the table below there are %'s assigned to each week end date.

sheet1 (weekly values)

Name 4/1 4/10 4/17 4/24 5/1
Name 1 100 50 40 80 80
Name 2 100 100 100 50 100


sheet2 (AVG by month)
Apr-09 May-09
Name 1 xx xx
Name 2 xx xx

In sheet2 I want to calculate the average of all %'s by month per Name. For
example the average for Name 1 in Apr-09 should equal = 67.5%; Name 2 =
87.5%. Was looking for a dynamic formula that will match and avg the weeks
for a corresponding month in a column header. Any help is very much
appreciated!


Not your average Average formula!

This solution may be a little simplistic. It assumes the name list is
the same in both worksheets and the dates do not overlap in years.

On Sheet2!B2 (fill right and down) this array* formula works:
=AVERAGE(IF(MONTH(B$1)=MONTH(Sheet1!$B$1:$F$1),She et1!$B2:$F2))

*Commit an array formula by pressing Ctrl+Shift+Enter, not just Enter.

Adding contingencies for multiple years and random lists of names can be
done at the expense of making the formula much more complicated.

Alternatively, were your data laid out like this:

Name Date Value
Name 1 01-Apr 100
Name 1 10-Apr 50
Name 1 17-Apr 40
Name 1 24-Apr 80
Name 1 01-May 80
Name 2 01-Apr 100
Name 2 10-Apr 100
Name 2 17-Apr 100
Name 2 24-Apr 50
Name 2 01-May 100

You could use a pivot table to average Value while automagically
grouping the time series by month. This will handle irregular name lists
as well as any dates.

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Help with Average formula

You're Welcome!


"GoBucks" wrote:

TM and smafrtin..thank you very much!! Both solutions work great!!!!

"smartin" wrote:

GoBucks wrote:
I am looking for help for a formula to get an average based on criteria. In
the table below there are %'s assigned to each week end date.

sheet1 (weekly values)

Name 4/1 4/10 4/17 4/24 5/1
Name 1 100 50 40 80 80
Name 2 100 100 100 50 100


sheet2 (AVG by month)
Apr-09 May-09
Name 1 xx xx
Name 2 xx xx

In sheet2 I want to calculate the average of all %'s by month per Name. For
example the average for Name 1 in Apr-09 should equal = 67.5%; Name 2 =
87.5%. Was looking for a dynamic formula that will match and avg the weeks
for a corresponding month in a column header. Any help is very much
appreciated!


Not your average Average formula!

This solution may be a little simplistic. It assumes the name list is
the same in both worksheets and the dates do not overlap in years.

On Sheet2!B2 (fill right and down) this array* formula works:
=AVERAGE(IF(MONTH(B$1)=MONTH(Sheet1!$B$1:$F$1),She et1!$B2:$F2))

*Commit an array formula by pressing Ctrl+Shift+Enter, not just Enter.

Adding contingencies for multiple years and random lists of names can be
done at the expense of making the formula much more complicated.

Alternatively, were your data laid out like this:

Name Date Value
Name 1 01-Apr 100
Name 1 10-Apr 50
Name 1 17-Apr 40
Name 1 24-Apr 80
Name 1 01-May 80
Name 2 01-Apr 100
Name 2 10-Apr 100
Name 2 17-Apr 100
Name 2 24-Apr 50
Name 2 01-May 100

You could use a pivot table to average Value while automagically
grouping the time series by month. This will handle irregular name lists
as well as any dates.

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
A formula to AVERAGE IF but only average a set number of values [email protected] Excel Worksheet Functions 2 January 31st 08 08:28 PM
formula average Melle Excel Discussion (Misc queries) 3 October 6th 05 03:20 PM
Average Row Formula Tom Excel Discussion (Misc queries) 2 May 7th 05 03:11 PM
how does one convert text to a formula "average(A:A)" to =average( phshirk Excel Worksheet Functions 4 April 14th 05 01:20 AM
#N/A In Max min Average Formula P Beardshall Excel Worksheet Functions 2 November 3rd 04 02:49 PM


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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"