Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 192
Default Odd problem with formula counting Yes and No

Excel 2003
I have a formula that counts all the "yes"s in a range of cells which it
does correctly. in the next cell I have the exact same formula counting the
"no"s in the same range of cells - it returnes "0" but there are two "no"s in
the range.
I have completely erased the formula and typed it in again, I have run
"evaluate" on it, I've checked the formatting of the cells... I can't get it
to count the "no"s. !!!!
I have three different ranges that I'm doing this for and I copied the
formula to count the no's and entered it into a different cell to count a
different range, and it counts the no's...
I'm stumped. Anyone have an idea?
thanks, Meenie
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Odd problem with formula counting Yes and No

check whether there are any space in your entries and it is exacly 'no' and
then try

or try
=COUNTIF(a:a,"*no*")

If this post helps click Yes
---------------
Jacob Skaria


"Meenie" wrote:

Excel 2003
I have a formula that counts all the "yes"s in a range of cells which it
does correctly. in the next cell I have the exact same formula counting the
"no"s in the same range of cells - it returnes "0" but there are two "no"s in
the range.
I have completely erased the formula and typed it in again, I have run
"evaluate" on it, I've checked the formatting of the cells... I can't get it
to count the "no"s. !!!!
I have three different ranges that I'm doing this for and I copied the
formula to count the no's and entered it into a different cell to count a
different range, and it counts the no's...
I'm stumped. Anyone have an idea?
thanks, Meenie

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ken Ken is offline
external usenet poster
 
Posts: 207
Default Odd problem with formula counting Yes and No

I think you need to post the formula. There are lots of ways to count
things and lots of ways to screw it up. Simply copying the formula
could change the range (depending on your use of absolute and relative
references) and what looks like a " no" may not match the "no" you use
in the formula, due to leading or trailing spaces; and there are lots
of other things that someone in this group will spot for you right
away; provided you give enough information.

Ken

On Jun 26, 1:37*pm, Meenie wrote:
Excel 2003
I have a formula that counts all the "yes"s in a range of cells which it
does correctly. in the next cell I have the exact same formula counting the
"no"s in the same range of cells - it returnes "0" but there are two "no"s in
the range.
I have completely erased the formula and typed it in again, I have run
"evaluate" on it, I've checked the formatting of the cells... I can't get it
to count the "no"s. !!!!
I have three different ranges that I'm doing this for and I copied the
formula to count the no's and entered it into a different cell to count a
different range, and it counts the no's...
I'm stumped. Anyone have an idea?
thanks, Meenie


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 192
Default Odd problem with formula counting Yes and No

Oh my, it works but I don't know why. I don't see any spaces and it's exactly
'no' but thanks bunches! much better formula! :D

"Jacob Skaria" wrote:

check whether there are any space in your entries and it is exacly 'no' and
then try

or try
=COUNTIF(a:a,"*no*")

If this post helps click Yes
---------------
Jacob Skaria


"Meenie" wrote:

Excel 2003
I have a formula that counts all the "yes"s in a range of cells which it
does correctly. in the next cell I have the exact same formula counting the
"no"s in the same range of cells - it returnes "0" but there are two "no"s in
the range.
I have completely erased the formula and typed it in again, I have run
"evaluate" on it, I've checked the formatting of the cells... I can't get it
to count the "no"s. !!!!
I have three different ranges that I'm doing this for and I copied the
formula to count the no's and entered it into a different cell to count a
different range, and it counts the no's...
I'm stumped. Anyone have an idea?
thanks, Meenie

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Odd problem with formula counting Yes and No

I don't see any spaces

Yeah, that's the problem with leading/trailing spaces, you can't see them!
<g

--
Biff
Microsoft Excel MVP


"Meenie" wrote in message
...
Oh my, it works but I don't know why. I don't see any spaces and it's
exactly
'no' but thanks bunches! much better formula! :D

"Jacob Skaria" wrote:

check whether there are any space in your entries and it is exacly 'no'
and
then try

or try
=COUNTIF(a:a,"*no*")

If this post helps click Yes
---------------
Jacob Skaria


"Meenie" wrote:

Excel 2003
I have a formula that counts all the "yes"s in a range of cells which
it
does correctly. in the next cell I have the exact same formula counting
the
"no"s in the same range of cells - it returnes "0" but there are two
"no"s in
the range.
I have completely erased the formula and typed it in again, I have run
"evaluate" on it, I've checked the formatting of the cells... I can't
get it
to count the "no"s. !!!!
I have three different ranges that I'm doing this for and I copied the
formula to count the no's and entered it into a different cell to count
a
different range, and it counts the no's...
I'm stumped. Anyone have an idea?
thanks, Meenie





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ken Ken is offline
external usenet poster
 
Posts: 207
Default Odd problem with formula counting Yes and No


Meenie

You can test to see if something that looks like "no" is really equal
to "no" with a formula

="no"=A1 (replace A1 with any cell reference that wasn't counted with
your formula, but, was counted with Jacob's formula).

I suspect you will get False.

His formula takes care of your problem by counting anything that
contains the string "no"; which shouldn't be a problem since
everything looks like "yes' or "no"; but, be aware that it will also
count such things as "snore" and "I am not a crook".

Good luck.

Ken



On Jun 26, 3:59*pm, Meenie wrote:
Oh my, it works but I don't know why. I don't see any spaces and it's exactly
'no' but thanks bunches! much better formula! :D



"Jacob Skaria" wrote:
check whether there are any space in your entries and it is exacly 'no' and
then try


or try
=COUNTIF(a:a,"*no*")


If this post helps click Yes
---------------
Jacob Skaria


"Meenie" wrote:


Excel 2003
I have a formula that counts all the "yes"s in a range of cells which it
does correctly. in the next cell I have the exact same formula counting the
"no"s in the same range of cells - it returnes "0" but there are two "no"s in
the range.
I have completely erased the formula and typed it in again, I have run
"evaluate" on it, I've checked the formatting of the cells... I can't get it
to count the "no"s. !!!!
I have three different ranges that I'm doing this for and I copied the
formula to count the no's and entered it into a different cell to count a
different range, and it counts the no's...
I'm stumped. Anyone have an idea?
thanks, Meenie- Hide quoted text -


- Show quoted text -


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
Counting Problem Andrew Mackenzie Excel Discussion (Misc queries) 5 April 1st 09 06:25 PM
Counting Problem Portocar Excel Discussion (Misc queries) 2 March 20th 08 06:59 PM
Counting problem daydreamin7 Excel Discussion (Misc queries) 7 March 1st 06 06:30 PM
Counting Problem peter_rivera Excel Discussion (Misc queries) 1 September 16th 05 09:19 PM
counting problem LucasBuck Excel Discussion (Misc queries) 4 September 13th 05 05:18 PM


All times are GMT +1. The time now is 10:09 AM.

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

About Us

"It's about Microsoft Excel"