Need Vba macro to convert data

Kamranmushtaq

New Member
Joined
Sep 17, 2014
Messages
1
DateDepartmentTimeSecondsFrequency
01-SepHR0900-1100302
01-SepHR0900-1100602
01-SepSALES1900-2100303
01-SepSALES1900-2100604
01-SepADMIN2200-2300302
01-SepADMIN2300-2400603
02-SepHR0900-1100302
02-SepHR0900-1100601
02-SepSALES1900-2100302
02-SepSALES1900-2100603
02-SepADMIN2200-2300304
02-SepCS2300-2400605

<tbody>
</tbody>

I want to make macro format my data ifrom this format to the below format



DepartmentTimeSeconds01/09/201402/09/2014
HR0900-11003011
HR0900-11003011
HR0900-11006011
HR0900-1100601
SALES1900-21003011
SALES1900-21003011
SALES1900-2100301
SALES1900-21006011
SALES1900-21006011
SALES1900-21006011
SALES1900-2100601
ADMIN2200-23003011
ADMIN2200-23003011
ADMIN2200-2300301
ADMIN2200-2300301
CS2300-24006011
CS2300-24006011
CS2300-24006011
CS2300-240060
1
CS2300-2400601

<tbody>
</tbody>

It is sample data. number of days vary and also frequency also change
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.

Forum statistics

Threads
1,222,017
Messages
6,163,411
Members
451,835
Latest member
kristianb63

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