A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

count similar text with using filters



 
 
Thread Tools Display Modes
  #1  
Old May 5th, 2010, 01:42 PM posted to microsoft.public.excel.worksheet.functions
mj
external usenet poster
 
Posts: 258
Default count similar text with using filters

I want to count the number of occourances of a "Y" in coulumn D .. so i used
a countif and it works great however when i filter another column it still
counts all the "Y".
  #2  
Old May 5th, 2010, 02:05 PM posted to microsoft.public.excel.worksheet.functions
eduardo
external usenet poster
 
Posts: 2,131
Default count similar text with using filters

Hi,
try

=SUMPRODUCT(SUBTOTAL(3,OFFSET(d2:d11,ROW(d2:d11)-MIN(ROW(d2:d11)),,1)),
--(d2:d11="Y"))

change range to fit your needs
"mj" wrote:

I want to count the number of occourances of a "Y" in coulumn D .. so i used
a countif and it works great however when i filter another column it still
counts all the "Y".

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


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


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.