Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Counting records in a filtered list

How can I count the number of records in a filtered list. The list gives me
the record number on the left so how can I count (other than manually) the
number of records that exist in that list?


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Counting records in a filtered list

Hi
=SUBTOTAL(3,A1:A100)

--
Regards
Frank Kabel
Frankfurt, Germany


plato wrote:
How can I count the number of records in a filtered list. The list
gives me the record number on the left so how can I count (other than
manually) the number of records that exist in that list?


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,979
Default Counting records in a filtered list

To programmatically count the rows, you can use the code shown he

http://www.contextures.com/xlautofilter03.html#Count

'====================
Sub CountVisRows()
'by Tom Ogilvy
Dim rng As Range
Set rng = ActiveSheet.AutoFilter.Range

MsgBox rng.Columns(1). _
SpecialCells(xlVisible).Count - 1 _
& " of " & rng _
.Rows.Count - 1 & " Records"

End Sub
'===============================

plato wrote:
Thanks Frank,

Not sure how to use this. Do I put this formula in the cell below the last
record (if there are say 1000 records)?

thanks

Paul

"Frank Kabel" wrote in message
...

Hi
=SUBTOTAL(3,A1:A100)

--
Regards
Frank Kabel
Frankfurt, Germany


plato wrote:

How can I count the number of records in a filtered list. The list
gives me the record number on the left so how can I count (other than
manually) the number of records that exist in that list?






--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html

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
select random sample of records in a filtered list David3553 Excel Discussion (Misc queries) 2 November 25th 09 11:37 PM
Counting the number of unique values in a filtered list Bannor Excel Discussion (Misc queries) 5 August 3rd 09 05:06 PM
Counting unique text entries in a filtered list... SOS Excel Worksheet Functions 4 April 5th 06 05:31 PM
Counting a Filtered List kkrebs Excel Discussion (Misc queries) 6 September 22nd 05 02:57 PM
how do I see more than 1000 records filtered ml Excel Discussion (Misc queries) 1 April 13th 05 08:47 PM


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

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

About Us

"It's about Microsoft Excel"