+ Reply to Thread
Results 1 to 3 of 3

countif for survey results

  1. #1
    Registered User
    Join Date
    04-19-2009
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    21

    countif for survey results

    I'm tallying results from a survey. For the sake of making this less complicated, say there are 2 questions and 5 surveys were submitted with answers to each of the 2 questions. Questions are answered on a scale of 0-5.

    Column A
    Will have one of "M", "S", "G" or "L" which is what I'm using to split up survey results by demographic.

    Columns B, C
    Are questions. Will have scores of 0-5 in the cells.

    G4
    5

    F4
    4

    E4
    3

    D4
    2

    C4
    1

    B4
    0
    Now, I'm using this
    =IF(AND(COUNTIF(A2:A6,$G$4),COUNTIF(A2:A6,$G$4)=COUNTIF(A2:A6,$G$4)),COUNTIF(A2:A6,$G$4),"-")

    to tally the number of times the score 5 shows up and so on.

    How do I do this for each M, S, G, L though?

    Thanks for any help on this! I can provide a sample if it will help.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: countif for survey results

    How exactly is your formula counting the number of 5's

    Shouldn't =Countif(A2:A6,G4) do it?
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    05-25-2009
    Location
    Louisiana, USA
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: countif for survey results

    I typed up a lengthy and easy solution to this, but I now think that it is for Excel 2007, so I doubt it would help you now that I think about it. Let me know if you want it or get Excel 2007.


    It involves using =COUNTIFS() instead of =COUNTIF()

    =COUNTIFS() allows multiple criteria, while =COUNTIF() only allows one.

    You'll have 2 criteria if you're looking for a total for all "M"s that answered "5" and so on, since this checks for 2 things: the demographic and the answer.


    I have my lengthy explanation and an excel file example saved for if you would need it or can use it, let me know.

+ 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