Merging Rows Into One New Updated Row

Status
Not open for further replies.

hakunamatata167

New Member
Joined
May 11, 2017
Messages
8
Hi All,

I need help merging multiple rows which match certain criteria (i.e. cells matching for date, specialty, location and person) to produce one entry, for example

[TABLE="width: 477"]
<colgroup><col><col><col><col><col></colgroup><tbody>[TR]
[TD]Date[/TD]
[TD]Time[/TD]
[TD]Speciality[/TD]
[TD]Location[/TD]
[TD]Person[/TD]
[/TR]
[TR]
[TD]15/04/18[/TD]
[TD]morning[/TD]
[TD]TeamCap[/TD]
[TD]Brooklyn[/TD]
[TD]Captain America[/TD]
[/TR]
[TR]
[TD]15/04/18[/TD]
[TD]afternoon[/TD]
[TD]TeamCap[/TD]
[TD]Brooklyn[/TD]
[TD]Captain America[/TD]
[/TR]
[TR]
[TD]15/04/18[/TD]
[TD]evening[/TD]
[TD]TeamCap[/TD]
[TD]Brooklyn[/TD]
[TD]Captain America[/TD]
[/TR]
[TR]
[TD]15/04/18[/TD]
[TD]morning[/TD]
[TD]TeamStark[/TD]
[TD]Long Island[/TD]
[TD]Iron Man[/TD]
[/TR]
[TR]
[TD]15/04/18[/TD]
[TD]afternoon[/TD]
[TD]TeamStark[/TD]
[TD]Long Island[/TD]
[TD]Iron Man[/TD]
[/TR]
</tbody>[/TABLE]

Would condense down into:

[TABLE="width: 477"]
<colgroup><col><col><col><col><col></colgroup><tbody>[TR]
[TD]Date[/TD]
[TD]Time[/TD]
[TD]Speciality[/TD]
[TD]Location[/TD]
[TD]Person[/TD]
[/TR]
[TR]
[TD]15/04/18[/TD]
[TD]Triple Session[/TD]
[TD]TeamCap[/TD]
[TD]Brooklyn[/TD]
[TD]Captain America[/TD]
[/TR]
[TR]
[TD]15/04/18[/TD]
[TD]All Day[/TD]
[TD]TeamStark[/TD]
[TD]Long Island[/TD]
[TD]Iron Man[/TD]
[/TR]
</tbody>[/TABLE]

e.g. if all other cells match, then morning+afternoon+evening would equal triple session; moring+afternoon would equal all day.

Thanks for any help/ideas
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Duplicated https://www.mrexcel.com/forum/excel...ows-into-one-new-updated-row.html#post5050205

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).

Note that sometimes posts from new users require Moderator approval before you can see them on the public forums.
When this happens, you should see a message to that effect when you try to post it. Please be patient and do not attempt to post the question again.
 
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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