Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Counting fileterd cells with spesific value

I have å spreadsheet with the following count function:
=COUNTIF(V7:V197;"Closed")
=COUNTIF(V7:V196;"Open")
This gives me the sum of cells containing Open/Closed.

After applying a filter in B:7 I still get the same number of open/closed.
Is it possible to use countif, or similar, to count numers of open/closed
records in V:7-197 after filtering ?


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Counting fileterd cells with spesific value

Try

=SUMPRODUCT(SUBTOTAL(3,OFFSET(V7:V197,ROW(V7:V197)-ROW(V7),0,1)),--(V7:V197="Closed"))

Mike

"Sjur" wrote:

I have å spreadsheet with the following count function:
=COUNTIF(V7:V197;"Closed")
=COUNTIF(V7:V196;"Open")
This gives me the sum of cells containing Open/Closed.

After applying a filter in B:7 I still get the same number of open/closed.
Is it possible to use countif, or similar, to count numers of open/closed
records in V:7-197 after filtering ?


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Counting fileterd cells with spesific value

I'm using 2003 and when I try this formula, I get frmula failure on offset
and row(v/),0,1

But thanks for trying

"Mike H" wrote:

Try

=SUMPRODUCT(SUBTOTAL(3,OFFSET(V7:V197,ROW(V7:V197)-ROW(V7),0,1)),--(V7:V197="Closed"))

Mike

"Sjur" wrote:

I have å spreadsheet with the following count function:
=COUNTIF(V7:V197;"Closed")
=COUNTIF(V7:V196;"Open")
This gives me the sum of cells containing Open/Closed.

After applying a filter in B:7 I still get the same number of open/closed.
Is it possible to use countif, or similar, to count numers of open/closed
records in V:7-197 after filtering ?


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Counting fileterd cells with spesific value

Hi,

I can't replicate that error. Did you copy and paste the formula or did you
re-type it. Copy and paste is the best option.

Mike

"Sjur" wrote:

I'm using 2003 and when I try this formula, I get frmula failure on offset
and row(v/),0,1

But thanks for trying

"Mike H" wrote:

Try

=SUMPRODUCT(SUBTOTAL(3,OFFSET(V7:V197,ROW(V7:V197)-ROW(V7),0,1)),--(V7:V197="Closed"))

Mike

"Sjur" wrote:

I have å spreadsheet with the following count function:
=COUNTIF(V7:V197;"Closed")
=COUNTIF(V7:V196;"Open")
This gives me the sum of cells containing Open/Closed.

After applying a filter in B:7 I still get the same number of open/closed.
Is it possible to use countif, or similar, to count numers of open/closed
records in V:7-197 after filtering ?


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,344
Default Counting fileterd cells with spesific value

Hi,

If your having a problem entering the formula here is a simplier, but less
sophistocated approach:

Create a dummy colum say W. and enter the formula
=IF(SUBTOTAL(3,V7),V7,"")
Copy it down column W.
In two blank cells enter the formulas:
=COUNTIF(W7:W197,"closed")
=COUNTIF(W7:W197,"open")
--
Thanks,
Shane Devenshire


"Sjur" wrote:

I'm using 2003 and when I try this formula, I get frmula failure on offset
and row(v/),0,1

But thanks for trying

"Mike H" wrote:

Try

=SUMPRODUCT(SUBTOTAL(3,OFFSET(V7:V197,ROW(V7:V197)-ROW(V7),0,1)),--(V7:V197="Closed"))

Mike

"Sjur" wrote:

I have å spreadsheet with the following count function:
=COUNTIF(V7:V197;"Closed")
=COUNTIF(V7:V196;"Open")
This gives me the sum of cells containing Open/Closed.

After applying a filter in B:7 I still get the same number of open/closed.
Is it possible to use countif, or similar, to count numers of open/closed
records in V:7-197 after filtering ?




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
Openning spesific file in Excel Farhad Excel Discussion (Misc queries) 1 November 29th 07 02:11 PM
verify if spesific sheet exist Miri Excel Discussion (Misc queries) 3 February 26th 07 01:04 PM
Go to spesific letter in a list Petya Excel Discussion (Misc queries) 1 February 15th 07 02:58 PM
How to get exact hours above a spesific time? MrHaugen Excel Discussion (Misc queries) 2 July 11th 06 04:28 PM
How to find number of hours past a spesific time MrHaugen Excel Discussion (Misc queries) 1 July 10th 06 10:25 AM


All times are GMT +1. The time now is 11:46 PM.

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"