View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
ryguy7272 ryguy7272 is offline
external usenet poster
 
Posts: 2,836
Default Can I set a cell value to a filter selection in Excel?

Let's say 'Response' is in A1.
all the Yes and No responses are in A2:A30.
=SUBTOTAL(3,A2:A30)
Filter your list and see what happens.


Regards,
Ryan--



--
RyGuy


"TC in CT" wrote:

I have auto filter on for a set of row headers and would like to populate a
cell with the number of rows that match the filter selection. If my row
entries in this column are "Yes" and "No", for example, I'd like to show the
number of "Yes" entries in the column when I filter by "Yes" or "No" when
filtered by "No".

A pivot table is over kill for my solution.

Thanks in advance!!