Table re-arrange

rombo

Board Regular
Joined
Aug 18, 2010
Messages
50
Office Version
  1. 2019
Platform
  1. Windows
Pls, do require a VBA code for rearranging below table, First table is the raw table from which the second table would be genrated, upto 10 names would be there to a max. Tables are pasted using comma as cell separator.

Table:1

Name,Time,Date,Day,Duty
Jeff,5:00,04/09/2011,Sun,Aadab
Jeff,5:30,04/09/2011,Sun,Dublin
Jeff,5:30,04/09/2011,Sun,Gurban
Jeff,5:30,04/09/2011,Sun,Muha
Jeff,6:00,04/09/2011,Sun,Noor-E-Elaahi I;God Bless You
Jeff,6:00,04/09/2011,Sun,Bless
Jeff,6:30,04/09/2011,Sun,Telan
Lisa,7:30,06/09/2011,Tue,Matching
Lisa,8:00,06/09/2011,Tue,Varta
Lisa,8:30,06/09/2011,Tue,Ten aven
Rick,5:00,04/09/2011,Sun,F I R
Rick,5:30,04/09/2011,Sun,Maping zone
Rick,5:30,04/09/2011,Sun,Denm
Rick,6:00,04/09/2011,Sun,Draw


Table2 to be derived from above table:

Day,Time,Jeff,Lisa,Rick
Sun,5:00,Aadab,,F I R
Sun,5:30,Dublin;Gurban;Muha,,Maping zone;Denm
Sun,6:00,Link 2;Bless,,Draw
Sun,6:30,Bless,,
Tue,7:30,,Matching,
Tue,8:00,,Varta,
Tue,8:30,,Ten aven,

Pls Help!
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Help! VOG, Lewiy, pedie

Help to sort this VBA techies
 
Upvote 0

Forum statistics

Threads
1,224,616
Messages
6,179,909
Members
452,949
Latest member
beartooth91

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