T
Tyro
In Excel 2007, I have discovered a SUBTOTAL function anomaly when filtering
records. I have headings in row 2 and data in rows 3 through 27 with costs
in dollars in column K. In K2 I enter the formula =SUBTOTAL(1,G3:G27) which
produces the answer $15.76. There are records for March and May in the
data. When I filter for March, the SUBTOTAL function in K2 produces the
answer $15.82 which is the average of the filtered records. After filtering,
I add another identical formula in K3: =SUBTOTAL(1,G3:G27). This formula
also produces the answer $15.82. I remove the filter. The formulas in K2 and
K3 now show $15.76. Now I filter on column E, Center, for unique records
and 6 unique records appear. The formula in K2 still shows $15.76 as does
the formula in K3. I select K3 and press F2 then enter. The formula in K3
now shows $16.22, the average of the 6 filtered records but the identical
formula in K2 shows the average of all 25 records, $15.76. When filtering on
dates, both formulas, one entered before filtering and one after filtering,
show the same result, but when filtering on unique values they show
different results. This appears to happen only when filtering for unique
records. I have uploaded the workbook to savefile.com in Excel 97-2003
format. The file is at: http://www.savefile.com/files/1356754 Any
ideas?
Tyro
records. I have headings in row 2 and data in rows 3 through 27 with costs
in dollars in column K. In K2 I enter the formula =SUBTOTAL(1,G3:G27) which
produces the answer $15.76. There are records for March and May in the
data. When I filter for March, the SUBTOTAL function in K2 produces the
answer $15.82 which is the average of the filtered records. After filtering,
I add another identical formula in K3: =SUBTOTAL(1,G3:G27). This formula
also produces the answer $15.82. I remove the filter. The formulas in K2 and
K3 now show $15.76. Now I filter on column E, Center, for unique records
and 6 unique records appear. The formula in K2 still shows $15.76 as does
the formula in K3. I select K3 and press F2 then enter. The formula in K3
now shows $16.22, the average of the 6 filtered records but the identical
formula in K2 shows the average of all 25 records, $15.76. When filtering on
dates, both formulas, one entered before filtering and one after filtering,
show the same result, but when filtering on unique values they show
different results. This appears to happen only when filtering for unique
records. I have uploaded the workbook to savefile.com in Excel 97-2003
format. The file is at: http://www.savefile.com/files/1356754 Any
ideas?
Tyro