Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Allen7575
 
Posts: n/a
Default Calculating Percentages in a Range

How do I set up an Excel formula that calculates the percentage of "Y"
entries in a range of cells that contains both "Y" and "N" entries?
  #2   Report Post  
Ron Coderre
 
Posts: n/a
Default

When I filled in Cells A1:C10 with various X's and Y's, this forumula worked:

=COUNTIF($A$1:$C$10,"Y")/COUNTIF($A$1:$C$10,"*")

It divides the number or cells containing Y by the number of cells
containing anything (but not blank).

If the range may include blanks that you want counted, try this:
=COUNTIF($A$1:$C$10,"Y")/(ROWS($A$1:$C$10)*COLUMNS($A$1:$C$10))

Note: In either case, you need to set the number format to Percent.

Does that help?

Regards,
Ron
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
Calculating Percentages in a Range Allen7575 Excel Worksheet Functions 3 April 11th 05 09:31 PM
calculating excel spreadsheet files for pensions and life insurance (including age calculation sheets) RICHARD Excel Worksheet Functions 1 March 15th 05 05:49 PM
Define a range based on another named range Basil Excel Worksheet Functions 2 February 21st 05 01:47 PM
Calculating Percentages with Variables tssjhs Excel Worksheet Functions 1 January 28th 05 01:27 AM
Calculating percentages tssjhs Excel Worksheet Functions 2 January 25th 05 01:56 PM


All times are GMT +1. The time now is 06:54 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"