A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

how to do % of cells with data



 
 
Thread Tools Display Modes
  #1  
Old November 9th, 2005, 06:45 PM
matthewst
external usenet poster
 
Posts: n/a
Default how to do % of cells with data


My sheet looks like this:
_ABCDEF____
1x_x_______
2x_x_______
3x_x_______
4x_x_______
5x_________
6x_________
7x_________
8x_________

I want to know the % of cells in column C that have data in them, and
display this % in E1. Column A tells us we have 8 rows, so E1 then
would display 50%.


--
matthewst
------------------------------------------------------------------------
matthewst's Profile: http://www.excelforum.com/member.php...o&userid=20340
View this thread: http://www.excelforum.com/showthread...hreadid=483610

  #2  
Old November 9th, 2005, 07:18 PM
Roger Govier
external usenet poster
 
Posts: n/a
Default how to do % of cells with data

Hi Matthew

Try
=COUNTIF(C1:C8,"=x")/COUNTIF(A1:A8,"=x")
Format the cell as Percentage.

Regards

Roger Govier


matthewst wrote:
My sheet looks like this:
_ABCDEF____
1x_x_______
2x_x_______
3x_x_______
4x_x_______
5x_________
6x_________
7x_________
8x_________

I want to know the % of cells in column C that have data in them, and
display this % in E1. Column A tells us we have 8 rows, so E1 then
would display 50%.


  #3  
Old November 9th, 2005, 08:25 PM
matthewst
external usenet poster
 
Posts: n/a
Default how to do % of cells with data


Thanks for the quick reply!

That works to my example, but not for the actual sheet. I get this
error "#DIV/0!". The actual the cells contain names wich that formula
doesn't seem to like. Column A contains names and column C contains
ranks. I need to know the % of people with a rank. The number of people
in column A will change from time to time.
This is a little more difficult than I thought!

In a nutshell:
I need E1 to display the % of cells in column C that contain data as
compared to column A.


--
matthewst
------------------------------------------------------------------------
matthewst's Profile: http://www.excelforum.com/member.php...o&userid=20340
View this thread: http://www.excelforum.com/showthread...hreadid=483610

  #4  
Old November 9th, 2005, 09:00 PM
Roger Govier
external usenet poster
 
Posts: n/a
Default how to do % of cells with data

Hi Matthew

then try
=COUNTA(C1:C8)/COUNTA(A1:A8)

Regards

Roger Govier


matthewst wrote:
Thanks for the quick reply!

That works to my example, but not for the actual sheet. I get this
error "#DIV/0!". The actual the cells contain names wich that formula
doesn't seem to like. Column A contains names and column C contains
ranks. I need to know the % of people with a rank. The number of people
in column A will change from time to time.
This is a little more difficult than I thought!

In a nutshell:
I need E1 to display the % of cells in column C that contain data as
compared to column A.


  #5  
Old November 9th, 2005, 09:25 PM
matthewst
external usenet poster
 
Posts: n/a
Default how to do % of cells with data


Dude that is awesome!!!
Thanks!!

I got one more for ya.
What if the number of rows in column A changes? Let's say today there
are 8 people on the list and 4 have ranks.. Tommorow there will be 20
and 15 of them will have ranks, and so on.


--
matthewst
------------------------------------------------------------------------
matthewst's Profile: http://www.excelforum.com/member.php...o&userid=20340
View this thread: http://www.excelforum.com/showthread...hreadid=483610

  #6  
Old November 10th, 2005, 12:16 AM
Roger Govier
external usenet poster
 
Posts: n/a
Default how to do % of cells with data

Hi Matthew

Just extend your range.
You can make it whole columns if you wish
=COUNTA(C:C)/COUNTA(A:A)

Regards

Roger Govier


matthewst wrote:
Dude that is awesome!!!
Thanks!!

I got one more for ya.
What if the number of rows in column A changes? Let's say today there
are 8 people on the list and 4 have ranks.. Tommorow there will be 20
and 15 of them will have ranks, and so on.


  #7  
Old November 10th, 2005, 12:05 PM
matthewst
external usenet poster
 
Posts: n/a
Default how to do % of cells with data


Sweet!!!
Thanks again!!


--
matthewst
------------------------------------------------------------------------
matthewst's Profile: http://www.excelforum.com/member.php...o&userid=20340
View this thread: http://www.excelforum.com/showthread...hreadid=483610

 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I make the graph omit blank cells in the data set? easy Charts and Charting 3 March 17th, 2005 02:48 PM
multiple docs, one data source kp Mailmerge 12 January 31st, 2005 04:41 PM
How do I get 3 series in sync with the x-axis? zizbird Charts and Charting 10 October 25th, 2004 01:23 PM
VBA Code problem error 9 Speedy General Discussion 19 October 15th, 2004 09:05 PM
Limits to # of data validation cells? Trista Worksheet Functions 1 August 14th, 2004 03:12 AM


All times are GMT +1. The time now is 08:12 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.