ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   whats the formula (https://www.excelbanter.com/excel-worksheet-functions/195356-whats-formula.html)

dperalta

whats the formula
 
i created a data sheet collecting data of of permits. i set up the sheet
where i just entered Y for yes, or N for no. i'm trying to find out if
there's a formula for finding out the percentage of out of 2000 y's and n's
there are this many y's... and same n's also...

Mike H

whats the formula
 
Hi,

To count the y and n use
=COUNTIF(A1:A2000,"n")
obviously substituting a y

For the percentage of each use
=COUNTIF(A1:A2000,"y")/2000
Once again substitute the y for n to count the other

Mike

"dperalta" wrote:

i created a data sheet collecting data of of permits. i set up the sheet
where i just entered Y for yes, or N for no. i'm trying to find out if
there's a formula for finding out the percentage of out of 2000 y's and n's
there are this many y's... and same n's also...


Gord Dibben

whats the formula
 
=COUNTIF(A1:A2000,"y")/COUNTA(A1:A2000)

Will give the percentage of "y"s in the column.


Gord Dibben MS Excel MVP

On Thu, 17 Jul 2008 12:55:16 -0700, dperalta
wrote:

i created a data sheet collecting data of of permits. i set up the sheet
where i just entered Y for yes, or N for no. i'm trying to find out if
there's a formula for finding out the percentage of out of 2000 y's and n's
there are this many y's... and same n's also...




All times are GMT +1. The time now is 11:27 AM.

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