+ Reply to Thread
Results 1 to 4 of 4

count how many students

  1. #1
    Registered User
    Join Date
    07-28-2006
    Posts
    27

    count how many students

    I have a table
    Student Exp Edu
    A 8 12
    B 8 11
    C 9 CD
    D 9 DH
    E 10 9
    F 10 2
    G 5 3
    H 4 TC

    I want count how many student same as:
    Cap I (Edu <5)
    Cap II (Edu 5<x<=9)
    Cap III (Edu 9<x<=12)
    TC, CD: (Edu x = TC + CD)
    DH: (Edu x= DH)
    How i do that function?

  2. #2
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,454
    Hi,

    Cap I (Edu <5) =COUNTIF(C2:C9,"<5")
    Cap II (Edu 5<x<=9) =COUNTIF(C2:C9,"<=9")-COUNTIF(C2:C9,"<5")
    Cap III (Edu 9<x<=12) =COUNTIF(C2:C9,"<=12")-COUNTIF(C2:C9,"<9")
    TC, CD: (Edu x = TC + CD) =COUNTIF(C2:C9,"TC")+COUNTIF(C2:C9,"CD")
    DH: (Edu x= DH) =COUNTIF(C2:C9,"DH")
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,730
    Quote Originally Posted by sweep
    Cap II (Edu 5<x<=9) =COUNTIF(C2:C9,"<=9")-COUNTIF(C2:C9,"<5")
    Cap III (Edu 9<x<=12) =COUNTIF(C2:C9,"<=12")-COUNTIF(C2:C9,"<9")
    Both these formulas will count 9, change the second one to

    =COUNTIF(C2:C9,"<=12")-COUNTIF(C2:C9,"<=9")

    to count "TC" and "CD" try

    =SUM(COUNTIF(C2:C9,{"TC","CD"}))

  4. #4
    Registered User
    Join Date
    07-28-2006
    Posts
    27
    Thx for guide.
    It's work.

+ 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