+ Reply to Thread
Results 1 to 7 of 7

Filter / COUNTIF with multiple values in one cell resulting from Google survey

  1. #1
    Registered User
    Join Date
    12-07-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    4

    Filter / COUNTIF with multiple values in one cell resulting from Google survey

    Hi Excel Help Forum,

    This is a cross-post related to http://www.excelforum.com/excel-gene...-formulas.html.

    I am working with survey results from a Google survey. Some of the questions were checkbox questions, which means they allowed to tick multiple answers. As a result, some cells in my spreadsheet contain multiple values. Some only have one, others two, others more than that.

    What I am trying to do is to filter the cells (according to state of the respondent, for instance) and then count the values in the cell. Filter and COUNTIF would be the perfect option. I have tried to use this SUBTOTAL/OFFSET formula to get around it

    =SUMPRODUCT(SUBTOTAL(3,OFFSET(Overview!Z2:Z27,ROW(Overview!Z2:Z27)-ROW(Overview!Z2),0,1))*(Overview!Z2:Overview!Z27="Y")).

    The problem I am facing is that this formula only counts the cells that contain one value ("Y"). It does not count the "Y"s in cell where there are multiple values. Is there any way around this?

    Many many thanks for your help.

    Shikriti

  2. #2
    Forum Contributor
    Join Date
    09-27-2012
    Location
    London, England
    MS-Off Ver
    2003, 2010
    Posts
    344

    Re: Filter / COUNTIF with multiple values in one cell resulting from Google survey

    Hi Shikriti,

    Welcome to the forum. It would be helpful to assess the formulas if you can upload a sample workbook. To upload, click on "Go Advanced" and then select attachment.

    Thanks.
    If solved kindly remember to mark Thread as solved.
    Click the small star icon at the bottom left of my post if this was useful.

  3. #3
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Filter / COUNTIF with multiple values in one cell resulting from Google survey

    Hi Shikriti

    Are you sure that OFFSET part is correct.

  4. #4
    Registered User
    Join Date
    12-07-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Filter / COUNTIF with multiple values in one cell resulting from Google survey

    Hi there,

    Thanks for the quick replies.

    KBkumar - I am attaching an extract of the database. For instance, I would need to know who the main funders (F) are for national civil society (B) in Alambama (A). Do let me know if this is helpful or if you need a broader extract.

    Kevin - well, not really sure if the offset part is correct. But it does produce a correct count of cells where the value was "Y" only.

    Thanks ever so much for trying to help,

    Shikriti
    Attached Files Attached Files

  5. #5
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Re: Filter / COUNTIF with multiple values in one cell resulting from Google survey

    i am not able to correlate your formula with your spreadsheet (no column Z, no value Y).

    try this:

    Please Login or Register  to view this content.
    i have setup the OFFSET piece slightly differently and added the ISNUMBER(SEARCH piece to look for "y" anywhere in the value in a cell. if you want it to be case-sensitive, use FIND instead of SEARCH.

    1003
    - i.s.z -
    CSE, aka Array aka { }, formulae are confirmed with CONTROL+SHIFT+ENTER.
    Replace commas ( , ) with semicolons ( ; ) in formulae, if your locale setting demands.
    All good ideas are courtesy resources from this forum as well as others around the web.
    - e.o.m -

  6. #6
    Registered User
    Join Date
    12-07-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Filter / COUNTIF with multiple values in one cell resulting from Google survey

    YOU ARE THE BEST!! It worked! Thank you soso much, you have no idea how much you are helping me here. You made my day. Thank you!!

  7. #7
    Registered User
    Join Date
    12-07-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Filter / COUNTIF with multiple values in one cell resulting from Google survey

    Since you guys are so good at this:

    The reason why I am trying to work as outlined above is that I have not been able to use pivot tables for cells which contain multiple values. For example, if I wanted to count the main funders (Column D in the sample attached) per state (column A), I get a long list with all the different combinations of answers. What I would need however is a pivot table with a count of the individual values (for instance "individual donations" which appear in the combinations. Can anybody help?

    Many thanks everybody

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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