Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default 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.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default 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
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default 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.



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default 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.



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,939
Default 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.



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default 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.


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
Index/match - make blank cells return a blank value. diaare Excel Worksheet Functions 3 May 3rd 23 03:44 AM
Range of cells and division formula tdg119 Excel Discussion (Misc queries) 3 February 23rd 06 06:33 PM
Imported Data creates blank cells that aren't really blank JackieD Excel Worksheet Functions 14 February 23rd 06 12:57 AM
Making Blank Cells Really Blank (Zen Koan) Ralph Excel Worksheet Functions 2 April 11th 05 12:07 AM
Auto populate cells based on 2 cells division. Chance224 Excel Discussion (Misc queries) 0 April 4th 05 09:35 PM


All times are GMT +1. The time now is 07:01 PM.

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

About Us

"It's about Microsoft Excel"