PC Review


Reply
Thread Tools Rate Thread

Can you use an INDEX array in a COUNTIF formula ?

 
 
exceluser
Guest
Posts: n/a
 
      23rd Jun 2010
Is it possible to use COUNTIF to count the number of values in an
INDEX array that are greater than 0 ?

A B
1 Fruit
2 Orange
3 Orange =COUNTIF(INDEX((INDEX(OFFSET($B3,-(ROW()-1),,ROW()-1,),)=
$B3)*ROW(OFFSET($B3,-(ROW()-1),,ROW()-1,)),),">0")



The formula ends up evaluating to:

=COUNTIF({0,2},">0")

.... where the result is #VALUE!.

The value that I'm looking for is "1" since there's only one number in
the array that meets the COUNTIF criteria.
 
Reply With Quote
 
 
 
 
exceluser
Guest
Posts: n/a
 
      24th Jun 2010
On Jun 23, 8:54*am, exceluser <ifmcqy7aias...@yahoo.com> wrote:
> Is it possible to use COUNTIF to count the number of values in an
> INDEX array that are greater than 0 ?
>
> * * * * A * * * * * * * B
> 1 * * * Fruit
> 2 * * * Orange
> 3 * * * Orange * * * * *=COUNTIF(INDEX((INDEX(OFFSET($B3,-(ROW()-1),,ROW()-1,),)=
> $B3)*ROW(OFFSET($B3,-(ROW()-1),,ROW()-1,)),),">0")
>
> The formula ends up evaluating to:
>
> * * * * =COUNTIF({0,2},">0")
>
> ... where the result is #VALUE!.
>
> The value that I'm looking for is "1" since there's only one number in
> the array that meets the COUNTIF criteria.


CORRECTION

Is it possible to use COUNTIF to count the number of values in an
INDEX array that are greater than 0 ?

A B
1 Fruit Qty.
2 Orange
3 Orange =COUNTIF(INDEX((INDEX(OFFSET($A3,-(ROW()-1),,ROW()-1,),)=
$A3)*ROW(OFFSET($A3,-(ROW()-1),,ROW()-1,)),),">0")

The formula ends up evaluating to:

=COUNTIF({0,2},">0")

.... where the result is #VALUE!.

The value that I'm looking for is "1" since there's only one number in
the array that meets the COUNTIF criteria.
 
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
Formula Countif Index Match =?Utf-8?B?Vmlja2k=?= Microsoft Excel Worksheet Functions 2 8th Oct 2007 03:55 PM
Countif array formula =?Utf-8?B?RGF2aWQ=?= Microsoft Excel Worksheet Functions 7 17th Oct 2006 04:29 PM
Help Please - CountIf and Array formula Prickle Microsoft Excel Programming 6 6th Mar 2006 01:06 PM
need help with Index, Match and Countif in the same complicated formula HGood Microsoft Excel Misc 0 3rd Feb 2005 05:34 PM
countif or sum array formula lindasf Microsoft Excel Misc 1 31st Mar 2004 06:25 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:37 AM.