Creating a table summarizing two categorical columns - Category A and B

Dat36

New Member
Joined
Jul 23, 2023
Messages
2
Office Version
  1. 365
Platform
  1. Windows
I would like to analyze the data designed in the following format.

Address 1 (yes=1,no=0)Address 2 (yes=1,no=0)Address 3 (yes=1,no=0)Activity1 (yes=1,no=0)Activity2 (yes=1,no=0)Activity3 (yes=1,no=0)
Organization 1
1​
0​
1​
1​
0​
0​
Organization 2
0​
1​
0​
0​
1​
1​
Organization 3
0​
1​
1​
0​
0​
1​

  • I have a unstructured table with the above design.
    • This is the data from a questionnaire asked to each organization whether each organization conduct different types of activities in each addresses.
  • I have two questions here:
    1. From the above table, I would like to know the way to create the following Table1. The numbers in the Table1 is COUNTing the number of organization.
    2. If no.1 is possible, I also would like to know the way to create the following Table2, which SUMs the number of activities at each address.
Table1:
Activity1 (yes=1,no=0)Activity2 (yes=1,no=0)Activity3 (yes=1,no=0)
Address 1 (yes=1,no=0)
1​
0​
0​
Address 2 (yes=1,no=0)
0​
1​
2​
Address 3 (yes=1,no=0)
1​
0​
1​


Table 2:
Activity1 (yes=1,no=0)Activity2 (yes=1,no=0)Activity3 (yes=1,no=0)
Address 1 (yes=1,no=0)
1​
0​
0​
Address 2 (yes=1,no=0)
0​
1​
1​
Address 3 (yes=1,no=0)
1​
0​
1​

I would really appreciate your help!! Thank you.
 

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.
I think I know what you are looking for in Table 1, not sure about Table 2, since it's already split by activity. My guess is as follows:

Book1
ABCDEFG
1Address 1 (yes=1,no=0)Address 2 (yes=1,no=0)Address 3 (yes=1,no=0)Activity1 (yes=1,no=0)Activity2 (yes=1,no=0)Activity3 (yes=1,no=0)
2Organization 1101100
3Organization 2010011
4Organization 3011001
5
6Table 1Activity1 (yes=1,no=0)Activity2 (yes=1,no=0)Activity3 (yes=1,no=0)
7Address 1 (yes=1,no=0)100
8Address 2 (yes=1,no=0)012
9Address 3 (yes=1,no=0)101
10
11Table 2Activity1 (yes=1,no=0)Activity2 (yes=1,no=0)Activity3 (yes=1,no=0)
12Address 1 (yes=1,no=0)100
13Address 2 (yes=1,no=0)011
14Address 3 (yes=1,no=0)101
Sheet3
Cell Formulas
RangeFormula
B6:D6B6=E1:G1
A7:A9A7=TRANSPOSE(B1:D1)
B7:D9B7=MMULT(TRANSPOSE(B2:D4),E2:G4)
B11:D11B11=E1:G1
A12:A14A12=TRANSPOSE(B1:D1)
B12:D14B12=SIGN(MMULT(TRANSPOSE(B2:D4),E2:G4))
Dynamic array formulas.
 
Upvote 0
Solution
Thank you so much Anonymous1378!!
These formulas seems functioning perfectly. Much appreciated :)
 
Upvote 0

Forum statistics

Threads
1,215,425
Messages
6,124,824
Members
449,190
Latest member
rscraig11

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