PC Review


Reply
Thread Tools Rate Thread

Count certain values in numeric array

 
 
avi
Guest
Posts: n/a
 
      23rd Mar 2008
Hello,

I have an array (Array1) of values derived from an Excel range

Is there some function for knowing the number of items smaller than a
certain value without looping (something like CountIf for a range)?

Thanks
avi
 
Reply With Quote
 
 
 
 
Jarek Kujawa
Guest
Posts: n/a
 
      23rd Mar 2008
for "3":

Application.WorksheetFunction.CountIf(Selection, "<" & 3)



On 23 Mar, 21:38, avi <avi...@bezeqint.net.il> wrote:
> Hello,
>
> I have an array (Array1) of values derived from an Excel range
>
> Is there some function for knowing the number of items smaller than a
> certain value without looping (something like CountIf for a range)?
>
> Thanks
> avi


 
Reply With Quote
 
Jarek Kujawa
Guest
Posts: n/a
 
      23rd Mar 2008
sorry but i can't think of any solution that does not loop through an
array

to me you HAVE to loop through an array


On 23 Mar, 21:38, avi <avi...@bezeqint.net.il> wrote:
> Hello,
>
> I have an array (Array1) of values derived from an Excel range
>
> Is there some function for knowing the number of items smaller than a
> certain value without looping (something like CountIf for a range)?
>
> Thanks
> avi


 
Reply With Quote
 
Alan Beban
Guest
Posts: n/a
 
      23rd Mar 2008
avi wrote:
> Hello,
>
> I have an array (Array1) of values derived from an Excel range
>
> Is there some function for knowing the number of items smaller than a
> certain value without looping (something like CountIf for a range)?
>
> Thanks
> avi


Not sure what you mean by "without looping"; but if the functions in the
freely downloadable file at http://home.pacbell.net/beban are available,
without having to code the looping (because it's built in to the
function), you could use

=ArrayCountIf(myArray, certainvalue, "<")

Alan Beban
 
Reply With Quote
 
avi
Guest
Posts: n/a
 
      24th Mar 2008
great utility!

Thanks
Avi
 
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
Count & Sum Consecutive (2x) appearance of Specific Numeric Values Sam via OfficeKB.com Microsoft Excel Worksheet Functions 2 5th Feb 2007 02:44 PM
count and arrange cell numeric values amrezzat Microsoft Excel Worksheet Functions 5 22nd Nov 2005 03:53 PM
count and arrange cells have numeric values amrezzat Microsoft Excel Programming 5 21st Nov 2005 09:58 PM
Count Intervals of 2 Numeric values in same Row and Return Count across Row Sam via OfficeKB.com Microsoft Excel Worksheet Functions 12 24th Sep 2005 10:58 PM
How to use an array or matrix to return text vs. numeric values =?Utf-8?B?SW5ncmlk?= Microsoft Excel Worksheet Functions 2 10th Apr 2005 12:51 AM


Features
 

Advertising
 

Newsgroups
 


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