ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   AutoSum on a filtered sheet (https://www.excelbanter.com/excel-discussion-misc-queries/140115-autosum-filtered-sheet.html)

T. Valko

AutoSum on a filtered sheet
 
Something I just noticed....

Using Excel 2002

When an autofilter is applied and rows are filtered and you then use
AutoSum, Excel uses the SUBTOTAL function instead of SUM *even* if the
AutoSummed range is outside of the filtered range.

Try this out:

Put some random data in A1:A10

Apply the autofilter and filter the range on something.

Enter some random numbers in J15:J20.

Select J15:J21 then click on AutoSum.

Biff



Teethless mama

AutoSum on a filtered sheet
 
It also does the same thing on XL2007. It uses the SUBTOTAL function instead
of SUM.


"T. Valko" wrote:

Something I just noticed....

Using Excel 2002

When an autofilter is applied and rows are filtered and you then use
AutoSum, Excel uses the SUBTOTAL function instead of SUM *even* if the
AutoSummed range is outside of the filtered range.

Try this out:

Put some random data in A1:A10

Apply the autofilter and filter the range on something.

Enter some random numbers in J15:J20.

Select J15:J21 then click on AutoSum.

Biff




Dave Peterson

AutoSum on a filtered sheet
 
I'm using xl2003.

After I apply the filter arrows and filter the data,
then select J21 and click on the dropdown arrow and choose Sum, it uses
=subtotal().

But if I go through the "more functions" and choose sum, it uses =sum().

In xl2003, if I use data|list on the A1:A10 and filter it, then the autosum
button uses =sum().



"T. Valko" wrote:

Something I just noticed....

Using Excel 2002

When an autofilter is applied and rows are filtered and you then use
AutoSum, Excel uses the SUBTOTAL function instead of SUM *even* if the
AutoSummed range is outside of the filtered range.

Try this out:

Put some random data in A1:A10

Apply the autofilter and filter the range on something.

Enter some random numbers in J15:J20.

Select J15:J21 then click on AutoSum.

Biff


--

Dave Peterson


All times are GMT +1. The time now is 11:51 PM.

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