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

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce

Forum statistics

Threads
1,215,003
Messages
6,122,655
Members
449,091
Latest member
peppernaut

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