Sum frequency based on adjacent cell with separated by comma

DeanA1712

New Member
Joined
Jan 11, 2013
Messages
5
Hi Guys,

I download an excel file of survey answers on a monthly basis for a report.
Each line item is an unique entry.

For a particular questions (multiple select): example: Which fruits do you eat: A / B / C
It puts all the answers into 1 cell separated by commas. Example "A, C" or "A" or "A, B, C".

When I pivot and sum the frequency, it shows the it based on: "A, C" or "A" or "A, B, C".

Question: How can i sum the frequency based on the individual option:
A: 7
B: 11
C: 11

From:
Fieldsfrequency
A1
A, B2
A, B, C3
A, C1
B5
B, C6
C1

<TBODY>
</TBODY>


Caveat: there are more than 3 types of fields (A, B and C), they are text, some quite long.
Thank you for your time, i hope i was clear.

Cheers,
Dean
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Hi Guys,

I download an excel file of survey answers on a monthly basis for a report.
Each line item is an unique entry.

For a particular questions (multiple select): example: Which fruits do you eat: A / B / C
It puts all the answers into 1 cell separated by commas. Example "A, C" or "A" or "A, B, C".

When I pivot and sum the frequency, it shows the it based on: "A, C" or "A" or "A, B, C".

Question: How can i sum the frequency based on the individual option:
A: 7
B: 11
C: 11

From:
Fields
frequency
A
1
A, B
2
A, B, C
3
A, C
1
B
5
B, C
6
C
1

<tbody>
</tbody>


Caveat: there are more than 3 types of fields (A, B and C), they are text, some quite long.
Thank you for your time, i hope i was clear.

Cheers,
Dean
Fieldsfrequency
A1 A7
A, B2 B16
A, B, C3 C11
A, C1
B5
B, C6
C1

<colgroup><col style="width: 48pt;" width="64"> <col style="width: 75pt; mso-width-source: userset; mso-width-alt: 3555;" width="100"> <col style="width: 48pt;" span="6" width="64"> <tbody>
</tbody>


G2, copied down:

=SUMIF($A$2:$A$8,"*"&F2&"*",$B$2:$B$8)
 
Upvote 0

Forum statistics

Threads
1,215,679
Messages
6,126,183
Members
449,296
Latest member
tinneytwin

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