Assistance requested writing macro to prepare data for pivot table. THANK YOU!

Status
Not open for further replies.

REvans81

New Member
Joined
Apr 25, 2018
Messages
21
Hello!

Every week, I get a report on student grades for tests/projects on different dates. The report that's generated exports to excel but it's not the easiest to work with. I'd like to make a macro to convert this data to a different format (Like student names in rows, classes in columns, total scores in the cells) but the classes and size of the data set is going to vary. Ultimately, I'd like to make a pivot table with the converted data.


sample report:

Student Name
DateClassScore TypeScore
Suzie H
1/2/2018
282 - Math 1
Quiz

<tbody>
</tbody>

90
1/8/2018
778 - Geography

<tbody>
</tbody>

Quiz

<tbody>
</tbody>

87
1/11/2018
117 - Social Studies

<tbody>
</tbody>

Homework

<tbody>
</tbody>

89
2/4/2018
282 - Math 1
Homework

<tbody>
</tbody>

89
2/7/2018
282 - Math 1
Homework

<tbody>
</tbody>

95
2/12/2018
778 - Geography

<tbody>
</tbody>

Quiz

<tbody>
</tbody>

77
Suzie HSponsor: Jim KAverage87.83
Jimmy R1/2/2018
286 - Math 2

<tbody>
</tbody>

Homework85
1/8/2018
134 - Earth Science

<tbody>
</tbody>

Quiz89
1/9/2018
117 - Social Studies

<tbody>
</tbody>

Homework84
1/10/2018
286 - Math 2Homework90
2/2/2018
778 - Geography

<tbody>
</tbody>

Homework89
2/8/2018
778 - Geography

<tbody>
</tbody>

Project85
4/5/2018
286 - Math 2Homework77
Jimmy RSponsor: Jim KAverage85.57

<tbody>
</tbody>



Ideally, the macro would copy the data to a new sheet in the following format

282 - Math 1286 - Math 2778 - Geography117 - Social Studies134 - Earth Science
Suzie H2740164890
Jimmy R02521748489

<tbody>
</tbody>




The only items I really care about are the names, class, and score (I don't need sponsor, dates, average, or score type).

I haven't had any formal training and I'm not very good at starting visual basic projects but I can usually tinker with the code after it's written in order to tweak it a bit.

If anyone is able to assist, I'd appreciate it!!!
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Duplicate https://www.mrexcel.com/forum/excel...vert-data-more-standard-form.html#post5056987

Please do not post the same question multiple times. All clarifications, follow-ups, and bumps should be posted back to the original thread.
Per forum rules, posts of a duplicate nature will be locked or deleted (rule 12 here: Forum Rules).

If you do not receive a response, you can "bump" it by replying to it again, though we advise you to wait 24 hours before doing and not to bump a thread more than once a day.
 
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,215,297
Messages
6,124,107
Members
449,142
Latest member
championbowler

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