PC Review


Reply
Thread Tools Rate Thread

simple formula question?

 
 
ADK
Guest
Posts: n/a
 
      18th Jul 2005
I have a column where each cell has either a X or is blank. I would like to
count the number of X's and then return a percentage complete based on the
number of cells total (X's and blanks).

I also have another column, but this column has all different characters
(not just a X) I would still like to count the cells with data and give an
average based on number of cells total (X's and blanks).

Thanks in advance


 
Reply With Quote
 
 
 
 
Dave Peterson
Guest
Posts: n/a
 
      18th Jul 2005
One way:

=COUNTIF(A1:A25,"X")/(COUNTIF(A1:A25,"X")+COUNTBLANK(A1:A25))

Give the cell a percentage format.

And if I understand the second question, you just want to ignore the non-X's and
non-blanks?

If that's correct, then the first formula will work.

(But maybe I don't understand the second question!!)

ADK wrote:
>
> I have a column where each cell has either a X or is blank. I would like to
> count the number of X's and then return a percentage complete based on the
> number of cells total (X's and blanks).
>
> I also have another column, but this column has all different characters
> (not just a X) I would still like to count the cells with data and give an
> average based on number of cells total (X's and blanks).
>
> Thanks in advance


--

Dave Peterson
 
Reply With Quote
 
Earl Kiosterud
Guest
Posts: n/a
 
      18th Jul 2005
ADK,

For percentage of x's,

=COUNTIF(A2:A10,"x")/ROWS(A2:A10)

For percentage of anything

=COUNTA(A2:A10)/ROWS(A2:A10)

Earl Kiosterud
www.smokeylake.com

"ADK" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
>I have a column where each cell has either a X or is blank. I would like to
>count the number of X's and then return a percentage complete based on the
>number of cells total (X's and blanks).
>
> I also have another column, but this column has all different characters
> (not just a X) I would still like to count the cells with data and give an
> average based on number of cells total (X's and blanks).
>
> Thanks in advance
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Simple Formula Question dixxie Microsoft Excel Programming 0 16th Apr 2010 01:34 AM
Re: Simple formula question Don Guillett Microsoft Excel Worksheet Functions 0 17th Feb 2009 02:44 PM
Simple formula question JD Microsoft Excel Misc 4 12th Feb 2009 09:04 PM
IF formula-simple question; simple operator Rich D Microsoft Excel Misc 4 6th Dec 2007 04:36 PM
Simple formula question jvioral Microsoft Excel Discussion 2 5th Nov 2004 04:08 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:42 PM.