ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   SUMPRODUCT to average (https://www.excelbanter.com/excel-worksheet-functions/169293-sumproduct-average.html)

AJPendragon

SUMPRODUCT to average
 
I have a SUMPRODUCT for numbered data, but also require it for % data. My
SUMPRODUCT is:

=SUMPRODUCT(--(Sheet2!B4:B573=A6),(Sheet2!C4:C573))

This provides a total % figure of 475%, but I want the average of the 5
figures selected (it could be as many as 1-5 figures) - is this possible with
the SUMPRODUCT formula.

Thanks for looking



Pete_UK

SUMPRODUCT to average
 
An average of 5 percentage values doesn't mean very much unless the
totals for those five values are the same size. You could divide your
formula by a count of those values that met the criteria in A6 (i.e.
by COUNTIF(Sheet2!B4:B573,A6) ), but this wouldn't mean very much.
Perhaps you could explain more about what you want to achieve ...

Pete

On Dec 11, 6:58 pm, AJPendragon
wrote:
I have a SUMPRODUCT for numbered data, but also require it for % data. My
SUMPRODUCT is:

=SUMPRODUCT(--(Sheet2!B4:B573=A6),(Sheet2!C4:C573))

This provides a total % figure of 475%, but I want the average of the 5
figures selected (it could be as many as 1-5 figures) - is this possible with
the SUMPRODUCT formula.

Thanks for looking



T. Valko

SUMPRODUCT to average
 
Try this array formula** :

=AVERAGE(IF(Sheet2!B4:B573=A6,Sheet2!C4:C573))

Format as %

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)

--
Biff
Microsoft Excel MVP


"AJPendragon" wrote in message
...
I have a SUMPRODUCT for numbered data, but also require it for % data. My
SUMPRODUCT is:

=SUMPRODUCT(--(Sheet2!B4:B573=A6),(Sheet2!C4:C573))

This provides a total % figure of 475%, but I want the average of the 5
figures selected (it could be as many as 1-5 figures) - is this possible
with
the SUMPRODUCT formula.

Thanks for looking






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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com