Changing Multiple Rows into One

mcchorb

New Member
Joined
May 5, 2015
Messages
1
I'm using Excel 2013/Windows 7 and I think I'm looking for a macro here but you tell me...

I have a large list of employee changes (hires and terminations) from the past two years where almost all employees are listed more than once. For example, if someone was a new hire, then terminated, then rehired, then terminated, etc., there is a row for each change. Not everyone has the same number of records (rows) - they range from one to six. What I would like to see is one row for each employee, and columns that show all the effective dates for their hires and terminations.

So I have this:

ID # Name Reason Effective Date
1234 Smith, J New Hire 1/1/13
1234 Smith, J Term 8/7/13
1234 Smith, J Rehire 3/5/14
5678 Jones, R New Hire 5/5/14
9123 Brown, A New Hire 2/8/13
9123 Brown, A Term 3/5/15

And I need this:

ID# Name New Hire Term #1 Rehire #1 Term #2 Rehire #2 Term #3
1234 Smith, J 1/1/13 8/7/13 3/5/14
5678 Jones, R 5/5/14
9123 Brown, A 2/8/13 3/5/15

(Sorry for the mess - I tried to mimic columns and rows and was not very successful!)

Does anyone know if this is possible?

Thanks!
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)

Forum statistics

Threads
1,223,236
Messages
6,170,915
Members
452,366
Latest member
TePunaBloke

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