Efficient way to convert table into database friendly data

gwoolley0302

Board Regular
Joined
May 13, 2014
Messages
55
Hello,

To help build some effective power pivot tables, I *think* I need to convert my data from Format A to Format B (demonstrated below). You can also see my spreadsheet that my data currently feeds through into Format A in sheet number 5.

If I wanted to translate sheet 5 into a format like shown in Table B below - is there a quick way to do this? (I can't see past a very laborious and time consuming method!!)

Any help is most appreciated.

Thanks, Greg

Table A
Student IDMetric 1 (Baseline score)Metric 1 (Post-programme score)Metric 1 (change in score)Metric 2 (Baseline score)Metric 2 (Post programme score)Metric 2 (Change in score)Metric 3 (etc...)
xxxx001022110
xxxx002110121

Table B
Student IDScore typeMetric 1Metric 2
xxxx001Baseline01
xxxx001Post programme21
xxxx001Change20
xxxx002Baseline11
xxxx002Post programme12
xxxx002Change01
 
sandy
ABC
1IDAttributeValue
2To-RR-20-1001Engaged reader & enjoys book (Ba)3
3To-RR-20-1001Engaged reader & enjoys book (End)3
4To-RR-20-1001Engaged reader & enjoys book (Change)0
5To-RR-20-1001Confident reader (Ba)2
6To-RR-20-1001Confident reader (End)2
7To-RR-20-1001Confident reader (Change)0
8To-RR-20-1001Focus time (Ba)1
9To-RR-20-1001Focus time (End)2
10To-RR-20-1001Focus time (Change)1
11To-RR-20-1001Reading record signed (Ba)2
12To-RR-20-1001Reading record signed (End)2
13To-RR-20-1001Reading record signed (Change)0
14To-RR-20-1001CVC (Ba)2
15To-RR-20-1001CVC (End)3
16To-RR-20-1001CVC (Change)1
17To-RR-20-1001CVCC (Ba)1
18To-RR-20-1001CVCC (End)3
19To-RR-20-1001CVCC (Change)2
20To-RR-20-1001Di/tripgraphs (Ba)2
21To-RR-20-1001Di/tripgraphs (End)3
22To-RR-20-1001Di/tripgraphs (Change)1
Sheet2


maybe it would be enough to change (Ba) - Baseline, , (End) - Post programme & (Change) - Change and split it to two columns (if necessary) ?
 
Upvote 0

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
That's looking great thank you.

You mentioned in this you don't use PowerPivot but you use PowerQuery. But am I right in thinking that I would now need to use PowerPivot in order to create a summary table such as the one below?

Techincal area parent groupTechnical sub-categoryNumber of students with a Change score of 0% of students with a Change score of 0Number of students with a Change score of 1% of students with a Change score of 1Number of students with a Change score of 2% of students with a Change score of 2
Enjoyment / engagementEngaged reader & enjoys book
Enjoyment / engagementConfident reader
Enjoyment / engagementFocus time
Enjoyment / engagementReading record signed
AccuracyCVC
AccuracyCVCC
AccuracyDi/tripgraphs
AccuracyTricky words
FluencyAble to sound out & blend
FluencyUses expression
FluencyReads whole sentences fluently
ComprehensionAble to answer questions on text
ComprehensionAble to make inferences
ComprehensionAble to remember repeated words
ComprehensionCan re-tell story
 
Upvote 0
something like this?

sandy
HIJ
3ValueCount of IDCount of Value
4036213.41%
5180729.89%
6295835.48%
7351118.93%
84622.30%
TEST


this is not what you show above but example only
 
Upvote 0

Forum statistics

Threads
1,215,488
Messages
6,125,092
Members
449,206
Latest member
ralemanygarcia

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