Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 12
Default total on filtered data?

I have what would appear to be a simple issue totaling filtered data as below

Dept count
NESAS 1
NESAS 1
blabla 1
3

Rate 22
Total 66
How can I get the above to work when I filter the data? For instance if I
filter by the code NESAS the sum should equal 2 NOT 3 and this would then
give total of 44




  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default total on filtered data?

Instead of using SUM(range) use SUBTOTAL(9,range) - this will show the
sum of the filtered values and will adjust when you change the filter.

If you have a long list, you might like to put the totals on the top
row (insert a new row 1 and cut/paste the total row to the new row 1).
If you also use Window | Freeze panes then you will always be able to
see your totals after you apply a filter.

Hope this helps.

Pete

martyn wrote:
I have what would appear to be a simple issue totaling filtered data as below

Dept count
NESAS 1
NESAS 1
blabla 1
3

Rate 22
Total 66
How can I get the above to work when I filter the data? For instance if I
filter by the code NESAS the sum should equal 2 NOT 3 and this would then
give total of 44


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 12
Default total on filtered data?

Thanks, I had found subtotal just after a posted the question and using
subtotal(2, range).

not sure what putting different numbers in does but it works

"Pete_UK" wrote:

Instead of using SUM(range) use SUBTOTAL(9,range) - this will show the
sum of the filtered values and will adjust when you change the filter.

If you have a long list, you might like to put the totals on the top
row (insert a new row 1 and cut/paste the total row to the new row 1).
If you also use Window | Freeze panes then you will always be able to
see your totals after you apply a filter.

Hope this helps.

Pete

martyn wrote:
I have what would appear to be a simple issue totaling filtered data as below

Dept count
NESAS 1
NESAS 1
blabla 1
3

Rate 22
Total 66
How can I get the above to work when I filter the data? For instance if I
filter by the code NESAS the sum should equal 2 NOT 3 and this would then
give total of 44



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default total on filtered data?

Hi Martyn,

"2" is for COUNT, "9" is for SUM. Excel Help for SUBTOTAL worksheet
function will show you the other values you can use.

Hope this helps.

Pete

martyn wrote:
Thanks, I had found subtotal just after a posted the question and using
subtotal(2, range).

not sure what putting different numbers in does but it works

"Pete_UK" wrote:

Instead of using SUM(range) use SUBTOTAL(9,range) - this will show the
sum of the filtered values and will adjust when you change the filter.

If you have a long list, you might like to put the totals on the top
row (insert a new row 1 and cut/paste the total row to the new row 1).
If you also use Window | Freeze panes then you will always be able to
see your totals after you apply a filter.

Hope this helps.

Pete

martyn wrote:
I have what would appear to be a simple issue totaling filtered data as below

Dept count
NESAS 1
NESAS 1
blabla 1
3

Rate 22
Total 66
How can I get the above to work when I filter the data? For instance if I
filter by the code NESAS the sum should equal 2 NOT 3 and this would then
give total of 44




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
Macro question Chris Excel Worksheet Functions 12 July 7th 06 01:23 AM
count specific value with filtered data Shawn13 Excel Worksheet Functions 1 June 29th 06 12:27 AM
From several workbooks onto one excel worksheet steve Excel Discussion (Misc queries) 6 December 1st 05 09:03 AM
Charting Filtered Data BCullenward Charts and Charting in Excel 1 October 27th 05 11:19 AM
Help PLEASE! Not sure what answer is: Match? Index? Other? baz Excel Worksheet Functions 7 September 3rd 05 03:47 PM


All times are GMT +1. The time now is 08:42 AM.

Powered by vBulletin® Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.
Copyright 2004-2023 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"