+ Reply to Thread
Results 1 to 4 of 4

count all the columns in a range with certain conditions

  1. #1
    Registered User
    Join Date
    10-11-2005
    Posts
    13

    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

  2. #2
    pinmaster
    Guest
    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")=COUNTA(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

  3. #3
    Registered User
    Join Date
    10-11-2005
    Posts
    13

    It worked

    Brillant!!!

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

    keith

  4. #4
    pinmaster
    Guest
    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

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1