View Single Post
  #3   Report Post  
Spencer101 Spencer101 is offline
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 %.