PC Review


Reply
Thread Tools Rate Thread

Countif using a named range

 
 
Luc
Guest
Posts: n/a
 
      28th Feb 2007
A cell in the sheet 'PARAMETES' contains 'Communications!F:F'
I have named this range 'Division'

When i use the code below in the PARAMETERS sheet:
=COUNTIF(Communications!F:F;D2)
I get the right result

But when i use the code below in the PARAMETERS sheet:
=COUNTIF(Division;D2)
i get 0 (which is not correct)

????

What's wrong ??


Thanx,


Luc





--------------------------------------------------------------------------------
Mijn Postvak In wordt beschermd door SPAMfighter
323 spam-mails zijn er tot op heden geblokkeerd.
Download de gratis SPAMfighter vandaag nog!


 
Reply With Quote
 
 
 
 
Dave Peterson
Guest
Posts: n/a
 
      28th Feb 2007
maybe...

=COUNTIF(indirect(Division);D2)



Luc wrote:
>
> A cell in the sheet 'PARAMETES' contains 'Communications!F:F'
> I have named this range 'Division'
>
> When i use the code below in the PARAMETERS sheet:
> =COUNTIF(Communications!F:F;D2)
> I get the right result
>
> But when i use the code below in the PARAMETERS sheet:
> =COUNTIF(Division;D2)
> i get 0 (which is not correct)
>
> ????
>
> What's wrong ??
>
> Thanx,
>
> Luc
>
> --------------------------------------------------------------------------------
> Mijn Postvak In wordt beschermd door SPAMfighter
> 323 spam-mails zijn er tot op heden geblokkeerd.
> Download de gratis SPAMfighter vandaag nog!


--

Dave Peterson
 
Reply With Quote
 
Doug Glancy
Guest
Posts: n/a
 
      28th Feb 2007
Luc,

Try this:

=COUNTIF(INDIRECT(Division),D2)

hth,

Doug

"Luc" <(E-Mail Removed)> wrote in message
news:45e60b46$0$11264$(E-Mail Removed)...
>A cell in the sheet 'PARAMETES' contains 'Communications!F:F'
> I have named this range 'Division'
>
> When i use the code below in the PARAMETERS sheet:
> =COUNTIF(Communications!F:F;D2)
> I get the right result
>
> But when i use the code below in the PARAMETERS sheet:
> =COUNTIF(Division;D2)
> i get 0 (which is not correct)
>
> ????
>
> What's wrong ??
>
>
> Thanx,
>
>
> Luc
>
>
>
>
>
> --------------------------------------------------------------------------------
> Mijn Postvak In wordt beschermd door SPAMfighter
> 323 spam-mails zijn er tot op heden geblokkeerd.
> Download de gratis SPAMfighter vandaag nog!
>



 
Reply With Quote
 
Bob Phillips
Guest
Posts: n/a
 
      28th Feb 2007
=COUNTIF(INDIRECT(Division);D2)

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Luc" <(E-Mail Removed)> wrote in message
news:45e60b46$0$11264$(E-Mail Removed)...
>A cell in the sheet 'PARAMETES' contains 'Communications!F:F'
> I have named this range 'Division'
>
> When i use the code below in the PARAMETERS sheet:
> =COUNTIF(Communications!F:F;D2)
> I get the right result
>
> But when i use the code below in the PARAMETERS sheet:
> =COUNTIF(Division;D2)
> i get 0 (which is not correct)
>
> ????
>
> What's wrong ??
>
>
> Thanx,
>
>
> Luc
>
>
>
>
>
> --------------------------------------------------------------------------------
> Mijn Postvak In wordt beschermd door SPAMfighter
> 323 spam-mails zijn er tot op heden geblokkeerd.
> Download de gratis SPAMfighter vandaag nog!
>



 
Reply With Quote
 
Luc
Guest
Posts: n/a
 
      28th Feb 2007
Many thanxxxxx mate :=)

That did the job!!!


Luc


"Dave Peterson" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> maybe...
>
> =COUNTIF(indirect(Division);D2)
>
>
>
> Luc wrote:
>>
>> A cell in the sheet 'PARAMETES' contains 'Communications!F:F'
>> I have named this range 'Division'
>>
>> When i use the code below in the PARAMETERS sheet:
>> =COUNTIF(Communications!F:F;D2)
>> I get the right result
>>
>> But when i use the code below in the PARAMETERS sheet:
>> =COUNTIF(Division;D2)
>> i get 0 (which is not correct)
>>
>> ????
>>
>> What's wrong ??
>>
>> Thanx,
>>
>> Luc
>>
>> --------------------------------------------------------------------------------
>> Mijn Postvak In wordt beschermd door SPAMfighter
>> 323 spam-mails zijn er tot op heden geblokkeerd.
>> Download de gratis SPAMfighter vandaag nog!

>
> --
>
> Dave Peterson


--------------------------------------------------------------------------------
Mijn Postvak In wordt beschermd door SPAMfighter
323 spam-mails zijn er tot op heden geblokkeerd.
Download de gratis SPAMfighter vandaag nog!


 
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 and values greater than zero for a named range Angela Microsoft Excel Worksheet Functions 1 17th Nov 2009 04:32 PM
Countif with Named Range D Microsoft Excel Programming 3 4th Nov 2009 08:22 PM
can't use function 'countif' in named range Roland Microsoft Excel Misc 8 5th Nov 2008 08:29 PM
can't use function 'countif' in named range Roland Microsoft Excel Worksheet Functions 3 4th Nov 2008 12:13 PM
Countif + Named range =?Utf-8?B?Sm9uYXRoYW4=?= Microsoft Excel Worksheet Functions 5 16th Aug 2006 09:51 AM


Features
 

Advertising
 

Newsgroups
 


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