Help with pivot tables

Stanley2020

New Member
Joined
Feb 11, 2022
Messages
1
Office Version
  1. 2016
Platform
  1. Windows
HI,

I am collecting data using Microsoft forms and the data is automatically dumped into an Excel spreadsheet as shown below in Table 1. I am wanting to pivot this table so that the data is presented as shown in Table 2, but I can not work out how to do it.

Can anyone help, please?

Spreadsheet Raw Data - Table 1

TimestampPupil 1Pupil 2Pupil 3Pupil 4Service
Route Number
01 October 2022YesNoYesYesAM
3​
01 October 2022YesYesYesNoPM
3​
02 October 2022YesYesYesYesAM
3​
02 October 2022YesYesYesYesPM
3​
03 October 2022YesYesYesYesAM
3​
03 October 2022YesNoNoYesPM
3​

Spreadsheet Pivot - Table 2

Route Number
3​
Service
AM
Pupils name01-Oct-2202-Oct-2203-Oct-22
Pupil 1YesYesYes
Pupil 2NoYesYes
Pupil 3YesYesYes
Pupil 4YesYesYes
PM
Pupils name01-Oct-2202-Oct-2203-Oct-22
Pupil 1YesYesYes
Pupil 2YesYesNo
Pupil 3YesYesNo
Pupil 4NoYesYes
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.

Forum statistics

Threads
1,223,738
Messages
6,174,207
Members
452,551
Latest member
croud

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