Home |
Search |
Today's Posts |
#1
|
|||
|
|||
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
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Calculating Percentages in a Range | Excel Worksheet Functions | |||
calculating excel spreadsheet files for pensions and life insurance (including age calculation sheets) | Excel Worksheet Functions | |||
Define a range based on another named range | Excel Worksheet Functions | |||
Calculating Percentages with Variables | Excel Worksheet Functions | |||
Calculating percentages | Excel Worksheet Functions |