Data summary using Index or countif

Demona

New Member
Joined
Sep 30, 2015
Messages
1
I have a survey questionairre which asked for one or multiple answers.
Now I need to summarize the date and facing the belwo issue:

The question was asked to select one or more of the below options:

[TABLE="width: 500"]
<tbody>[TR]
[TD]Options[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="class: xl66, width: 64"]AMER[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="class: xl66, width: 64"]APAC[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 502"]
<tbody>[TR]
[TD="class: xl66, width: 502"]Legislation[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][TABLE="width: 502"]
<tbody>[TR]
[TD="class: xl66, width: 502"]Agency[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][TABLE="width: 502"]
<tbody>[TR]
[TD="class: xl66, width: 502"]Others[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

The final data received from the survey is in the form of below:
[TABLE="width: 630"]
<colgroup><col><col span="2"></colgroup><tbody>[TR]
[TD]Row Labels[/TD]
[TD]AMER[/TD]
[TD]APAC[/TD]
[/TR]
[TR]
[TD]Legislation[/TD]
[TD] 1[/TD]
[TD] 1[/TD]
[/TR]
[TR]
[TD]Agency[/TD]
[TD] 2[/TD]
[TD] 1[/TD]
[/TR]
[TR]
[TD]Others[/TD]
[TD] 3[/TD]
[TD] - [/TD]
[/TR]
[TR]
[TD]Legislation, Agency[/TD]
[TD] 4[/TD]
[TD] 1[/TD]
[/TR]
[TR]
[TD]Agency,Others[/TD]
[TD] 1[/TD]
[TD] 3[/TD]
[/TR]
[TR]
[TD]Legislation, Agency, Others[/TD]
[TD] 1[/TD]
[TD] 5[/TD]
[/TR]
[TR]
[TD]Grand Total[/TD]
[TD] 12[/TD]
[TD] 11

[/TD]
[/TR]
</tbody>[/TABLE]

I need to summarise the total count on each of the 3 options for each region. I tried using countif, it did not work. I think I need to use Index formula s this is not simple vlookup case. Your assistance is appreciated.
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Hi

Try this:

Code:
=SUMIFS(AMERColumn, RowLabelsColumn, "*"&A2&"*")

Where A2 contains "Legislation", AMERColumn is the 1,2,3,4,1,1,12 column from your final data, and RowLabelsColumn contains Legislation, Agency, Others etc. from your final data. This works by summing the number based on the first column containing for example "Legislation" somewhere in the string, as I have appended wildcards * either side of the term.

Hope that helps

Mackers
 
Upvote 0

Forum statistics

Threads
1,223,162
Messages
6,170,432
Members
452,326
Latest member
johnshaji

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top