Can I do this in a Pivot Table

markh9999

New Member
Joined
Aug 21, 2007
Messages
49
I've tried using a pivot table for the following but I can't seem to get it to work. Basically my raw data has 500 names (I've just shown a sample below), a year group against each name and an activity against 3 different sessions.

I want to be able to summarise the data as shown below (so names become irrelevant).

Does anyone know a way?

RAW DATA

Name Year Session 1 Session 2 Session 3

Name 1 7 Activity 1 Activity 3 Activity 2
Name 2 7 Activity 1 Activity 2 Activity 3
Name 3 7 Activity 3 Activity 2 Activity 1
Name 4 8 Activity 2 Activity 1 Activity 3
Name 5 8 Activity 2 Activity 3 Activity 1
Name 6 8 Activity 2 Activity 3 Activity 1
Name 7 9 Activity 2 Activity 1 Activity 3
Name 8 9 Activity 1 Activity 2 Activity 3
Name 9 9 Activity 3 Activity 1 Activity 2

OUTPUT (Headings are Activity, year, session 1 total, session 2 total and session 3 total. For example, there are 2 year 7's doing Activity 1)


Activity 1 7 2 0 1
Activity 1 8 0 1 2
Activity 1 9 1 2 0
Activity 2 7 0 2 1
Activity 2 8 3 0 0
Activity 2 9 1 2 1
Activity 3 7 1 1 1
Activity 3 8 0 2 1
Activity 3 9 1 0 2
 
Last edited:

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.

Forum statistics

Threads
1,224,820
Messages
6,181,160
Members
453,021
Latest member
Justyna P

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