Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 130
Default How to setup a ratio

I have a spreadsheet where I need to create a formula that will show a ratio.

Example
E2 = Y
E3 = N
E4 = Y
E5 = Y
F2 needs to show the percentage of those 4 cells

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default How to setup a ratio

Do you want a ration or a percentage? Try this in F2 first:

="Ratio is "&COUNTIF(E2:E5,"Y")&" yes to "&COUNTIF(E2:E5,"N")&" no
responses"

Or you could try this:

=COUNTIF(E2:E5,"N")/COUNTA(E2:E5)

and format as percentage - should give you 25%.

Hope this helps.

Pete

Cindy wrote:

I have a spreadsheet where I need to create a formula that will show a ratio.

Example
E2 = Y
E3 = N
E4 = Y
E5 = Y
F2 needs to show the percentage of those 4 cells


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,574
Default How to setup a ratio

The percentage of the 4 cells is 100%, if the set considered contains those
four elements.

If you're looking for the percentage of Ys, then do something like
=COUNTIF(E2:E5,"Yes")/COUNTA(E2:E5) and format as percent.

Dave
--
Brevity is the soul of wit.


"Cindy" wrote:

I have a spreadsheet where I need to create a formula that will show a ratio.

Example
E2 = Y
E3 = N
E4 = Y
E5 = Y
F2 needs to show the percentage of those 4 cells

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,101
Default How to setup a ratio

There are probably neater solutions but it can be done with 2 helper cells

In helper cell1 (say g1) type =COUNTIF(E2:E5,"=y")
In helper cell2 (say g2) type =COUNTIF(E2:E5,"=n")

in your answer cell f2 type =G1/(SUM(G1,G2))*100&"% Are Yes"
in another cell say f3 type =G2/(SUM(G1,G2))*100&"% Are No"


"Cindy" wrote:

I have a spreadsheet where I need to create a formula that will show a ratio.

Example
E2 = Y
E3 = N
E4 = Y
E5 = Y
F2 needs to show the percentage of those 4 cells

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
Merge data rows at fixed ratio AirBoss Excel Discussion (Misc queries) 13 December 19th 06 03:23 PM
Calculation of Ratio aposatsk Excel Discussion (Misc queries) 0 August 21st 06 08:37 PM
Divide x/y should give Ratio x:y,How to express ratio in excel arvind3738 Excel Worksheet Functions 2 July 9th 06 09:40 AM
I need to install the solver add-in but my setup CD doesn't work. dd Setting up and Configuration of Excel 0 April 29th 06 11:46 PM
Print setup of a complete workbook I Rygert Excel Discussion (Misc queries) 1 March 22nd 06 08:44 AM


All times are GMT +1. The time now is 07:24 AM.

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"