PC Review


Reply
 
 
JP Ronse
Guest
Posts: n/a
 
      7th Apr 2010
Hi All,

New in Excel 2007.

Why is Countifs giving an error when I try to enter it with combined
formulas like:

=countifs(month(range);1;other_range;1)

With kind regards,

JP


 
Reply With Quote
 
 
 
 
T. Valko
Guest
Posts: n/a
 
      7th Apr 2010
>=countifs(month(range);1;other_range;1)

SUMIF
SUMIFS
COUNTIF
COUNTIFS
AVERAGEIF
AVERAGEIFS

These functions can only handle "straight" comparisons. That is, you can't
manipulate a range array to test for a condition.

In the formula above you're trying to manipulate the range array by first
testing for the month.

MONTH(range) = 1

The test has to be a "straight" comparison:

range = 1

Of course, that doesn't do what you want so you need to use a different
function.

=SUMPRODUCT(--(MONTH(range)=1),--(other_range=1))

--
Biff
Microsoft Excel MVP


"JP Ronse" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> Hi All,
>
> New in Excel 2007.
>
> Why is Countifs giving an error when I try to enter it with combined
> formulas like:
>
> =countifs(month(range);1;other_range;1)
>
> With kind regards,
>
> JP
>



 
Reply With Quote
 
Luke M
Guest
Posts: n/a
 
      7th Apr 2010
Because it can't do that.

Try:
=SUMPRODUCT(--(MONTH(range)=1),--(other_range=1))

--
Best Regards,

Luke M
"JP Ronse" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> Hi All,
>
> New in Excel 2007.
>
> Why is Countifs giving an error when I try to enter it with combined
> formulas like:
>
> =countifs(month(range);1;other_range;1)
>
> With kind regards,
>
> JP
>



 
Reply With Quote
 
JP Ronse
Guest
Posts: n/a
 
      8th Apr 2010
Thanks for the feedback. And yes, I realized later on my mistake.

With kind regards,

JP


"T. Valko" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> >=countifs(month(range);1;other_range;1)

>
> SUMIF
> SUMIFS
> COUNTIF
> COUNTIFS
> AVERAGEIF
> AVERAGEIFS
>
> These functions can only handle "straight" comparisons. That is, you can't
> manipulate a range array to test for a condition.
>
> In the formula above you're trying to manipulate the range array by first
> testing for the month.
>
> MONTH(range) = 1
>
> The test has to be a "straight" comparison:
>
> range = 1
>
> Of course, that doesn't do what you want so you need to use a different
> function.
>
> =SUMPRODUCT(--(MONTH(range)=1),--(other_range=1))
>
> --
> Biff
> Microsoft Excel MVP
>
>
> "JP Ronse" <(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
>> Hi All,
>>
>> New in Excel 2007.
>>
>> Why is Countifs giving an error when I try to enter it with combined
>> formulas like:
>>
>> =countifs(month(range);1;other_range;1)
>>
>> With kind regards,
>>
>> JP
>>

>
>



 
Reply With Quote
 
JP Ronse
Guest
Posts: n/a
 
      8th Apr 2010
Hi Luke,

Thanks for your input.

With kind regards,

JP

"Luke M" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Because it can't do that.
>
> Try:
> =SUMPRODUCT(--(MONTH(range)=1),--(other_range=1))
>
> --
> Best Regards,
>
> Luke M
> "JP Ronse" <(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
>> Hi All,
>>
>> New in Excel 2007.
>>
>> Why is Countifs giving an error when I try to enter it with combined
>> formulas like:
>>
>> =countifs(month(range);1;other_range;1)
>>
>> With kind regards,
>>
>> JP
>>

>
>



 
Reply With Quote
 
T. Valko
Guest
Posts: n/a
 
      9th Apr 2010
You're welcome!

--
Biff
Microsoft Excel MVP


"JP Ronse" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Thanks for the feedback. And yes, I realized later on my mistake.
>
> With kind regards,
>
> JP
>
>
> "T. Valko" <(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
>> >=countifs(month(range);1;other_range;1)

>>
>> SUMIF
>> SUMIFS
>> COUNTIF
>> COUNTIFS
>> AVERAGEIF
>> AVERAGEIFS
>>
>> These functions can only handle "straight" comparisons. That is, you
>> can't
>> manipulate a range array to test for a condition.
>>
>> In the formula above you're trying to manipulate the range array by
>> first testing for the month.
>>
>> MONTH(range) = 1
>>
>> The test has to be a "straight" comparison:
>>
>> range = 1
>>
>> Of course, that doesn't do what you want so you need to use a different
>> function.
>>
>> =SUMPRODUCT(--(MONTH(range)=1),--(other_range=1))
>>
>> --
>> Biff
>> Microsoft Excel MVP
>>
>>
>> "JP Ronse" <(E-Mail Removed)> wrote in message
>> news:%(E-Mail Removed)...
>>> Hi All,
>>>
>>> New in Excel 2007.
>>>
>>> Why is Countifs giving an error when I try to enter it with combined
>>> formulas like:
>>>
>>> =countifs(month(range);1;other_range;1)
>>>
>>> With kind regards,
>>>
>>> JP
>>>

>>
>>

>
>



 
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
COUNTIFS AlexW Microsoft Excel Misc 2 29th Jan 2010 09:31 PM
countifs Trip Bee Microsoft Excel Programming 0 24th Dec 2009 10:59 AM
Countifs to Sumproduct for 2003 -> was Simple Countifs.. from Fr Steve Microsoft Excel Worksheet Functions 2 4th Jan 2009 05:36 PM
countifs =?Utf-8?B?Rm9yemEgTUlsYW4=?= Microsoft Excel Misc 2 4th Jul 2007 09:48 AM
Countifs... =?Utf-8?B?YWpheWI=?= Microsoft Access Queries 2 9th Jun 2006 03:01 PM


Features
 

Advertising
 

Newsgroups
 


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