Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 231
Default Autofilter COUNTA formula not taking into account hidden cells

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,


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Autofilter COUNTA formula not taking into account hidden cells

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
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
COUNTA ----- FORMULA WILL NOT COUNT NON BLANK CELLS mrp Excel Discussion (Misc queries) 2 July 25th 07 11:12 PM
Taking in account additional rows JB12 Excel Discussion (Misc queries) 3 December 27th 05 06:05 PM
How to calculate a person's age taking into account their birthda. CPD174 Excel Worksheet Functions 4 July 8th 05 09:36 AM
repeat formulae taking into account previous column's info? Debbie Excel Discussion (Misc queries) 1 March 25th 05 04:27 PM
Date difference taking into account weekends. annonymous Excel Worksheet Functions 3 March 14th 05 05:35 PM


All times are GMT +1. The time now is 07:16 PM.

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"