+ Reply to Thread
Results 1 to 5 of 5

Using a formula to count + or -

  1. #1
    Registered User
    Join Date
    08-16-2014
    Location
    Pittsburgh, PA
    MS-Off Ver
    2010
    Posts
    14

    Using a formula to count + or -

    I have an excel sheet with 100 rows. In each box of column C there is a +, - or NA indicating my students performance on an assignment. I need a formula that will count the number of + and divide it by the number of - and + (and ignoring the NA).

    For example, in column C, there are 88 + marks, 11 - marks and 1 NA mark. I'd like the formula to be able to do this for me without me having to count it each time. The result would be 88/99=.88888 or 88.9%. Any ideas?

  2. #2
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: Using a formula to count + or -

    How about:

    Please Login or Register  to view this content.
    Cheers,
    Would you like to say thanks? Please click the: " Add Reputation" button, on the grey bar below the post.

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Using a formula to count + or -

    Try something like this (adjust ranges as needed)...
    =COUNTIF(A1:A11,"+")/SUM(COUNTIF(A1:A11,{"+","-"}))
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Using a formula to count + or -

    Perhaps

    =COUNTIF(A1:A11,"+")/COUNTIF(A1:A11,"<>NA"))

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Using a formula to count + or -

    Jonmo, slick (OP said "there is a +, - or NA", so as long as that holds )

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Count formula not count hidden cells in table
    By tlacloche in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-06-2013, 02:35 PM
  2. [SOLVED] Count and average formula needed to not count text field
    By excelteam777 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-07-2013, 05:30 PM
  3. [SOLVED] text count issue, it seems to count the formula also?
    By randypang in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-28-2013, 03:27 AM
  4. [SOLVED] Count/No Count for year entered---formula help
    By awest181 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-26-2012, 02:07 PM
  5. Replies: 5
    Last Post: 08-29-2012, 05:25 PM

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