Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 231
Default Pivot Table COUNTA SUM of Unhidden cells only

I'm working on a pivot table, 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 pivot 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 pivot table and
does not take into account HIDDEN lines?

Thank you very much,
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 634
Default Pivot Table COUNTA SUM of Unhidden cells only

Are you sure it is a Pivot table, or if it is, are you using Autofilter on
the results?

If you restrict your data to USA using pivot table functionality then the
data meeting the criteria is the only data on the sheet, it is not "hidden".

If you are indeed using Autofilter, then you can use the SUBTOTAL function
to do what you require.

--
Regards
Ken....................... Microsoft MVP - Excel
Sys Spec - Win XP Pro / XL 97/00/02/03

------------------------------*------------------------------*----------------
It's easier to beg forgiveness than ask permission :-)
------------------------------*------------------------------*----------------



"Sarah" wrote in message
...
I'm working on a pivot table, 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 pivot 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 pivot table and
does not take into account HIDDEN lines?

Thank you very much,




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
Pivot Table Counta formula and sum for unhidden cells only Sarah Excel Discussion (Misc queries) 0 August 17th 07 09:38 AM
COUNTIF and AVERAGE only cells in unhidden rows dford Excel Discussion (Misc queries) 7 February 9th 07 07:40 PM
the countA function is counting everything even empty cells ToniNolen Excel Worksheet Functions 2 September 27th 06 07:42 PM
Calculations on Only Unhidden Data Cells dcotejr Excel Discussion (Misc queries) 1 October 3rd 05 05:35 PM
COUNTA Function not working =COUNTA(C3:C69,"NH") MikeinNH Excel Worksheet Functions 2 November 8th 04 01:19 AM


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

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

About Us

"It's about Microsoft Excel"