![]() |
division with blank cells
yes
no ___ ___ yes no yes __ FORMULA Is there a way for me to put a formula in the Formula cell where it would divide all the yes's by all the no's without counting all the blank cells. So the formula would read 3/5 (number of filled in cells) instead of 3/8 (number of total cells in range) Your help is greatly appreciated. |
division with blank cells
If those empty cells are really empty:
=countif(a:a,"yes")/counta(a:a) If those cells just look empty (contain formulas that evaluate to "") =countif(a:a,"yes")/sum(countif(a:a,{"yes","no"})) This will ignore all value that's not equal to yes or no. jpmurray22 wrote: yes no ___ ___ yes no yes __ FORMULA Is there a way for me to put a formula in the Formula cell where it would divide all the yes's by all the no's without counting all the blank cells. So the formula would read 3/5 (number of filled in cells) instead of 3/8 (number of total cells in range) Your help is greatly appreciated. -- Dave Peterson |
division with blank cells
=COUNTIF(A2:A20,"Yes")/COUNTA(A2:A20)
-- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "jpmurray22" wrote in message ... yes no ___ ___ yes no yes __ FORMULA Is there a way for me to put a formula in the Formula cell where it would divide all the yes's by all the no's without counting all the blank cells. So the formula would read 3/5 (number of filled in cells) instead of 3/8 (number of total cells in range) Your help is greatly appreciated. |
division with blank cells
Try this:
=COUNTIF(A1:A8,"yes")/COUNTIF(A1:A8,"?*") -- Biff Microsoft Excel MVP "jpmurray22" wrote in message ... yes no ___ ___ yes no yes __ FORMULA Is there a way for me to put a formula in the Formula cell where it would divide all the yes's by all the no's without counting all the blank cells. So the formula would read 3/5 (number of filled in cells) instead of 3/8 (number of total cells in range) Your help is greatly appreciated. |
division with blank cells
Something like this prehaps...
=COUNTIF(C1:C8, "yes")/SUM(COUNTIF(C1:C8, "yes"), COUNTIF(C1:C8, "no")) Format the cell as fraction... -- HTH... Jim Thomlinson "jpmurray22" wrote: yes no ___ ___ yes no yes __ FORMULA Is there a way for me to put a formula in the Formula cell where it would divide all the yes's by all the no's without counting all the blank cells. So the formula would read 3/5 (number of filled in cells) instead of 3/8 (number of total cells in range) Your help is greatly appreciated. |
division with blank cells
=COUNTIF(A1:A7,"yes")/COUNTIF(A1:A7,"no")
Format as Fraction Gord Dibben MS Excel MVP On Tue, 2 Oct 2007 15:03:04 -0700, jpmurray22 wrote: yes no ___ ___ yes no yes __ FORMULA Is there a way for me to put a formula in the Formula cell where it would divide all the yes's by all the no's without counting all the blank cells. So the formula would read 3/5 (number of filled in cells) instead of 3/8 (number of total cells in range) Your help is greatly appreciated. |
All times are GMT +1. The time now is 03:11 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com