Copy n Paste Filtered Data

GMC The Macro Man

Board Regular
Joined
Mar 23, 2023
Messages
104
Office Version
  1. 2021
Platform
  1. Windows
Hi everyone, I hope you are all well.
I have a report from a school database that details the students grades for the subjects they are sitting. There are 25 subjects and each student will select at least 5 from this list and then they will be allocated a National Level (Nat Level 3 to 7) depending on their skill level. There is a teachers name and then their grade.
The database is exported as an XLSX file and looks like the excerpt below which is the data is displayed in row form , Left to Right. What I am trying to achieve is to MERGE the subjects into one GROUP of columns for each of the subjects.
I tried copy to filter the data and copy paste, and copy fill but that obviously doesn't work. Would this be a better done as a Power Query?
If you see the TWO Tables I have put together as examples, The 1st is what I get from the export and the 2nd one is how I would like it to look (just to remind you that I have 25 subjects in the report)
The school has over 500 children each with unique ID's

Any help would be greatly appreciated
Thanks
George

Book1
ABCDEFGHIJKLMNOPQRSTUVWX
1Art & Design (Nat 4)Art & Design (Nat 5)Art & Design (Nat 6)English (Nat 4)English (Nat 5)English (Nat 6)English (Nat 7)
2ID NumberFull NameReg ClassNat LevelTeacherGradeNat LevelTeacherGradeNat LevelTeacherGradeNat LevelTeacherGradeNat LevelTeacherGradeNat LevelTeacherGradeNat LevelTeacherGrade
3P12345Summer Kerr 4CNat 4Miss Smith5Nat 5Mr Orange2
4P12346Megan Airlie4BNat 5Mr Black6Nat 4Miss Blue4
5P12347Sarah Blair4CNat 4Miss Smith5Nat 5Mr Orange2
6P12348Tehya Bommer4CNat 4Miss Smith3Nat 4Miss Blue4
7P12349Hannah Callaghan4DNat 6Mrs White3Nat 4Miss Blue1
8P12350Ava Currie4ENat 5Mr Black6Nat 5Mr Orange2
9P12351Amiee Fraser4ENat 5Mr Black7Nat 7Mr Green3
10P12352Cailin Gilliland4ANat 6Mrs White5Nat 6Mrs Brown4
11P12353Christopher Grant4DNat 4Miss Smith3Nat 4Miss Blue3
12P12354Sophie Grigor4DNat 4Miss Blue3
13P12355Rachael Johnson4B
14P12356Emily Livingstone4FNat 4Miss Smith4Nat 4Miss Blue6
15P12357Katie Maloney4BNat 6Mrs Brown7
16P12358Emma McDonald4CNat 6Mrs White5Nat 7Mr Green5
17P12359Hannah McDougall4CNat 4Miss Blue3
18P12360Corey McIlduff4ENat 5Mr Black4Nat 4Miss Blue8
19P12361Danielle McMahon4FNat 6Mrs White8Nat 5Mr Orange6
Sheet1



Book1
ABCDEFGHI
21Art & DesignEnglish
22ID NumberFull NameReg ClassNat LevelTeacherGradeNat LevelTeacherGrade
23P12345Summer Kerr 4CNat 4Miss Smith5Nat 5Mr Orange2
24P12346Megan Airlie4BNat 5Mr Black6Nat 4Miss Blue4
25P12347Sarah Blair4CNat 4Miss Smith5Nat 5Mr Orange2
26P12348Tehya Bommer4CNat 4Miss Smith3Nat 4Miss Blue4
27P12349Hannah Callaghan4DNat 6Mrs White3Nat 4Miss Blue1
28P12350Ava Currie4ENat 5Mr Black6Nat 5Mr Orange2
29P12351Amiee Fraser4ENat 5Mr Black7Nat 7Mr Green3
30P12352Cailin Gilliland4ANat 6Mrs White5Nat 6Mrs Brown4
31P12353Christopher Grant4DNat 4Miss Smith3Nat 4Miss Blue3
32P12354Sophie Grigor4DNat 4Miss Blue3
33P12355Rachael Johnson4B
34P12356Emily Livingstone4FNat 4Miss Smith4Nat 4Miss Blue6
35P12357Katie Maloney4BNat 6Mrs Brown7
36P12358Emma McDonald4CNat 6Mrs White5Nat 7Mr Green5
37P12359Hannah McDougall4CNat 5Mr Black4Nat 4Miss Blue3
38P12360Corey McIlduff4ENat 4Miss Blue8
39P12361Danielle McMahon4FNat 6Mrs White8Nat 5Mr Orange6
Sheet1
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
- I found this on YouTube - thanks to Chris Menard
It allows me to merge all the subjects Nat Levels in to individual groups by using the "SKIP BLANKS" when pasting.
I only do this report 3 times a year so it will probably take me about an hour to go through the 25 subjects. Its not ideal but it will get me through.

I would still love to find a quicker way to do this if anyone can help
thanks for looking
 
Upvote 0

Forum statistics

Threads
1,223,880
Messages
6,175,153
Members
452,615
Latest member
bogeys2birdies

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