Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 119
Default Average for different ranges

I am trying to figure out how to sum the average on 2 separate ranges based
on the user selection of the month. This is the way the data is setup. The
first row is the column headers and I have the row numbers going down.
A B C
1 Jan05 Paid 5
2 Feb05 Paid 8
3 Mar05 Paid 4
4 Jan05 Not Paid 6
5 Feb05 Not Paid 3
6 Mar05 Not Paid 7

I need to know the sum of the averages of the paid and not paid when the
user selects the month. So, if the user selects Feb05, need to know the sum
average of paid and not paid. This is the beginning of the formula, but need
help completing it:
=Sum(Average(index C1:C6,match(1,...not sure what to do from here
Thanks in advance.

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,081
Default Average for different ranges

Try:
=sumproduct(--(A1:A6=month),--(b1:b6="paid"),c1:c6)/sumproduct(--(A1:A6=month),--(b1:b6="paid"))

where "month" is a reference to the cell with the users' choice of month


"William" wrote:

I am trying to figure out how to sum the average on 2 separate ranges based
on the user selection of the month. This is the way the data is setup. The
first row is the column headers and I have the row numbers going down.
A B C
1 Jan05 Paid 5
2 Feb05 Paid 8
3 Mar05 Paid 4
4 Jan05 Not Paid 6
5 Feb05 Not Paid 3
6 Mar05 Not Paid 7

I need to know the sum of the averages of the paid and not paid when the
user selects the month. So, if the user selects Feb05, need to know the sum
average of paid and not paid. This is the beginning of the formula, but need
help completing it:
=Sum(Average(index C1:C6,match(1,...not sure what to do from here
Thanks in advance.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default Average for different ranges

H2 contains data e.g. Feb 05 (01/2/05 in ddmm/yy)

=AVERAGE(IF($A$2:$A$7=H2*($B$2:$B$7="Paid"),$C$2:$ C$7))+AVERAGE(IF($A$2:$A$7=H2*($B$2:$B$7="Unpaid") ,$C$2:$C$7))

Enter with Ctrl+Shift+Enter

"Duke Carey" wrote:

Try:
=sumproduct(--(A1:A6=month),--(b1:b6="paid"),c1:c6)/sumproduct(--(A1:A6=month),--(b1:b6="paid"))

where "month" is a reference to the cell with the users' choice of month


"William" wrote:

I am trying to figure out how to sum the average on 2 separate ranges based
on the user selection of the month. This is the way the data is setup. The
first row is the column headers and I have the row numbers going down.
A B C
1 Jan05 Paid 5
2 Feb05 Paid 8
3 Mar05 Paid 4
4 Jan05 Not Paid 6
5 Feb05 Not Paid 3
6 Mar05 Not Paid 7

I need to know the sum of the averages of the paid and not paid when the
user selects the month. So, if the user selects Feb05, need to know the sum
average of paid and not paid. This is the beginning of the formula, but need
help completing it:
=Sum(Average(index C1:C6,match(1,...not sure what to do from here
Thanks in advance.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 119
Default Average for different ranges

Thank you to all. This forum is great for getting the answers you need.

"Toppers" wrote:

H2 contains data e.g. Feb 05 (01/2/05 in ddmm/yy)

=AVERAGE(IF($A$2:$A$7=H2*($B$2:$B$7="Paid"),$C$2:$ C$7))+AVERAGE(IF($A$2:$A$7=H2*($B$2:$B$7="Unpaid") ,$C$2:$C$7))

Enter with Ctrl+Shift+Enter

"Duke Carey" wrote:

Try:
=sumproduct(--(A1:A6=month),--(b1:b6="paid"),c1:c6)/sumproduct(--(A1:A6=month),--(b1:b6="paid"))

where "month" is a reference to the cell with the users' choice of month


"William" wrote:

I am trying to figure out how to sum the average on 2 separate ranges based
on the user selection of the month. This is the way the data is setup. The
first row is the column headers and I have the row numbers going down.
A B C
1 Jan05 Paid 5
2 Feb05 Paid 8
3 Mar05 Paid 4
4 Jan05 Not Paid 6
5 Feb05 Not Paid 3
6 Mar05 Not Paid 7

I need to know the sum of the averages of the paid and not paid when the
user selects the month. So, if the user selects Feb05, need to know the sum
average of paid and not paid. This is the beginning of the formula, but need
help completing it:
=Sum(Average(index C1:C6,match(1,...not sure what to do from here
Thanks in advance.

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
average cells, show 0 if nothing to average Kycajun Excel Discussion (Misc queries) 8 June 21st 06 07:36 PM
Ignore errors when calculation average of multiple ranges joshkraemer Excel Worksheet Functions 4 February 13th 06 10:25 PM
Error Handling #N/A with AVERAGE Function - Average of values in Row Sam via OfficeKB.com Excel Worksheet Functions 13 July 31st 05 03:59 PM
Weighed Average of a weiged average when there are blanks krl - ExcelForums.com Excel Discussion (Misc queries) 1 July 6th 05 07:37 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


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