If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > Data Filter - Quantity of Records Shown?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-09-04, 12:25
aaroncoppersmit aaroncoppersmit is offline
Registered User
 
Join Date: Feb 2004
Posts: 13
Data Filter - Quantity of Records Shown?

Does anyone know how to get excel to return a value for the number of records displayed in a Data Form with various Data Filters Active?

I do a bi-monthly report on the quantity of items requiring input (blanks) in a Data Form database that my company uses.

I run a filter to show blanks in the given column with "auto filter" on, but then I have to manually scroll and count the number of rows showing "blanks" to get the quantities for my report.

There must be a way to get excel to automatically tell me how many rows are showing in a filtered data form.

Any ideas?

Thanks,

Aaron
Reply With Quote
  #2 (permalink)  
Old 06-10-04, 05:36
DavidCoutts DavidCoutts is offline
Registered User
 
Join Date: Jan 2004
Location: Aberdeen, Scotland
Posts: 1,067
Hi Aaron

a couple of pointer for you.

Excel does actually count the records automatically and will display this in the status bar, but this is really tempromental.

If your report is always in the same format you could use a function to do this.

Something like

=SUMPRODUCT(--($A$2:$A$27 = "B")*($C$2:$C$27 = ""))

Looking at what you have in your filters.

or a dirty way of doing it is to apply your filters, in an empty column put in the value 1 and put in the function

=SUBTOTAL(9,J2:J27)

then delete the values in this column

I used 27 rows in the dummy data i set up

Hope this Helps

David
Reply With Quote
  #3 (permalink)  
Old 06-10-04, 11:17
aaroncoppersmit aaroncoppersmit is offline
Registered User
 
Join Date: Feb 2004
Posts: 13
Problem Solved

David,

I couldn't figure out your streamlined version, so I used the "dirty" solution, and it worked perfectly. I must say, if that was "dirty" you should see the rest of my spreadsheet functions - they're filthy!

Thanks for your help!

Aaron
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On