PC Review


Reply
Thread Tools Rate Thread

COUNTIF function help

 
 
Elemental
Guest
Posts: n/a
 
      10th Sep 2005
I have used the COUNTIF function before and it works great when doing an in
order cell count (ex. A1:A20). But now I am needing the COUNTIF function
to count certain cell blocks (ex. A1:A3 then A5:A8, etc). How would I go
about doing the formula for this?

My current forumal looks like this and it tells me too many arguments are
entered for this function:

=COUNTIF(D1315,D2123,"=0")

Any help? TIA!


 
Reply With Quote
 
 
 
 
KL
Guest
Posts: n/a
 
      10th Sep 2005
Hi Elemental,

You can't use COUNTIF with multiple ranges (it only allows two arguments),
so you'll need to do it like this:

=COUNTIF(D1315,"=0")+COUNTIF(D2123,"=0")

or a much less efficient:

=SUMPRODUCT(COUNTIF(INDIRECT({"D1315","D2123"}),"=0"))

Regards,
KL


"Elemental" <elemental~NOSPAM~@mayhemkrew.com> wrote in message
news:wNidnZzd1-pb_L7eRVn-(E-Mail Removed)...
>I have used the COUNTIF function before and it works great when doing an in
>order cell count (ex. A1:A20). But now I am needing the COUNTIF function
>to count certain cell blocks (ex. A1:A3 then A5:A8, etc). How would I
>go about doing the formula for this?
>
> My current forumal looks like this and it tells me too many arguments are
> entered for this function:
>
> =COUNTIF(D1315,D2123,"=0")
>
> Any help? TIA!
>



 
Reply With Quote
 
Elemental
Guest
Posts: n/a
 
      11th Sep 2005
Thanks for the help! I used you much less efficient method because it was
easier for me to compile all the ranges needed, which were quite a lot! So
again, thanks!


"KL" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> Hi Elemental,
>
> You can't use COUNTIF with multiple ranges (it only allows two arguments),
> so you'll need to do it like this:
>
> =COUNTIF(D1315,"=0")+COUNTIF(D2123,"=0")
>
> or a much less efficient:
>
> =SUMPRODUCT(COUNTIF(INDIRECT({"D1315","D2123"}),"=0"))
>
> Regards,
> KL
>
>
> "Elemental" <elemental~NOSPAM~@mayhemkrew.com> wrote in message
> news:wNidnZzd1-pb_L7eRVn-(E-Mail Removed)...
>>I have used the COUNTIF function before and it works great when doing an
>>in order cell count (ex. A1:A20). But now I am needing the COUNTIF
>>function to count certain cell blocks (ex. A1:A3 then A5:A8, etc). How
>>would I go about doing the formula for this?
>>
>> My current forumal looks like this and it tells me too many arguments are
>> entered for this function:
>>
>> =COUNTIF(D1315,D2123,"=0")
>>
>> Any help? TIA!
>>

>
>



 
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
Countif function help =?Utf-8?B?SGF6?= Microsoft Excel Misc 8 12th Oct 2007 04:08 PM
please help how to combine IF function with Countif function =?Utf-8?B?RGluZXNo?= Microsoft Excel Worksheet Functions 6 30th Mar 2006 08:28 PM
How do I use a countif function according to two other countif fu. =?Utf-8?B?S2lyc3R5?= Microsoft Excel Worksheet Functions 2 20th Feb 2006 11:44 AM
Embed a countif function in subtotal function? =?Utf-8?B?U3R1Y2sgYXQgd29yaw==?= Microsoft Excel Worksheet Functions 1 14th Feb 2006 03:19 AM
COUNTIF Function preety Microsoft Excel Worksheet Functions 4 21st Nov 2003 08:36 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:00 PM.