J
jan
I am using an Average formula (array) on a summary
worksheet to return the average of a set a data from
another worksheet (detail) based on location.
The worksheet data (detail) is set up as follows; however
there are several locations in the entire worksheet. When
I use the subtotal function with an autofilter set my data
for the account shown below is correct. The Average
function under "Other Deliveries" does not include the
cells with no values.
Location Account Month/Year
Stat Routine Other
Del Del Del
Monticello ABC vendor Apr 04 6
Monticello ABC vendor Apr 04 7 7
Monticello ABC vendor Apr 04 7 6
Monticello DEF Vendor Apr 04 7 6
Monticello DEF Vendor Apr 04 1 1 1
Monticello Spice of Life Apr 04 3 5 2
Average 5.0 5.2 1.5
On the summary worksheet where I have used an array
formula to average, it does include the blank cells and
returns a different result. Here is the array formula
that is entered to return the detail info for "Other del"
for the location Monticello.
{=IF(ISERROR(AVERAGE(IF((Delivery!
$A$2:$A$35="Monticello"),Delivery!$G$2:$G$35))),"",AVERAGE
(IF((Delivery!$A$2:$A$35="Monticello"),Delivery!
$G$2:$G$35)))}
Delivery Scores
Locations Stat Routine Other
Bettendorf 6.5 5.5 6.5
Fort Wayne 6.5 6.0 6.5
Menomonie 7.0 7.0 7.0
Monticello 4.2 5.2 0.5
I need help to revise the formula to return the average
result as shown on the detail worksheet. Although the
first criteria of the formula exists (Location), I do not
want the formula to calculate blank cells. Can someone
help me.
TIA
worksheet to return the average of a set a data from
another worksheet (detail) based on location.
The worksheet data (detail) is set up as follows; however
there are several locations in the entire worksheet. When
I use the subtotal function with an autofilter set my data
for the account shown below is correct. The Average
function under "Other Deliveries" does not include the
cells with no values.
Location Account Month/Year
Stat Routine Other
Del Del Del
Monticello ABC vendor Apr 04 6
Monticello ABC vendor Apr 04 7 7
Monticello ABC vendor Apr 04 7 6
Monticello DEF Vendor Apr 04 7 6
Monticello DEF Vendor Apr 04 1 1 1
Monticello Spice of Life Apr 04 3 5 2
Average 5.0 5.2 1.5
On the summary worksheet where I have used an array
formula to average, it does include the blank cells and
returns a different result. Here is the array formula
that is entered to return the detail info for "Other del"
for the location Monticello.
{=IF(ISERROR(AVERAGE(IF((Delivery!
$A$2:$A$35="Monticello"),Delivery!$G$2:$G$35))),"",AVERAGE
(IF((Delivery!$A$2:$A$35="Monticello"),Delivery!
$G$2:$G$35)))}
Delivery Scores
Locations Stat Routine Other
Bettendorf 6.5 5.5 6.5
Fort Wayne 6.5 6.0 6.5
Menomonie 7.0 7.0 7.0
Monticello 4.2 5.2 0.5
I need help to revise the formula to return the average
result as shown on the detail worksheet. Although the
first criteria of the formula exists (Location), I do not
want the formula to calculate blank cells. Can someone
help me.
TIA