ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   COUNTIF & data validation from a drop down (https://www.excelbanter.com/excel-discussion-misc-queries/145263-countif-data-validation-drop-down.html)

Kelly 1st

COUNTIF & data validation from a drop down
 
Hey

Could someone help...

I have yes/no/N/A list in various cells

i would like to cout how many no's there are

when i use the countif formula, it won't work and returns the value of 0
when clearly a cell has a no in it.

i'm using "=COUNTIF(D10:D14,"No")"

--
kelly m johnson
UK

Gord Dibben

COUNTIF & data validation from a drop down
 
Maybe that's not all the cell contains?

Any extra spaces in the cells?

In E10 enter =TRIM(D10) copy down to D14

Use your countif on E10:E14..........any better?


Gord Dibben MS Excel MVP

On Tue, 5 Jun 2007 10:27:01 -0700, Kelly 1st
wrote:

Hey

Could someone help...

I have yes/no/N/A list in various cells

i would like to cout how many no's there are

when i use the countif formula, it won't work and returns the value of 0
when clearly a cell has a no in it.

i'm using "=COUNTIF(D10:D14,"No")"



Toppers

COUNTIF & data validation from a drop down
 
Check if cells have added blanks e.g "No " will not match

OR

try:

=COUNTIF(D10:D14,"No*")

"Kelly 1st" wrote:

Hey

Could someone help...

I have yes/no/N/A list in various cells

i would like to cout how many no's there are

when i use the countif formula, it won't work and returns the value of 0
when clearly a cell has a no in it.

i'm using "=COUNTIF(D10:D14,"No")"

--
kelly m johnson
UK


Kelly 1st

COUNTIF & data validation from a drop down
 
Thank you to you both!!
--
kelly m johnson
Great Britain


"Gord Dibben" wrote:

Maybe that's not all the cell contains?

Any extra spaces in the cells?

In E10 enter =TRIM(D10) copy down to D14

Use your countif on E10:E14..........any better?


Gord Dibben MS Excel MVP

On Tue, 5 Jun 2007 10:27:01 -0700, Kelly 1st
wrote:

Hey

Could someone help...

I have yes/no/N/A list in various cells

i would like to cout how many no's there are

when i use the countif formula, it won't work and returns the value of 0
when clearly a cell has a no in it.

i'm using "=COUNTIF(D10:D14,"No")"





All times are GMT +1. The time now is 06:51 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com