Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
hopeace
 
Posts: n/a
Default count all the columns in a range with certain conditions


I need to count all the columns in a range with these conditions: if
they contain entries; and are the entries only 'n' values.

'y'= goal met 'n'=goal not met

.........................................john..... .sues......mary.....jack
improved attendance..............y............n............ .........n
increased time in
class............y............y................... ..n
grade/course
completion.......................n................ ........

I want the formula to come back as =1 because only jack has these
goals, and he did not achieve these goals.

In order to chart this i would also need a formula that tells me how
many students had goals in their column (not how many goals, or the
result, just if they had any goals).

Thanks!!!
keith


--
hopeace
------------------------------------------------------------------------
hopeace's Profile: http://www.excelforum.com/member.php...o&userid=28009
View this thread: http://www.excelforum.com/showthread...hreadid=476956

  #2   Report Post  
pinmaster
 
Posts: n/a
Default count all the columns in a range with certain conditions


Hi
If it is possible, try inserting a blank row above your range, you can
hide that row later. Now lets say that your range starts in column A
row 5, in your blank row starting on the second column (in your example
above John) put this formula:
=IF(AND(COUNTIF(B5:B7,"n")0,COUNTIF(B5:B7,"n")=CO UNTA(B5:B7)),1,0)
and copy across, to get the number of columns simply sum the row you
inserted.

P.S. you will need to ajust the formula for your range.....B5:B7

HTH
JG


--
pinmaster
------------------------------------------------------------------------
pinmaster's Profile: http://www.excelforum.com/member.php...fo&userid=6261
View this thread: http://www.excelforum.com/showthread...hreadid=476956

  #3   Report Post  
hopeace
 
Posts: n/a
Default count all the columns in a range with certain conditions


Brillant!!!

thank you so much once again JG. You are very giving to this
community.

keith


--
hopeace
------------------------------------------------------------------------
hopeace's Profile: http://www.excelforum.com/member.php...o&userid=28009
View this thread: http://www.excelforum.com/showthread...hreadid=476956

  #4   Report Post  
pinmaster
 
Posts: n/a
Default count all the columns in a range with certain conditions


Hi Keith
My knowlege of Excel is limited, but I'm always glad to help whenever
I can. And thanks again for the feedback, much apreciated.

Regards
JG


--
pinmaster
------------------------------------------------------------------------
pinmaster's Profile: http://www.excelforum.com/member.php...fo&userid=6261
View this thread: http://www.excelforum.com/showthread...hreadid=476956

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
How to count dates within a certain range in a column with mutiple date range entries Krisjhn Excel Worksheet Functions 2 September 1st 05 01:59 PM
Match function...random search? Les Excel Worksheet Functions 10 July 28th 05 11:54 AM
count date occurances in range of dates... Alex Excel Worksheet Functions 2 July 27th 05 04:15 PM
Reduce columns and rows count? murat Excel Worksheet Functions 3 March 16th 05 07:43 PM
How do I count data in range A:A that is dependent upon criteria . h2ocats Excel Worksheet Functions 1 February 21st 05 12:55 PM


All times are GMT +1. The time now is 05:23 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"