How to Merge Rows Based on Cell Value While Keeping Unique Values and Keeping One of Each Repeated Value

antman2988

Board Regular
Joined
Jun 28, 2018
Messages
78
Hello,

I have a workbook that contains classes a person must take based on their roles in a system (job duties). Because each roles requires certain classes and all of the roles have repeated classes, I would like to combine the rows based on the user while keeping all unique values and keeping just one of the repeated values.

Example:
Smith, Bob AP Approver Intro Intro2 Voucher Processing
Smith, Bob AP Processor Intro Intro2 Suppliers
Smith, Bob AM Processor Intro Intro2 Asset Mgmt. Module

Result:
Smith, Bob Intro Intro2 Voucher Processing Suppliers Asset Mgmt. Module

Actual Data:

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][TABLE="width: 220"]
<tbody>[TR]
[TD="width: 220"]Araiza, Jennifer[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 220"]
<tbody>[TR]
[TD="width: 220"]AM Processor[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 220"]
<tbody>[TR]
[TD="width: 220"]FS101[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]FS102[/TD]
[TD]AM101[/TD]
[TD]AM112[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][TABLE="width: 220"]
<tbody>[TR]
[TD="width: 220"]Araiza, Jennifer[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 220"]
<tbody>[TR]
[TD="width: 220"]AM Manager[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 220"]
<tbody>[TR]
[TD="width: 220"]FS101[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]FS102[/TD]
[TD]AM101[/TD]
[TD]AM112[/TD]
[TD]AM122[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][TABLE="width: 220"]
<tbody>[TR]
[TD="width: 220"]Araiza, Jennifer[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 220"]
<tbody>[TR]
[TD="width: 220"]AM Approver[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 220"]
<tbody>[TR]
[TD="width: 220"]FS101[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]FS102[/TD]
[TD]AM101[/TD]
[TD]AM122[/TD]
[TD]AM132[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][TABLE="width: 220"]
<tbody>[TR]
[TD="width: 220"]Araiza, Jennifer[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 220"]
<tbody>[TR]
[TD="width: 220"]AM Maintainer[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 220"]
<tbody>[TR]
[TD="width: 220"]FS101[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]FS102[/TD]
[TD]AM101[/TD]
[TD]AM112[/TD]
[TD]AM142[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][TABLE="width: 220"]
<tbody>[TR]
[TD="width: 220"]Araiza, Jennifer[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 220"]
<tbody>[TR]
[TD="width: 220"]AM Confidential User[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]FS101[/TD]
[TD]FS102[/TD]
[TD]AM101[/TD]
[TD]AM112[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]RESULT[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][TABLE="width: 220"]
<tbody>[TR]
[TD="width: 220"]Araiza, Jennifer[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]FS101[/TD]
[TD]FS102[/TD]
[TD]AM101[/TD]
[TD]AM112[/TD]
[TD]AM122[/TD]
[TD]AM132[/TD]
[TD]AM142[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]


Note: Their roles do not need to be maintained. I just care about the classes. Also, the information is on the first three sheets. I was trying to figure out how to do it myself but couldn't.


Any assistance is appreciated!

Thanks,
Anthony Smith
 
Last edited:

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".

Forum statistics

Threads
1,223,702
Messages
6,173,969
Members
452,539
Latest member
delvey

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