PC Review


Reply
Thread Tools Rate Thread

Count Filtered Visible Items that Match Numeric Criteria between two ranges

 
 
Sam via OfficeKB.com
Guest
Posts: n/a
 
      20th Sep 2006
Hi All,

I'm using the Formula below to give me a static count of numeric values that
fall within a specified range; say 50-75 inclusive. These ranges are housed
in cell X$1. The Named Range "Data" is a dynamic 9 column range spanning many
rows. Named Range "Data" is defined as
=OFFSET(Sheet1!$H$15,0,0,COUNT(Sheet1!$H:$H),9)

Static Count:
=COUNTIF(Data,">="&LEFT(X$1,2))-COUNTIF(Data,">"&RIGHT(X$1,2))

Based on the above can anyone provide a Formula that provides a Dynamic Count
when "Data" is filtered.

Thanks
Sam

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...tions/200609/1

 
Reply With Quote
 
 
 
 
Domenic
Guest
Posts: n/a
 
      20th Sep 2006
Try...

=SUM(IF(SUBTOTAL(3,OFFSET(Data,ROW(Data)-MIN(ROW(Data)),0,1)),IF(Data>=LE
FT(X$1,2),IF(Data<=RIGHT(X$1,2),1))))

....confirmed with CONTROL+SHIFT+ENTER.

Hope this helps!

In article <66940ec24c9a0@uwe>, "Sam via OfficeKB.com" <u4102@uwe>
wrote:

> Hi All,
>
> I'm using the Formula below to give me a static count of numeric values that
> fall within a specified range; say 50-75 inclusive. These ranges are housed
> in cell X$1. The Named Range "Data" is a dynamic 9 column range spanning many
> rows. Named Range "Data" is defined as
> =OFFSET(Sheet1!$H$15,0,0,COUNT(Sheet1!$H:$H),9)
>
> Static Count:
> =COUNTIF(Data,">="&LEFT(X$1,2))-COUNTIF(Data,">"&RIGHT(X$1,2))
>
> Based on the above can anyone provide a Formula that provides a Dynamic Count
> when "Data" is filtered.
>
> Thanks
> Sam

 
Reply With Quote
 
Domenic
Guest
Posts: n/a
 
      20th Sep 2006
Actually, since Data contains numeric values, the values returned by
both the LEFT and RIGHT functions need to be coerced into numerical
values. Therefore...

LEFT(X$1,2)

should be

LEFT(X$1,2)+0

and

RIGHT(X$1,2)

should be

RIGHT(X$1,2)+0

Hope this helps!

In article <domenic22-(E-Mail Removed)>,
Domenic <(E-Mail Removed)> wrote:

> Try...
>
> =SUM(IF(SUBTOTAL(3,OFFSET(Data,ROW(Data)-MIN(ROW(Data)),0,1)),IF(Data>=LE
> FT(X$1,2),IF(Data<=RIGHT(X$1,2),1))))
>
> ...confirmed with CONTROL+SHIFT+ENTER.
>
> Hope this helps!
>
> In article <66940ec24c9a0@uwe>, "Sam via OfficeKB.com" <u4102@uwe>
> wrote:
>
> > Hi All,
> >
> > I'm using the Formula below to give me a static count of numeric values
> > that
> > fall within a specified range; say 50-75 inclusive. These ranges are housed
> > in cell X$1. The Named Range "Data" is a dynamic 9 column range spanning
> > many
> > rows. Named Range "Data" is defined as
> > =OFFSET(Sheet1!$H$15,0,0,COUNT(Sheet1!$H:$H),9)
> >
> > Static Count:
> > =COUNTIF(Data,">="&LEFT(X$1,2))-COUNTIF(Data,">"&RIGHT(X$1,2))
> >
> > Based on the above can anyone provide a Formula that provides a Dynamic
> > Count
> > when "Data" is filtered.
> >
> > Thanks
> > Sam

 
Reply With Quote
 
Sam via OfficeKB.com
Guest
Posts: n/a
 
      20th Sep 2006
Hi Domenic,

Thanks for reply. The Formula is not returning the desired result. It
returns zero.

Further help appreciated.

Cheers,
Sam



Domenic wrote:
>Try...


>=SUM(IF(SUBTOTAL(3,OFFSET(Data,ROW(Data)-MIN(ROW(Data)),0,1)),IF(Data>=LE
>FT(X$1,2),IF(Data<=RIGHT(X$1,2),1))))


>...confirmed with CONTROL+SHIFT+ENTER.


>Hope this helps!


--
Message posted via http://www.officekb.com

 
Reply With Quote
 
Sam via OfficeKB.com
Guest
Posts: n/a
 
      20th Sep 2006
Hi Domenic,

Sorry, didn't see your amendment before I posted. The Formula works fine with
this amendment.

Thanks again for your assistance.

Cheers,
Sam

Domenic wrote:
>Actually, since Data contains numeric values, the values returned by
>both the LEFT and RIGHT functions need to be coerced into numerical
>values. Therefore...


>LEFT(X$1,2)


>should be


>LEFT(X$1,2)+0


>and


>RIGHT(X$1,2)
>
>should be


>RIGHT(X$1,2)+0
>
>Hope this helps!


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...tions/200609/1

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Match Single Numeric Criteria and Return Multiple Numeric Labels Sam via OfficeKB.com Microsoft Excel Worksheet Functions 3 30th Dec 2005 08:01 PM
Match Single Numeric Criteria and Return Multiple Numeric Labels Sam via OfficeKB.com Microsoft Excel Worksheet Functions 0 29th Dec 2005 08:44 PM
Count rows that match criteria in 2 different column cell ranges =?Utf-8?B?Sm9Bbm4=?= Microsoft Excel New Users 2 9th Dec 2005 05:51 PM
SUBTOTAL Second Count / sub-count of Filtered Visible Cells QTE Microsoft Excel Misc 13 4th Aug 2004 04:47 PM
SUBTOTAL Second Count / sub-count of Filtered Visible Cells QTE Microsoft Excel Worksheet Functions 0 27th Jul 2004 08:47 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:14 AM.