PC Review


Reply
Thread Tools Rate Thread

Countif array

 
 
PD
Guest
Posts: n/a
 
      4th Aug 2008
I need a formula which calculates the number of occurences of a variable
apprearing in a column if the entry in another row is equal to N or n.

I have attempted to use the below but it shows a VALUE error message:

={countif(if(A1:A10="N",C1:C10),24)}

24 being the variable to be counted and C1:C10 is the range where the
variable is listed.
 
Reply With Quote
 
 
 
 
Rick Rothstein \(MVP - VB\)
Guest
Posts: n/a
 
      4th Aug 2008
Your description is a little unclear to me. Does this formula do what you
want?

=SUMPRODUCT((A1:A10="N")*(C1:C10=24))

Rick


"PD" <(E-Mail Removed)> wrote in message
news:ECD098AF-1406-4075-BA71-(E-Mail Removed)...
>I need a formula which calculates the number of occurences of a variable
> apprearing in a column if the entry in another row is equal to N or n.
>
> I have attempted to use the below but it shows a VALUE error message:
>
> ={countif(if(A1:A10="N",C1:C10),24)}
>
> 24 being the variable to be counted and C1:C10 is the range where the
> variable is listed.


 
Reply With Quote
 
PD
Guest
Posts: n/a
 
      4th Aug 2008
Hi Rick,

Unfortunately, the below isn't giving the correct answer.

To help understand the query, the file has four columns which has the name
of the staff, customer details, Y/N and reason code for analysis. We require
the count of the specified reason codes only if the other column has a
reading of N.




"Rick Rothstein (MVP - VB)" wrote:

> Your description is a little unclear to me. Does this formula do what you
> want?
>
> =SUMPRODUCT((A1:A10="N")*(C1:C10=24))
>
> Rick
>
>
> "PD" <(E-Mail Removed)> wrote in message
> news:ECD098AF-1406-4075-BA71-(E-Mail Removed)...
> >I need a formula which calculates the number of occurences of a variable
> > apprearing in a column if the entry in another row is equal to N or n.
> >
> > I have attempted to use the below but it shows a VALUE error message:
> >
> > ={countif(if(A1:A10="N",C1:C10),24)}
> >
> > 24 being the variable to be counted and C1:C10 is the range where the
> > variable is listed.

>
>

 
Reply With Quote
 
Rick Rothstein \(MVP - VB\)
Guest
Posts: n/a
 
      4th Aug 2008
With the possible exception of the wrong columns being specified (I used the
columns you showed in your posting), I do not see why the formula I posted
does not do what you want. Can you show us maybe 6 lines of data from your
worksheet and then answer you expect the formula to give for the data you
post?

Rick


"PD" <(E-Mail Removed)> wrote in message
news:C157C529-7CFC-45B0-BCDE-(E-Mail Removed)...
> Hi Rick,
>
> Unfortunately, the below isn't giving the correct answer.
>
> To help understand the query, the file has four columns which has the name
> of the staff, customer details, Y/N and reason code for analysis. We
> require
> the count of the specified reason codes only if the other column has a
> reading of N.
>
>
>
>
> "Rick Rothstein (MVP - VB)" wrote:
>
>> Your description is a little unclear to me. Does this formula do what you
>> want?
>>
>> =SUMPRODUCT((A1:A10="N")*(C1:C10=24))
>>
>> Rick
>>
>>
>> "PD" <(E-Mail Removed)> wrote in message
>> news:ECD098AF-1406-4075-BA71-(E-Mail Removed)...
>> >I need a formula which calculates the number of occurences of a variable
>> > apprearing in a column if the entry in another row is equal to N or n.
>> >
>> > I have attempted to use the below but it shows a VALUE error message:
>> >
>> > ={countif(if(A1:A10="N",C1:C10),24)}
>> >
>> > 24 being the variable to be counted and C1:C10 is the range where the
>> > variable is listed.

>>
>>


 
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
ARRAY with countif MCC Microsoft Excel Misc 6 22nd Jul 2009 06:13 PM
Using Countif on Array ExcelMonkey Microsoft Excel Programming 2 4th Dec 2007 09:30 PM
countif within array =?Utf-8?B?R3JhbnQ=?= Microsoft Excel Worksheet Functions 3 26th Oct 2006 07:58 AM
How do I use countif an array for >=45<=50 =?Utf-8?B?2KfZhNio2YrYp9mG2KfYqg==?= Microsoft Excel Programming 9 4th Feb 2006 08:23 PM
Countif's or Array Auser Microsoft Excel Worksheet Functions 1 11th May 2004 12:50 AM


Features
 

Advertising
 

Newsgroups
 


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