Count Occurences

uk747

Well-known Member
Joined
Jul 20, 2011
Messages
832
Office Version
  1. 365
Platform
  1. Windows
Hi

Some sample data below although I have more columns and alot more rows
What are the steps to convert

A1​
A2​
A3​
A4​
cat​
dog​
cat​
cat​
dog​
cat​
cat​
dog​
chicken​
chicken​
dog​
dog​

Into

Option​
cat​
dog​
chicken​
A1​
1​
1​
1​
A2​
1​
1​
1​
A3​
2​
1​
0​
A4​
1​
2​
0​

I did unpivot the Data and got below but not sure how to group it so that it gives me a breakdown for each option
Attribute​
Value​
A1​
cat​
A2​
dog​
A3​
cat​
A4​
cat​
A1​
dog​
A2​
cat​
A3​
cat​
A4​
dog​
A1​
chicken​
A2​
chicken​
A3​
dog​
A4​
dog​
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result

Forum statistics

Threads
1,215,107
Messages
6,123,127
Members
449,097
Latest member
mlckr

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