Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 173
Default Summing a filtered list

Hi

I have a list of data. I'm filtering a one of the columns to find all
records with a value between x and y. This results in only the matching
records being displayed. Real simple.
Now, is there an instruction to analyse ONLY the records that are remaining?
Example: I'd like a cell at the end saying "# records matching criteria", and
another cell summing a particular column (again using ONLY the remaining
records).
At present, I'm doing this using macros to filter, cut, paste, etc. It's
well slow!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,268
Default Summing a filtered list

=SUBTOTAL(3,Full_Range)

(where full range is the unfiltered range)

will count visible text and numbers, replace 3 with 2 and it will count
visible numbers, replace it with 9 and it will sum visible numbers


So you could use

=SUBTOTAL(3,Full_Range)&" records matching criteria"


and

=SUBTOTAL(9,Full_Range)



--


Regards,


Peo Sjoblom



"Neil" wrote in message
...
Hi

I have a list of data. I'm filtering a one of the columns to find all
records with a value between x and y. This results in only the matching
records being displayed. Real simple.
Now, is there an instruction to analyse ONLY the records that are
remaining?
Example: I'd like a cell at the end saying "# records matching criteria",
and
another cell summing a particular column (again using ONLY the remaining
records).
At present, I'm doing this using macros to filter, cut, paste, etc. It's
well slow!



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 173
Default Summing a filtered list

Hi Peo

This has baffled me for weeks. You've cracked it in two minutes. Nice one!

Many thanks

Neil


"Peo Sjoblom" wrote:

=SUBTOTAL(3,Full_Range)

(where full range is the unfiltered range)

will count visible text and numbers, replace 3 with 2 and it will count
visible numbers, replace it with 9 and it will sum visible numbers


So you could use

=SUBTOTAL(3,Full_Range)&" records matching criteria"


and

=SUBTOTAL(9,Full_Range)



--


Regards,


Peo Sjoblom



"Neil" wrote in message
...
Hi

I have a list of data. I'm filtering a one of the columns to find all
records with a value between x and y. This results in only the matching
records being displayed. Real simple.
Now, is there an instruction to analyse ONLY the records that are
remaining?
Example: I'd like a cell at the end saying "# records matching criteria",
and
another cell summing a particular column (again using ONLY the remaining
records).
At present, I'm doing this using macros to filter, cut, paste, etc. It's
well slow!




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,268
Default Summing a filtered list

Thanks for the feedback


--


Regards,


Peo Sjoblom




"Neil" wrote in message
...
Hi Peo

This has baffled me for weeks. You've cracked it in two minutes. Nice one!

Many thanks

Neil


"Peo Sjoblom" wrote:

=SUBTOTAL(3,Full_Range)

(where full range is the unfiltered range)

will count visible text and numbers, replace 3 with 2 and it will count
visible numbers, replace it with 9 and it will sum visible numbers


So you could use

=SUBTOTAL(3,Full_Range)&" records matching criteria"


and

=SUBTOTAL(9,Full_Range)



--


Regards,


Peo Sjoblom



"Neil" wrote in message
...
Hi

I have a list of data. I'm filtering a one of the columns to find all
records with a value between x and y. This results in only the matching
records being displayed. Real simple.
Now, is there an instruction to analyse ONLY the records that are
remaining?
Example: I'd like a cell at the end saying "# records matching
criteria",
and
another cell summing a particular column (again using ONLY the
remaining
records).
At present, I'm doing this using macros to filter, cut, paste, etc.
It's
well slow!






  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default Summing a filtered list

If you have defined the 'list' then Excel provides inbuilt functionality to
aggregate the data in the list. On the List toolbar, there is a "toggle
total row" that can be turned on. At the bottom of the list, then you can
add Sum, Count, Average, etc. from a drop down. This total row is
automatically updated for the filter everytime you change the filter.

"Peo Sjoblom" wrote:

Thanks for the feedback


--


Regards,


Peo Sjoblom




"Neil" wrote in message
...
Hi Peo

This has baffled me for weeks. You've cracked it in two minutes. Nice one!

Many thanks

Neil


"Peo Sjoblom" wrote:

=SUBTOTAL(3,Full_Range)

(where full range is the unfiltered range)

will count visible text and numbers, replace 3 with 2 and it will count
visible numbers, replace it with 9 and it will sum visible numbers


So you could use

=SUBTOTAL(3,Full_Range)&" records matching criteria"


and

=SUBTOTAL(9,Full_Range)



--


Regards,


Peo Sjoblom



"Neil" wrote in message
...
Hi

I have a list of data. I'm filtering a one of the columns to find all
records with a value between x and y. This results in only the matching
records being displayed. Real simple.
Now, is there an instruction to analyse ONLY the records that are
remaining?
Example: I'd like a cell at the end saying "# records matching
criteria",
and
another cell summing a particular column (again using ONLY the
remaining
records).
At present, I'm doing this using macros to filter, cut, paste, etc.
It's
well slow!






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
Getting data from a filtered list Gaetan Excel Discussion (Misc queries) 2 August 17th 07 02:02 PM
Filtered Validation List RD Wirr Excel Worksheet Functions 4 February 21st 07 02:56 PM
Totalling up a Filtered List B Baggins Excel Worksheet Functions 2 January 18th 07 01:50 PM
summing values appearing in col B when col A has been filtered choc_penguin Excel Worksheet Functions 3 February 3rd 06 11:18 AM
Using TRIMEAN on a filtered list claytorm Excel Discussion (Misc queries) 3 August 25th 05 07:15 AM


All times are GMT +1. The time now is 04:31 AM.

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

About Us

"It's about Microsoft Excel"