Thread: If Formula?
View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default If Formula?

Thanks very much to T. Valko and Max for taking the time to help me out.

Welcome. Please go back and press the Yes* buttons in all responses which help
*like the ones below, from where you're reading this

I want to calculate the percentage of the "C"s in
column A, compared to ALL of column A


Assuming no column header in A1, then:
=COUNTIF(A:A,"C")/COUNTA(A:A)
Format as percentage

If there is a column header in A1, adjust it like this:
=COUNTIF(A:A,"C")/(COUNTA(A:A)-1)
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:20,500 Files:363 Subscribers:64
xdemechanik
---