Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

excel 2003 visual basic intermediate course - using count function filtered

Forum home » Delegate support and help forum » Microsoft Excel Training and help » excel 2003 visual basic intermediate course - Using count function with filtered tables

excel 2003 visual basic intermediate course - Using count function with filtered tables

ResolvedVersion Standard

Samina has attended:
Excel Advanced course

Using count function with filtered tables

I have a table which I use filters on. Is there a way to apply the count function so that it counts the filtered results?

RE: Using count function with filtered tables

Hi Samina

Thank you for your question.

You should be able to use the COUNTIF function to do this, for example, say you have two products, A and B, and you have filtered the product column to show only product A.

In a cell underneath the filtered results, you can enter the COUNTIF function. In this example =COUNTIF(cell range,"A")
where cell range is the range of cells within the Product column which show the letter A. Any text that you are looking for (in this example, the letter A) needs to be entered inside double quotation marks in order that you get a result. If you are counting how many times a specific value occurs, then you don't require double quotations around the value.

You can use this function without filtering first as well.

I hope this helps.
Amanda

RE: Using count function with filtered tables

Thank you! For both speedy replies. I shall give it a go today. :)

Excel tip:

Repeating headings on spreadsheets that print on more than one page

By default when you print a spreadsheet out and it prints on more than one page, the headings at the top and the side of the spreadsheet don't appear on all the pages following page 1.

To get Excel to repeat headings on all pages when printing, go to File - Page Setup - Sheet, then select the rows to repeat at the top of pages, and the columns to repeat at the side of pages by clicking on the red arrows at the right side of the two boxes under the 'Print titles' area. Then click OK.

If you view your spreadsheet in Print Preview, you should see the headings being repeated on each page.

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.22 secs.