I have two worksheets, one with customer information (Cust_ID, type, location) and one with customer responses (Cust_ID, q1, q2, etc)
I have on a third sheet a summary page, using slicers based on the customer information sheet (so the user can filter down on type or location etc). This part works fine.
on this third sheet, I want to summarise the questions, and count the responses based on the filtered slicers. IE: If the slicers has a filter for UK, then only UK results will show in the summary of the question responses.
The summary has 3 rows for each response type (agree, disagree, N/A) and several columns (for each question).
I can do a simple countif to get the results, but cannot figure out how to get it to filter down based on the slicers. I have tried adding a hidden pivot with the customer ID that changes when you alter the slicer choice, then trying to do an index/match against this, but it doesn't appear to be pulling the correct data (it is pulling 21 records, when I know there are 28 in both the customer list and responses list).
This is the formula I have that works:
Code:
This is what I have tried that doesn't
Code:
Any ideas on how to do a count and lookup in a formula?
(I am more used to bringing data together in Access queries, but unfortunately this isn't an option here)
Thank you
I have on a third sheet a summary page, using slicers based on the customer information sheet (so the user can filter down on type or location etc). This part works fine.
on this third sheet, I want to summarise the questions, and count the responses based on the filtered slicers. IE: If the slicers has a filter for UK, then only UK results will show in the summary of the question responses.
The summary has 3 rows for each response type (agree, disagree, N/A) and several columns (for each question).
I can do a simple countif to get the results, but cannot figure out how to get it to filter down based on the slicers. I have tried adding a hidden pivot with the customer ID that changes when you alter the slicer choice, then trying to do an index/match against this, but it doesn't appear to be pulling the correct data (it is pulling 21 records, when I know there are 28 in both the customer list and responses list).
This is the formula I have that works:
Code:
Code:
=COUNTIFS('Question Data'!B:B,4)
Code:
Code:
=COUNTIFS('Question Data'!B:B,4,'Question Data'!$A:$A,MATCH('Question Data'!$A:$A,X:X,0))
Any ideas on how to do a count and lookup in a formula?
(I am more used to bringing data together in Access queries, but unfortunately this isn't an option here)
Thank you