Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 2
Default Average function for letters

I am trying to compute a percentage for a range of A4:A24; the only values in the cells are either an "X" or it is left blank.

If possible, I am trying to compute the percentage of the whole A4:A24 range where the "X"s will count as a yes and the blank field will count as a no, adding up all the X's (yes's) and counting them against the blank fields (no's) to get an percentage of how many X's there are compared to blanks

Can anyone help please, Ive searched tutorials but im not sure this is possible

Thanks EB
  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 829
Default Average function for letters

"ZWarren" wrote:
I am trying to compute the percentage of the whole
A4:A24 range where the "X"s will count as a yes
and the blank field will count as a no, adding up
all the X's (yes's) and counting them against the
blank fields (no's) to get an percentage of how
many X's there are compared to blanks


AVERAGE is the wrong function to use for this purpose. Try:

=COUNTIF(A4:A24,"X")/ROWS(A4:A24)

formatted as Percentage.

Of course, you could replace ROWS(A4:A24) with 21.
  #3   Report Post  
Senior Member
 
Posts: 663
Default

Quote:
Originally Posted by ZWarren View Post
I am trying to compute a percentage for a range of A4:A24; the only values in the cells are either an "X" or it is left blank.

If possible, I am trying to compute the percentage of the whole A4:A24 range where the "X"s will count as a yes and the blank field will count as a no, adding up all the X's (yes's) and counting them against the blank fields (no's) to get an percentage of how many X's there are compared to blanks

Can anyone help please, Ive searched tutorials but im not sure this is possible

Thanks EB
Quick and dirty, but it works :)

=COUNTA(A4:A24)/SUM(COUNTA(A4:A24)+COUNTBLANK(A4:A24))

Format the cell as %.
  #4   Report Post  
Junior Member
 
Posts: 2
Default

Quote:
Originally Posted by Spencer101 View Post
Quick and dirty, but it works :)

=COUNTA(A4:A24)/SUM(COUNTA(A4:A24)+COUNTBLANK(A4:A24))

Format the cell as %.
This worked, I appreciate it!
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
frequency function and letters [HOW?] gordom Excel Worksheet Functions 2 February 18th 09 11:37 PM
Average Grade for Letters andreah Excel Discussion (Misc queries) 3 January 30th 07 10:38 AM
displaying letters as average instead of numbers metiz Excel Discussion (Misc queries) 2 April 24th 06 08:53 AM
Average letters superkopite Excel Discussion (Misc queries) 2 December 8th 05 08:04 PM
Error Handling #N/A with AVERAGE Function - Average of values in Row Sam via OfficeKB.com Excel Worksheet Functions 13 July 31st 05 03:59 PM


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