View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ashish Mathur[_2_] Ashish Mathur[_2_] is offline
external usenet poster
 
Posts: 1,766
Default Ignore Hidden Rows and Count of distinct values

Hi,

Try this. Assumed that data is in L3:21

=COUNT(1/FREQUENCY(IF(SUBTOTAL(103,OFFSET(L3,ROW(L3:L21)-ROW(L3),)),MATCH(L3:L21,L3:L21,0)),ROW(L3:L21)-ROW(L3)))

--
Regards,

Ashish Mathur
Microsoft Excel MVP

"Anuma (GGK Tech)" wrote in message
...
Hi,

I need to display the Count of distinct values and also ignore hidden rows
in the count.
Please help me to fix this issue.