lezawang
Well-known Member
- Joined
- Mar 27, 2016
- Messages
- 1,805
- Office Version
- 2016
- Platform
- Windows
fHi
I have a file which has 2 sheets. The first sheet has table like this
[TABLE="width: 500"]
<tbody>[TR]
[TD]student no[/TD]
[TD]name[/TD]
[TD]email[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]smith, john[/TD]
[TD]john.smith@hello.com[/TD]
[/TR]
[TR]
[TD]22[/TD]
[TD]clark,mary[/TD]
[TD]mary.clark@hello.com[/TD]
[/TR]
</tbody>[/TABLE]
The second sheet has table like this
[TABLE="width: 500"]
<tbody>[TR]
[TD]last name[/TD]
[TD]first name[/TD]
[TD]student No[/TD]
[TD]class code[/TD]
[TD]full name[/TD]
[/TR]
[TR]
[TD]smith[/TD]
[TD]john[/TD]
[TD]1[/TD]
[TD]abc-123[/TD]
[TD]smith, john[/TD]
[/TR]
[TR]
[TD]smith[/TD]
[TD]john[/TD]
[TD]1[/TD]
[TD]xyz-111[/TD]
[TD]smith, john[/TD]
[/TR]
[TR]
[TD]smith[/TD]
[TD]john[/TD]
[TD]1[/TD]
[TD]aaa-120[/TD]
[TD]smith, john[/TD]
[/TR]
[TR]
[TD]clark[/TD]
[TD]mary[/TD]
[TD]22[/TD]
[TD]abc-123[/TD]
[TD]clark,mary[/TD]
[/TR]
[TR]
[TD]clark[/TD]
[TD]mary[/TD]
[TD]22[/TD]
[TD]hhh-000[/TD]
[TD]clark,mary[/TD]
[/TR]
</tbody>[/TABLE]
Now what I wan to do, is to create a 3rd sheet which is going to look like this
[TABLE="width: 500"]
<tbody>[TR]
[TD]student no[/TD]
[TD]student name[/TD]
[TD]email address[/TD]
[TD]courses[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]smith, john[/TD]
[TD]john.smith@hello.com[/TD]
[TD]abc-123[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[TD]xyz-111[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[TD]aaa-123[/TD]
[/TR]
[TR]
[TD]22[/TD]
[TD]clark, mary[/TD]
[TD]mary,clark@hello.com[/TD]
[TD]abc-123[/TD]
[/TR]
</tbody>[/TABLE]
Any idea how to create the 3rd table? I was thinking of Pivot table. I want a solution but not VBA as I am not familiar with it yet. Thanks a lot.
I have a file which has 2 sheets. The first sheet has table like this
[TABLE="width: 500"]
<tbody>[TR]
[TD]student no[/TD]
[TD]name[/TD]
[TD]email[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]smith, john[/TD]
[TD]john.smith@hello.com[/TD]
[/TR]
[TR]
[TD]22[/TD]
[TD]clark,mary[/TD]
[TD]mary.clark@hello.com[/TD]
[/TR]
</tbody>[/TABLE]
The second sheet has table like this
[TABLE="width: 500"]
<tbody>[TR]
[TD]last name[/TD]
[TD]first name[/TD]
[TD]student No[/TD]
[TD]class code[/TD]
[TD]full name[/TD]
[/TR]
[TR]
[TD]smith[/TD]
[TD]john[/TD]
[TD]1[/TD]
[TD]abc-123[/TD]
[TD]smith, john[/TD]
[/TR]
[TR]
[TD]smith[/TD]
[TD]john[/TD]
[TD]1[/TD]
[TD]xyz-111[/TD]
[TD]smith, john[/TD]
[/TR]
[TR]
[TD]smith[/TD]
[TD]john[/TD]
[TD]1[/TD]
[TD]aaa-120[/TD]
[TD]smith, john[/TD]
[/TR]
[TR]
[TD]clark[/TD]
[TD]mary[/TD]
[TD]22[/TD]
[TD]abc-123[/TD]
[TD]clark,mary[/TD]
[/TR]
[TR]
[TD]clark[/TD]
[TD]mary[/TD]
[TD]22[/TD]
[TD]hhh-000[/TD]
[TD]clark,mary[/TD]
[/TR]
</tbody>[/TABLE]
Now what I wan to do, is to create a 3rd sheet which is going to look like this
[TABLE="width: 500"]
<tbody>[TR]
[TD]student no[/TD]
[TD]student name[/TD]
[TD]email address[/TD]
[TD]courses[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]smith, john[/TD]
[TD]john.smith@hello.com[/TD]
[TD]abc-123[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[TD]xyz-111[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[TD]aaa-123[/TD]
[/TR]
[TR]
[TD]22[/TD]
[TD]clark, mary[/TD]
[TD]mary,clark@hello.com[/TD]
[TD]abc-123[/TD]
[/TR]
</tbody>[/TABLE]
Any idea how to create the 3rd table? I was thinking of Pivot table. I want a solution but not VBA as I am not familiar with it yet. Thanks a lot.