Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 138
Default Countif + Named range

I'm using a simple Countif in XL2003 so don't need to CSE it. It fights with
a named range and I cannot see why. It worked when I set it up, but the
moment I changed anything it stopped. Where am I going wrong?

Given a 50-cell range $B$20:$B$44 and $B$56:$B$80 named as F_Shell.
Formula =COUNTIF(F_Shell,"0").
This returns #VALUE, but it returns the correct number if I use the cell
references.
I've tried entering it as a CSE: no change.
I've tried the suggestion from other questions in this forum to ensure it is
not text format, but general + double-click + enter: no change.

I'd appreciate any pointers.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default Countif + Named range

Are you saying that you can use COUNTIF with a non-contiguous range if you
use the actual cell references. If so, I would like to see your formula
because I cannot get that to work.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Jonathan" wrote in message
...
I'm using a simple Countif in XL2003 so don't need to CSE it. It fights

with
a named range and I cannot see why. It worked when I set it up, but the
moment I changed anything it stopped. Where am I going wrong?

Given a 50-cell range $B$20:$B$44 and $B$56:$B$80 named as F_Shell.
Formula =COUNTIF(F_Shell,"0").
This returns #VALUE, but it returns the correct number if I use the cell
references.
I've tried entering it as a CSE: no change.
I've tried the suggestion from other questions in this forum to ensure it

is
not text format, but general + double-click + enter: no change.

I'd appreciate any pointers.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 138
Default Countif + Named range

You were right to doubt me--I had used just a simplified contiguous version
of the range in my test. It was not until I used the full non-contiguous
version that the range-naming died on me. Since COUNTIF is a specialised
array/CSE function, does this mean that such a function won't work if the
array is not contiguous(whatever the range might be named) i.e. it is not an
array?

"Bob Phillips" wrote:

Are you saying that you can use COUNTIF with a non-contiguous range if you
use the actual cell references. If so, I would like to see your formula
because I cannot get that to work.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Jonathan" wrote in message
...
I'm using a simple Countif in XL2003 so don't need to CSE it. It fights

with
a named range and I cannot see why. It worked when I set it up, but the
moment I changed anything it stopped. Where am I going wrong?

Given a 50-cell range $B$20:$B$44 and $B$56:$B$80 named as F_Shell.
Formula =COUNTIF(F_Shell,"0").
This returns #VALUE, but it returns the correct number if I use the cell
references.
I've tried entering it as a CSE: no change.
I've tried the suggestion from other questions in this forum to ensure it

is
not text format, but general + double-click + enter: no change.

I'd appreciate any pointers.




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default Countif + Named range

COUNTIF is a function that processes a range of values, but it is not CSE,
and it cannot handle non-contiguous ranges, named or not. You need a
different approach.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Jonathan" wrote in message
...
You were right to doubt me--I had used just a simplified contiguous

version
of the range in my test. It was not until I used the full non-contiguous
version that the range-naming died on me. Since COUNTIF is a specialised
array/CSE function, does this mean that such a function won't work if the
array is not contiguous(whatever the range might be named) i.e. it is not

an
array?

"Bob Phillips" wrote:

Are you saying that you can use COUNTIF with a non-contiguous range if

you
use the actual cell references. If so, I would like to see your formula
because I cannot get that to work.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Jonathan" wrote in message
...
I'm using a simple Countif in XL2003 so don't need to CSE it. It

fights
with
a named range and I cannot see why. It worked when I set it up, but

the
moment I changed anything it stopped. Where am I going wrong?

Given a 50-cell range $B$20:$B$44 and $B$56:$B$80 named as F_Shell.
Formula =COUNTIF(F_Shell,"0").
This returns #VALUE, but it returns the correct number if I use the

cell
references.
I've tried entering it as a CSE: no change.
I've tried the suggestion from other questions in this forum to ensure

it
is
not text format, but general + double-click + enter: no change.

I'd appreciate any pointers.






  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 138
Default Countif + Named range

Thanks for this help Bob, and for your very fast responses. I will go and
de-discontiguise my tables!

"Bob Phillips" wrote:

COUNTIF is a function that processes a range of values, but it is not CSE,
and it cannot handle non-contiguous ranges, named or not. You need a
different approach.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Jonathan" wrote in message
...
You were right to doubt me--I had used just a simplified contiguous

version
of the range in my test. It was not until I used the full non-contiguous
version that the range-naming died on me. Since COUNTIF is a specialised
array/CSE function, does this mean that such a function won't work if the
array is not contiguous(whatever the range might be named) i.e. it is not

an
array?

"Bob Phillips" wrote:

Are you saying that you can use COUNTIF with a non-contiguous range if

you
use the actual cell references. If so, I would like to see your formula
because I cannot get that to work.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Jonathan" wrote in message
...
I'm using a simple Countif in XL2003 so don't need to CSE it. It

fights
with
a named range and I cannot see why. It worked when I set it up, but

the
moment I changed anything it stopped. Where am I going wrong?

Given a 50-cell range $B$20:$B$44 and $B$56:$B$80 named as F_Shell.
Formula =COUNTIF(F_Shell,"0").
This returns #VALUE, but it returns the correct number if I use the

cell
references.
I've tried entering it as a CSE: no change.
I've tried the suggestion from other questions in this forum to ensure

it
is
not text format, but general + double-click + enter: no change.

I'd appreciate any pointers.








  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default Countif + Named range

You can do it with non-contiguous ranges, but not the way you tried. For
instance

=SUMPRODUCT(COUNTIF(INDIRECT({"B20:B44","B56:B80"} ),"0"))

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Jonathan" wrote in message
...
Thanks for this help Bob, and for your very fast responses. I will go and
de-discontiguise my tables!

"Bob Phillips" wrote:

COUNTIF is a function that processes a range of values, but it is not

CSE,
and it cannot handle non-contiguous ranges, named or not. You need a
different approach.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Jonathan" wrote in message
...
You were right to doubt me--I had used just a simplified contiguous

version
of the range in my test. It was not until I used the full

non-contiguous
version that the range-naming died on me. Since COUNTIF is a

specialised
array/CSE function, does this mean that such a function won't work if

the
array is not contiguous(whatever the range might be named) i.e. it is

not
an
array?

"Bob Phillips" wrote:

Are you saying that you can use COUNTIF with a non-contiguous range

if
you
use the actual cell references. If so, I would like to see your

formula
because I cannot get that to work.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Jonathan" wrote in message
...
I'm using a simple Countif in XL2003 so don't need to CSE it. It

fights
with
a named range and I cannot see why. It worked when I set it up,

but
the
moment I changed anything it stopped. Where am I going wrong?

Given a 50-cell range $B$20:$B$44 and $B$56:$B$80 named as

F_Shell.
Formula =COUNTIF(F_Shell,"0").
This returns #VALUE, but it returns the correct number if I use

the
cell
references.
I've tried entering it as a CSE: no change.
I've tried the suggestion from other questions in this forum to

ensure
it
is
not text format, but general + double-click + enter: no change.

I'd appreciate any pointers.








Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't chart dynamic named range?? [email protected] Charts and Charting in Excel 4 July 20th 06 08:30 PM
inserting a named range into new cells based on a named cell Peter S. Excel Discussion (Misc queries) 1 June 4th 06 03:53 AM
VLookup Error in Part of a Named Range Dallas64 Excel Worksheet Functions 6 April 18th 06 02:13 PM
Updating a named range joala Excel Worksheet Functions 2 March 16th 06 06:10 PM
Range matching multiple named Ranges ben simpson Excel Discussion (Misc queries) 0 March 15th 06 06:45 PM


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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"