PC Review


Reply
Thread Tools Rate Thread

Autofilter COUNTA formula not taking into account hidden cells

 
 
=?Utf-8?B?U2FyYWg=?=
Guest
Posts: n/a
 
      17th Aug 2007
I'm working on a table with Autofilter, quite a simple one, about 10 columns,
32 lines.
one of the columns is called "destination country" and included several
countries for eg. France, US, Germany etc...
At the bottom of the table I have set up a COUNTA formula =COUNTA(F8:F40)
which works fine when the entire table is displayed.
When I select only one country to come up on the autofilter table eg. USA,
the
COUNTA formula will still show the same result as it keeps on included the
hidden and not hidden cells.
Can you please help me finding out a solution so that the COUNTA formula
only shows the number of items that are NOT HIDDEN in the autofilter table
and
does not take into account HIDDEN lines?

Thank you very much,


 
Reply With Quote
 
 
 
 
Dave Peterson
Guest
Posts: n/a
 
      17th Aug 2007
Look at =subtotal() in excel's help.

=subtotal(3,f8:f40)
or with xl2003+
=subtotal(103,f8:f40)

The second formula will ignore rows that were hidden manually.

Sarah wrote:
>
> I'm working on a table with Autofilter, quite a simple one, about 10 columns,
> 32 lines.
> one of the columns is called "destination country" and included several
> countries for eg. France, US, Germany etc...
> At the bottom of the table I have set up a COUNTA formula =COUNTA(F8:F40)
> which works fine when the entire table is displayed.
> When I select only one country to come up on the autofilter table eg. USA,
> the
> COUNTA formula will still show the same result as it keeps on included the
> hidden and not hidden cells.
> Can you please help me finding out a solution so that the COUNTA formula
> only shows the number of items that are NOT HIDDEN in the autofilter table
> and
> does not take into account HIDDEN lines?
>
> Thank you very much,


--

Dave Peterson
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Clear contents of cells hidden by autofilter Philip Reece-Heal Microsoft Excel Programming 3 9th Apr 2009 04:10 PM
Pivot Table Counta formula and sum for unhidden cells only =?Utf-8?B?U2FyYWg=?= Microsoft Excel Misc 0 17th Aug 2007 09:38 AM
COUNTA ----- FORMULA WILL NOT COUNT NON BLANK CELLS =?Utf-8?B?bXJw?= Microsoft Excel Misc 2 25th Jul 2007 11:12 PM
RE: Determine a new cells ending value formula - CountA(), Index() ?? ddionne Microsoft Excel Worksheet Functions 2 15th Jul 2004 12:14 AM
Re: COUNTA excluding cells with a formula Don Guillett Microsoft Excel Worksheet Functions 1 1st Aug 2003 12:42 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:16 AM.