Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 19
Default Count only cells within Filtered Range

I'm using the 'Countif' function. But I want to limit my range to the cells
in a filtered range. Is this possible?

For example I want in my range, i.e. C13, C15, C18 instead of C13:C18?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default Count only cells within Filtered Range

See SUBTOTAL in Excel Help.
--
Gary''s Student - gsnu200829


"Corey" wrote:

I'm using the 'Countif' function. But I want to limit my range to the cells
in a filtered range. Is this possible?

For example I want in my range, i.e. C13, C15, C18 instead of C13:C18?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,346
Default Count only cells within Filtered Range

Hi,

If I read the post correctly you want to COUNTIF(C1:C25,"Red") but only for
visable cells, is that correct?

If so, I don't think you can do it with SUBTOTAL
--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"Gary''s Student" wrote:

See SUBTOTAL in Excel Help.
--
Gary''s Student - gsnu200829


"Corey" wrote:

I'm using the 'Countif' function. But I want to limit my range to the cells
in a filtered range. Is this possible?

For example I want in my range, i.e. C13, C15, C18 instead of C13:C18?

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 19
Default Count only cells within Filtered Range

Do you know what I can do?

"Shane Devenshire" wrote:

Hi,

If I read the post correctly you want to COUNTIF(C1:C25,"Red") but only for
visable cells, is that correct?

If so, I don't think you can do it with SUBTOTAL
--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"Gary''s Student" wrote:

See SUBTOTAL in Excel Help.
--
Gary''s Student - gsnu200829


"Corey" wrote:

I'm using the 'Countif' function. But I want to limit my range to the cells
in a filtered range. Is this possible?

For example I want in my range, i.e. C13, C15, C18 instead of C13:C18?

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Count only cells within Filtered Range

What is the condition that you want to count?

Assuming the full unfiltered range is C13:C18 and you want to do a
COUNTIF(C13:C18,"Red") when the range is filtered:

=SUMPRODUCT(SUBTOTAL(3,OFFSET(C13:C18,ROW(C13:C18)-ROW(C13),0,1)),--(C13:C18="Red"))

--
Biff
Microsoft Excel MVP


"Corey" wrote in message
...
Do you know what I can do?

"Shane Devenshire" wrote:

Hi,

If I read the post correctly you want to COUNTIF(C1:C25,"Red") but only
for
visable cells, is that correct?

If so, I don't think you can do it with SUBTOTAL
--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"Gary''s Student" wrote:

See SUBTOTAL in Excel Help.
--
Gary''s Student - gsnu200829


"Corey" wrote:

I'm using the 'Countif' function. But I want to limit my range to
the cells
in a filtered range. Is this possible?

For example I want in my range, i.e. C13, C15, C18 instead of
C13:C18?





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,240
Default Count only cells within Filtered Range

Corey wrote:
I'm using the 'Countif' function. But I want to limit my range to the cells
in a filtered range. Is this possible?

For example I want in my range, i.e. C13, C15, C18 instead of C13:C18?



See if this helps:

http://www.contextures.com/xlFunctions04.html#Filter

Otherwise, provide more details about your worksheet.
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
How do I 'count' the number of entrances in filtered cells? Mike Prentice Excel Worksheet Functions 2 September 19th 08 05:01 PM
count unique values in a filtered range ChrisR Excel Worksheet Functions 2 July 1st 08 07:02 PM
Count filtered cells meeting a condition Joe M. Excel Discussion (Misc queries) 0 July 26th 07 04:14 PM
Count Position of Filtered TEXT cells in a column Sam via OfficeKB.com Excel Worksheet Functions 8 May 18th 05 04:23 AM
How can I count cells that meet two criteria within a filtered co. lizzzy Excel Worksheet Functions 1 January 21st 05 06:03 PM


All times are GMT +1. The time now is 07:35 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"