+ Reply to Thread
Results 1 to 3 of 3

Using INDEX, MATCH, and COUNTIFS to dissect survey results

  1. #1
    Registered User
    Join Date
    02-21-2017
    Location
    Alberta, Canada
    MS-Off Ver
    2016
    Posts
    1

    Using INDEX, MATCH, and COUNTIFS to dissect survey results

    I issued a survey to communities in my region. I have their results back, but I'm having trouble creating a table that will be easy for others to use to get results they can use.
    Right now I've got a long COUNTIFS statement which delineates the three or four criteria I need to search by, but I have so many criteria that change so often that I need to find a way to do it more effectively. Here's what I'm using:

    =COUNTIFS('Raw Data'!$BM3:$BM1038,C$2,'Raw Data'!$BL3:$BL1038,$B12)

    'Raw Data'!$BM3:$BM1038, points to the column with age information.
    C$2, points to the age criteria.
    'Raw Data'!$BL3:$BL1038, points to the column with gender information.
    $B12, points to the gender criteria.

    What I would like to do is have an INDEX and MATCH function that will search the header column of my raw data table for the column name in C$1, "What is your gender?", and then uses the identified column to search for the gender criteria in $B12. I've tried a number of potential solutions with no success so far.

    I think it should be something like

    =COUNTIFS(INDEX('Raw Data'!$B$2:$CT$1037,0,MATCH(A12,'Raw Data'!$A$1:$CT$1,0)),B12)

    And then duplicating the process for the different criteria. Thoughts? Am I on the right track? Can this even work?
    Attached Images Attached Images

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,202

    Re: Using INDEX, MATCH, and COUNTIFS to dissect survey results

    Please attach a file (not image) so that respondents (a) do not have to type in data and (b) have data with which test any formulas. Ensure the data is representative of your actual "real world" data.

    Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate.

    Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the (remove confidential) data.

    To Attach a File:

    1. Scroll down to the window below your post Additional Options
    2. In the frame Attach Files you will see the button Manage Attachments
    3. Click the button.
    4. A new window will open titled Manage Attachments - Excel Forum.
    5. Click the Browse... button to locate your file for uploading.
    6. This will open a new window File Upload.
    7. Once you have located the file to upload click the Open button. This window will close.
    8. You are now back in the Manage Attachments - Excel Forum window.
    9. Click the Upload button and wait until the file has uploaded.
    10. Close the window and then click Submit.

  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
    52,933

    Re: Using INDEX, MATCH, and COUNTIFS to dissect survey results

    Welcome to the forum

    Agree that we would need a file to play around with, but perhaps take a look at using a Pivot table for this?
    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

+ 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] INDEX MATCH MATCH but with COUNTIFS??
    By hilton426 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-13-2017, 09:47 AM
  2. [SOLVED] Index / Match - match 3 input values and return the results from the index
    By t83357 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-08-2016, 07:34 PM
  3. Complex function using Index, Match, Countifs, Closest Date -HELP!-
    By Vend1301 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-17-2015, 08:57 PM
  4. Countifs, index, match help wanted
    By DawitX in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-18-2015, 12:45 PM
  5. Countifs, Index and match is not working together
    By vinod2802 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-03-2015, 08:06 AM
  6. Countifs Index Match
    By Keelin in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-16-2014, 08:38 AM
  7. [SOLVED] Survey Lookup with Index or Match Issues
    By smudgepost in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-24-2014, 08:12 AM

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