+ Reply to Thread
Results 1 to 4 of 4

Formula Question:how many passed or failed at a given location.

  1. #1
    Registered User
    Join Date
    02-23-2006
    Posts
    16

    Formula Question:how many passed or failed at a given location.

    I have a spreadsheet the contains different locations and students that have either passed or failed a test. Columns c2-c146 contain the name of the students location and columns d2-d146 contain the words pass or fail. I can do a formula for counting the number a student at a location or how many passed or failed. I used =COUNTIF(C2:C146,"Bennettsville") for counting how many students at that location and =COUNTIF(D2:D146,"Pass") for counting students that passed from every location. I want to combine them to find out how many passed or failed at a given location.

    Suggestion?

    Thanks
    Russell

  2. #2
    Don Guillett
    Guest

    re: Formula Question:how many passed or failed at a given location.

    use sumproduct. modify to suit. Rnage size must be the same.
    =sumproduct((rngA="b")*(rngB="P"))

    --
    Don Guillett
    SalesAid Software
    [email protected]
    "raharr" <[email protected]> wrote in
    message news:[email protected]...
    >
    > I have a spreadsheet the contains different locations and students that
    > have either passed or failed a test. Columns c2-c146 contain the name
    > of the students location and columns d2-d146 contain the words pass or
    > fail. I can do a formula for counting the number a student at a
    > location or how many passed or failed. I used
    > =COUNTIF(C2:C146,"Bennettsville") for counting how many students at
    > that location and =COUNTIF(D2:D146,"Pass") for counting students that
    > passed from every location. I want to combine them to find out how
    > many passed or failed at a given location.
    >
    > Suggestion?
    >
    > Thanks
    > Russell
    >
    >
    > --
    > raharr
    > ------------------------------------------------------------------------
    > raharr's Profile:
    > http://www.excelforum.com/member.php...o&userid=31852
    > View this thread: http://www.excelforum.com/showthread...hreadid=515741
    >




  3. #3
    Bob Phillips
    Guest

    re: Formula Question:how many passed or failed at a given location.

    =SUMPRODUCT(--(C2:C146="Bennettsville") ,--(D2:D146="Pass"))

    --
    HTH

    Bob Phillips

    (remove nothere from email address if mailing direct)

    "raharr" <[email protected]> wrote in
    message news:[email protected]...
    >
    > I have a spreadsheet the contains different locations and students that
    > have either passed or failed a test. Columns c2-c146 contain the name
    > of the students location and columns d2-d146 contain the words pass or
    > fail. I can do a formula for counting the number a student at a
    > location or how many passed or failed. I used
    > =COUNTIF(C2:C146,"Bennettsville") for counting how many students at
    > that location and =COUNTIF(D2:D146,"Pass") for counting students that
    > passed from every location. I want to combine them to find out how
    > many passed or failed at a given location.
    >
    > Suggestion?
    >
    > Thanks
    > Russell
    >
    >
    > --
    > raharr
    > ------------------------------------------------------------------------
    > raharr's Profile:

    http://www.excelforum.com/member.php...o&userid=31852
    > View this thread: http://www.excelforum.com/showthread...hreadid=515741
    >




  4. #4
    Registered User
    Join Date
    02-23-2006
    Posts
    16

    Thanks

    Thanks. That did it.

    Russ

+ 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