cells contain letters need % in total cell

  • Thread starter Thread starter teeitup
  • Start date Start date
T

teeitup

I have a range of cells in a row that are either "Y" or "N"
I want the "total" cell at the end of the row to display the percentag
of Y's.

Say I have 20 cells. 11 have Y's and 9 have N's. I need for the "tota
cell" at the end of the row to diplay 55%. The Y's and N's shoul
continue to display as letters.

Thanks
 
In case n(Y)/(n(Y)+n(N)) is desired...

=COUNTIF(Range,"Y")/SUM(COUNTIF(Range,{"Y","N"})

Jack Schitt said:
=COUNTIF(Range,"=Y")/(COUNTA(Range))
 
Thank you for your replies.

I have entered the following string:

=COUNTIF(B8:T8,"Y")/SUM(COUNTIF(B8:T8,{"Y","N"}))

My result is "#NAME?" invalid name.

Both of the suggested formulas produce the same output.

Thanks
 
Nevermind.

After closing and opening the spreadsheet, the formula worked.

???

Thanks very much for your help.

Later
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top