Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / August 2006

Tip: Looking for answers? Try searching our database.

How do I reference an Excel filtered list in a function?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
gordo - 17 Aug 2006 00:25 GMT
I'd like to use a COUNTIF function with criteria being all visible rows set
in the column filter. Thanks-
Domenic - 17 Aug 2006 00:56 GMT
Assuming that you'd like to count the number of cells in Column B that
meet the criteria, in a filtered list, try...

=SUMPRODUCT(SUBTOTAL(3,OFFSET(B2:B100,ROW(B2:B100)-ROW(B2),0,1)),--(B2:B1
00="Criteria"))

If the criteria is a numerical value, remove the quotes.

Hope this helps!

> I'd like to use a COUNTIF function with criteria being all visible rows set
> in the column filter. Thanks-
gordo - 17 Aug 2006 20:35 GMT
So, my previous reply mixed in from a different question... der. But your
reply did help me count ocurrences on my filter.

Thanks!

> Assuming that you'd like to count the number of cells in Column B that
> meet the criteria, in a filtered list, try...
[quoted text clipped - 8 lines]
> > I'd like to use a COUNTIF function with criteria being all visible rows set
> > in the column filter. Thanks-
gordo - 17 Aug 2006 20:36 GMT
Thanks Domenic,

I got this approach to work, but it wasn't easy :)
Your Excel sills are quite a bit beyond mine.

I ended up using the SUBTOTAL function to determine the number of results
returned after applying my autofilter.

Thanks again for your reply. You've help me understand SUMPRODUCT better.

> Assuming that you'd like to count the number of cells in Column B that
> meet the criteria, in a filtered list, try...
[quoted text clipped - 8 lines]
> > I'd like to use a COUNTIF function with criteria being all visible rows set
> > in the column filter. Thanks-
Arvi Laanemets - 17 Aug 2006 07:13 GMT
Hi

SUBTOTAL is the function, which uses data filtered by autofilter as source.
The 1st parameter determines, which of 11 various functions is imited - look
for SUBTOTAL worksheet function in MS Excel Help.

Signature

Arvi Laanemets
( My real mail address: arvi.laanemets<at>tarkon.ee )

> I'd like to use a COUNTIF function with criteria being all visible rows
> set
> in the column filter. Thanks-
gordo - 17 Aug 2006 20:35 GMT
Thanks Arvi!
SUBTOTAL(3,rage) solved my problem.

> Hi
>
[quoted text clipped - 5 lines]
> > set
> > in the column filter. Thanks-
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.